projects
/
mudpy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Relocate activate_avatar menu functions
[mudpy.git]
/
share
/
menu.yaml
diff --git
a/share/menu.yaml
b/share/menu.yaml
index
a0b6efb
..
fd8199c
100644
(file)
--- a/
share/menu.yaml
+++ b/
share/menu.yaml
@@
-1,5
+1,5
@@
---
---
-_copy: Copyright (c) 2004-201
8
mudpy authors. Permission to use, copy,
+_copy: Copyright (c) 2004-201
9
mudpy authors. Permission to use, copy,
modify, and distribute this software is granted under terms
provided in the LICENSE file distributed with this software.
modify, and distribute this software is granted under terms
provided in the LICENSE file distributed with this software.
@@
-7,18
+7,17
@@
_desc: This is the standard library of menu definitions.
_lock: true
_lock: true
-menu.activate_avatar.action:
user.activate_avatar_by_index(int(choice)-1
)
-menu.activate_avatar.action_a:
pass
+menu.activate_avatar.action:
mudpy.menu.activate_avatar_action(user
)
+menu.activate_avatar.action_a:
mudpy.menu.activate_avatar_action_a(user)
menu.activate_avatar.branch_a: main_utility
menu.activate_avatar.choice_a: abort selection
menu.activate_avatar.branch_a: main_utility
menu.activate_avatar.choice_a: abort selection
-menu.activate_avatar.create: dict([(str(x+1),y) for x,y in
- enumerate(user.list_avatar_names())])
+menu.activate_avatar.create: mudpy.menu.activate_avatar_create(user)
menu.activate_avatar.default: "1"
menu.activate_avatar.description: This is the list of avatars available for you
menu.activate_avatar.default: "1"
menu.activate_avatar.description: This is the list of avatars available for you
- to awaken.
+
to awaken.
menu.activate_avatar.prompt: Whom would you like to awaken?
menu.activate_avatar.prompt: Whom would you like to awaken?
-menu.active.prompt:
+menu.active.prompt:
">"
menu.checking_new_account_name.action_d: user.account.destroy()
menu.checking_new_account_name.action_g: user.account.destroy()
menu.checking_new_account_name.action_d: user.account.destroy()
menu.checking_new_account_name.action_g: user.account.destroy()
@@
-39,7
+38,8
@@
menu.checking_password.echo: false
menu.checking_password.error_incorrect: Incorrect password, please try again...
menu.checking_password.prompt: "Password:"
menu.checking_password.error_incorrect: Incorrect password, please try again...
menu.checking_password.prompt: "Password:"
-menu.choose_gender.action: user.avatar.set("gender", user.menu_choices[choice])
+menu.choose_gender.action: user.avatar.set("gender",
+ user.menu_choices[user.choice])
menu.choose_gender.branch: choose_name
menu.choose_gender.choice_f: female
menu.choose_gender.choice_m: male
menu.choose_gender.branch: choose_name
menu.choose_gender.choice_f: female
menu.choose_gender.choice_m: male
@@
-47,7
+47,8
@@
menu.choose_gender.description: First, your new avatar needs a birth gender.
Avatars are one of male or female at birth.
menu.choose_gender.prompt: "Pick a birth gender for your new avatar:"
Avatars are one of male or female at birth.
menu.choose_gender.prompt: "Pick a birth gender for your new avatar:"
-menu.choose_name.action: user.avatar.set("name", user.menu_choices[choice])
+menu.choose_name.action: user.avatar.set("name",
+ user.menu_choices[user.choice])
menu.choose_name.branch: main_utility
menu.choose_name.branch_g: choose_name
menu.choose_name.choice_g: generate more names
menu.choose_name.branch: main_utility
menu.choose_name.branch_g: choose_name
menu.choose_name.choice_g: generate more names
@@
-78,7
+79,7
@@
menu.delete_account.prompt: Are you certain you wish to permanently delete your
account?
menu.delete_avatar.action: user.delete_avatar(
account?
menu.delete_avatar.action: user.delete_avatar(
- user.account.get("avatars")[int(choice)-1])
+ user.account.get("avatars")[int(
user.
choice)-1])
menu.delete_avatar.action_a: pass
menu.delete_avatar.branch: main_utility
menu.delete_avatar.branch_a: main_utility
menu.delete_avatar.action_a: pass
menu.delete_avatar.branch: main_utility
menu.delete_avatar.branch_a: main_utility