Relocate checking_new_account_name menu functions
[mudpy.git] / share / menu.yaml
1 ---
2 _copy: Copyright (c) 2004-2019 mudpy authors. Permission to use, copy,
3     modify, and distribute this software is granted under terms
4     provided in the LICENSE file distributed with this software.
5
6 _desc: This is the standard library of menu definitions.
7
8 _lock: true
9
10 menu.activate_avatar.action: mudpy.menu.activate_avatar_action(user)
11 menu.activate_avatar.action_a: mudpy.menu.activate_avatar_action_a(user)
12 menu.activate_avatar.branch_a: main_utility
13 menu.activate_avatar.choice_a: abort selection
14 menu.activate_avatar.create: mudpy.menu.activate_avatar_create(user)
15 menu.activate_avatar.default: "1"
16 menu.activate_avatar.description: This is the list of avatars available for you
17     to awaken.
18 menu.activate_avatar.prompt: Whom would you like to awaken?
19
20 menu.active.prompt: ">"
21
22 menu.checking_new_account_name.action_d:
23     mudpy.menu.checking_new_account_name_action_d(user)
24 menu.checking_new_account_name.action_g:
25     mudpy.menu.checking_new_account_name_action_g(user)
26 menu.checking_new_account_name.branch_d: disconnecting
27 menu.checking_new_account_name.branch_g: entering_account_name
28 menu.checking_new_account_name.branch_n: entering_new_password
29 menu.checking_new_account_name.choice_d: disconnect now
30 menu.checking_new_account_name.choice_g: go back
31 menu.checking_new_account_name.choice_n: new account
32 menu.checking_new_account_name.default: d
33 menu.checking_new_account_name.description: There is no existing account for
34     "$(account)" (note that an account name is not the same as a character
35     name). Would you like to create a new account by this name, go back and
36     enter a different name or disconnect now?
37 menu.checking_new_account_name.prompt: "Enter your choice:"
38
39 menu.checking_password.echo: false
40 menu.checking_password.error_incorrect: Incorrect password, please try again...
41 menu.checking_password.prompt: "Password:"
42
43 menu.choose_gender.action: user.avatar.set("gender",
44     user.menu_choices[user.choice])
45 menu.choose_gender.branch: choose_name
46 menu.choose_gender.choice_f: female
47 menu.choose_gender.choice_m: male
48 menu.choose_gender.description: First, your new avatar needs a birth gender.
49     Avatars are one of male or female at birth.
50 menu.choose_gender.prompt: "Pick a birth gender for your new avatar:"
51
52 menu.choose_name.action: user.avatar.set("name",
53     user.menu_choices[user.choice])
54 menu.choose_name.branch: main_utility
55 menu.choose_name.branch_g: choose_name
56 menu.choose_name.choice_g: generate more names
57 menu.choose_name.create_1: random_name()
58 menu.choose_name.create_2: random_name()
59 menu.choose_name.create_3: random_name()
60 menu.choose_name.create_4: random_name()
61 menu.choose_name.create_5: random_name()
62 menu.choose_name.create_6: random_name()
63 menu.choose_name.create_7: random_name()
64 menu.choose_name.default: g
65 menu.choose_name.description: Your new avatar needs a name. This will be the
66     name with which $(tpsp) grew up, and will initially be the name by which
67     $(tpsp) is known to others. There are ways for your new avatar to make a
68     name for $(tpop)self over time, so $(tpsp) won't be stuck going by such an
69     unremarkable name forever.
70 menu.choose_name.prompt: "Choose a name for $(tpop):"
71
72 menu.delete_account.action_y: user.destroy()
73 menu.delete_account.branch_n: main_utility
74 menu.delete_account.branch_y: disconnecting
75 menu.delete_account.choice_n: no, don't delete my account
76 menu.delete_account.choice_y: yes, permanently delete my account
77 menu.delete_account.default: n
78 menu.delete_account.description: By deleting your account, all your avatars
79     will also be permanently deleted.
80 menu.delete_account.prompt: Are you certain you wish to permanently delete your
81     account?
82
83 menu.delete_avatar.action: user.delete_avatar(
84     user.account.get("avatars")[int(user.choice)-1])
85 menu.delete_avatar.action_a: pass
86 menu.delete_avatar.branch: main_utility
87 menu.delete_avatar.branch_a: main_utility
88 menu.delete_avatar.choice_a: abort selection
89 menu.delete_avatar.create: dict([(str(x+1),y) for x,y in
90     enumerate(user.list_avatar_names())])
91 menu.delete_avatar.default: a
92 menu.delete_avatar.description: This is the list of avatars available for you
93     to delete.
94 menu.delete_avatar.prompt: Whom would you like to delete?
95
96 menu.disconnecting.prompt: $(red)Disconnecting...$(nrm)$(eol)
97
98 menu.disconnecting_duplicates.prompt: $(red)Closing your previous
99     connection...$(nrm)$(eol)
100
101 menu.entering_account_name.description: $(inc:login.txt)
102 menu.entering_account_name.error_bad_name: Your account name needs to contain
103     only digits (0-9) and letters (a-z).
104 menu.entering_account_name.prompt: "Identify yourself:"
105
106 menu.entering_new_password.echo: false
107 menu.entering_new_password.error_weak: That is a weak password... Try something
108     at least 7 characters long with a combination of mixed-case letters,
109     numbers and punctuation/spaces.
110 menu.entering_new_password.prompt: 'Enter a new password for "$(account)":'
111 menu.entering_new_password.error_differs: The two passwords did not match. Try
112     again...
113
114 menu.telopt_negotiation.prompt:
115
116 menu.main_utility.action_c: user.new_avatar()
117 menu.main_utility.branch_a: activate_avatar
118 menu.main_utility.branch_c: choose_gender
119 menu.main_utility.branch_d: delete_avatar
120 menu.main_utility.branch_l: disconnecting
121 menu.main_utility.branch_p: delete_account
122 menu.main_utility.choice_a: awaken an existing avatar
123 menu.main_utility.choice_c: create a new avatar
124 menu.main_utility.choice_d: delete an unwanted avatar
125 menu.main_utility.choice_l: leave for now
126 menu.main_utility.choice_p: permanently remove your account
127 menu.main_utility.demand_a: user.account.get("avatars")
128 menu.main_utility.demand_c: len(user.account.get("avatars")) <
129     universe.contents["mudpy.limit"].get("avatars")
130 menu.main_utility.demand_d: user.account.get("avatars")
131 menu.main_utility.description: $(red)$(inc:banner.txt)$(nrm)$(eol)$(eol)From
132     here you can awaken, create and delete avatars. An avatar is your persona
133     in the World. You can also leave or permanently delete your account.
134 menu.main_utility.prompt: What would you like to do?
135
136 menu.verifying_new_password.echo: false
137 menu.verifying_new_password.prompt: "Enter the same new password again:"