neelthee-mansion 3.21.4__py3-none-any.whl → 3.21.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- neelthee_mansion/Mansion_of_Amnesia.py +42 -12
- {neelthee_mansion-3.21.4.dist-info → neelthee_mansion-3.21.6.dist-info}/METADATA +1 -1
- {neelthee_mansion-3.21.4.dist-info → neelthee_mansion-3.21.6.dist-info}/RECORD +7 -7
- {neelthee_mansion-3.21.4.dist-info → neelthee_mansion-3.21.6.dist-info}/LICENSE.md +0 -0
- {neelthee_mansion-3.21.4.dist-info → neelthee_mansion-3.21.6.dist-info}/WHEEL +0 -0
- {neelthee_mansion-3.21.4.dist-info → neelthee_mansion-3.21.6.dist-info}/entry_points.txt +0 -0
- {neelthee_mansion-3.21.4.dist-info → neelthee_mansion-3.21.6.dist-info}/top_level.txt +0 -0
@@ -1118,22 +1118,28 @@ def initializer():
|
|
1118
1118
|
|
1119
1119
|
# A tkinter window that asks these questions, instead of the console.Include a button that says "Exit Game". When the button is clicked, the game exits. Include a button that says "premade character". When the button is clicked, a new window opens that lets you choose one of the premade characters from teh CHARACTERSLIST var. Include a button that says "custom character". When the button is clicked, a new window opens that asks them for a name, age, hight, and waight(LBs).
|
1120
1120
|
def create_main_menu():
|
1121
|
+
def select_character():
|
1122
|
+
selected_index = character_listbox.curselection()
|
1123
|
+
if selected_index:
|
1124
|
+
selected_character = CHARACTERSLIST[selected_index[0]]
|
1125
|
+
name_entry.delete(0, tk.END)
|
1126
|
+
name_entry.insert(0, selected_character['name'])
|
1127
|
+
age_entry.delete(0, tk.END)
|
1128
|
+
age_entry.insert(0, selected_character['age'])
|
1129
|
+
height_entry.delete(0, tk.END)
|
1130
|
+
height_entry.insert(0, selected_character['height'])
|
1131
|
+
weight_entry.delete(0, tk.END)
|
1132
|
+
weight_entry.insert(0, selected_character['weight'])
|
1133
|
+
character_window.destroy()
|
1134
|
+
|
1121
1135
|
def show_premade_characters():
|
1122
|
-
|
1123
|
-
selected_character = character_listbox.curselection()
|
1124
|
-
if selected_character:
|
1125
|
-
character_info = CHARACTERSLIST[selected_character[0]]
|
1126
|
-
name_entry.insert(0, character_info["name"])
|
1127
|
-
age_entry.insert(0, character_info["age"])
|
1128
|
-
height_entry.insert(0, character_info["height"])
|
1129
|
-
weight_entry.insert(0, character_info["weight(LBs)"])
|
1130
|
-
character_window.destroy()
|
1136
|
+
global character_window, character_listbox
|
1131
1137
|
character_window = tk.Toplevel(root)
|
1132
1138
|
character_window.title("Select Premade Character")
|
1133
|
-
character_listbox = tk.Listbox(character_window
|
1139
|
+
character_listbox = tk.Listbox(character_window)
|
1134
1140
|
for character in CHARACTERSLIST:
|
1135
1141
|
character_info = f"Name: {character['name']}, Age: {character['age']}, Height: {character['height']}, Weight: {character['weight(LBs)']} LBs"
|
1136
|
-
|
1142
|
+
character_listbox.insert(tk.END, character_info)
|
1137
1143
|
character_listbox.pack()
|
1138
1144
|
select_button = tk.Button(character_window, text="Select", command=select_character)
|
1139
1145
|
select_button.pack()
|
@@ -1143,10 +1149,31 @@ def initializer():
|
|
1143
1149
|
age_entry.delete(0, tk.END)
|
1144
1150
|
height_entry.delete(0, tk.END)
|
1145
1151
|
weight_entry.delete(0, tk.END)
|
1146
|
-
|
1152
|
+
|
1147
1153
|
def exit_game():
|
1148
1154
|
root.destroy()
|
1149
1155
|
|
1156
|
+
def start_game():
|
1157
|
+
selected_character = {
|
1158
|
+
"name": name_entry.get(),
|
1159
|
+
"age": age_entry.get(),
|
1160
|
+
"height": height_entry.get(),
|
1161
|
+
"weight": weight_entry.get()
|
1162
|
+
}
|
1163
|
+
print("Selected Character:", selected_character)
|
1164
|
+
ask_color_coding()
|
1165
|
+
|
1166
|
+
def ask_color_coding():
|
1167
|
+
color_window = tk.Toplevel(root)
|
1168
|
+
color_window.title("Color Coding")
|
1169
|
+
tk.Label(color_window, text="Do you want color coding?").pack()
|
1170
|
+
tk.Button(color_window, text="Yes", command=lambda: set_color_coding(True)).pack()
|
1171
|
+
tk.Button(color_window, text="No", command=lambda: set_color_coding(False)).pack()
|
1172
|
+
|
1173
|
+
def set_color_coding(choice):
|
1174
|
+
print("Color Coding:", "Enabled" if choice else "Disabled")
|
1175
|
+
# Add your logic for enabling/disabling color coding here
|
1176
|
+
|
1150
1177
|
root = tk.Tk()
|
1151
1178
|
root.title("Character Creation")
|
1152
1179
|
|
@@ -1172,6 +1199,9 @@ def initializer():
|
|
1172
1199
|
custom_button = tk.Button(root, text="Custom Character", command=custom_character)
|
1173
1200
|
custom_button.pack()
|
1174
1201
|
|
1202
|
+
start_button = tk.Button(root, text="Start Game", command=start_game)
|
1203
|
+
start_button.pack()
|
1204
|
+
|
1175
1205
|
exit_button = tk.Button(root, text="Exit Game", command=exit_game)
|
1176
1206
|
exit_button.pack()
|
1177
1207
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
neelthee_mansion/Books.py,sha256=Zs6GOi12vrikne-E37LdrLNRb6CyUogOCDApDGFj6Ls,26168
|
2
|
-
neelthee_mansion/Mansion_of_Amnesia.py,sha256=
|
2
|
+
neelthee_mansion/Mansion_of_Amnesia.py,sha256=qLnF3m8eD1fYNvBTe7u1HI9HzFnwVxDDNHosKp7IFwc,54234
|
3
3
|
neelthee_mansion/Quests.py,sha256=pUlru2RugP57MACQORZaF_X9lsbefTdPYTSO474phgo,2791
|
4
4
|
neelthee_mansion/Rooms.py,sha256=CgenMX9ssTCWbDFopX6GHhNDnRYF5MpaDufWvt5fPwU,86025
|
5
5
|
neelthee_mansion/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -8,9 +8,9 @@ neelthee_mansion/all_game_utils.py,sha256=AasunTkFmgAqt9ZIoYmymi4R7leBe4ubW-C1ts
|
|
8
8
|
neelthee_mansion/creatures.py,sha256=vUR8PmdiftCFBCGJbHkCT4AMUPvqwouDGQ4ye2fiPCw,20910
|
9
9
|
neelthee_mansion/items.py,sha256=--DtMCZrurDAe3S-gB5DXAul_kmG9BGB0QmBY2-Fphc,6383
|
10
10
|
neelthee_mansion/utils.py,sha256=GaCkein6dppeufYfBMk59gHAE2b4p9TJW2MsRjyyFvQ,13702
|
11
|
-
neelthee_mansion-3.21.
|
12
|
-
neelthee_mansion-3.21.
|
13
|
-
neelthee_mansion-3.21.
|
14
|
-
neelthee_mansion-3.21.
|
15
|
-
neelthee_mansion-3.21.
|
16
|
-
neelthee_mansion-3.21.
|
11
|
+
neelthee_mansion-3.21.6.dist-info/LICENSE.md,sha256=CV8XGZaCyyAMdbkYFQUjb8AjBq9vkoyqdZCq1_hetms,1105
|
12
|
+
neelthee_mansion-3.21.6.dist-info/METADATA,sha256=OGxsBV35CM1iddqAvDm8j_aWc9opZ7GLHmRpsAdK160,1756
|
13
|
+
neelthee_mansion-3.21.6.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
14
|
+
neelthee_mansion-3.21.6.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
|
15
|
+
neelthee_mansion-3.21.6.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
|
16
|
+
neelthee_mansion-3.21.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|