neelthee-mansion 3.20.20__py3-none-any.whl → 3.21.1__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.
@@ -3,6 +3,7 @@ from .creatures import *
3
3
  from .items import *
4
4
  from .Quests import *
5
5
  from .all_game_utils import *
6
+ import tkinter as tk
6
7
 
7
8
 
8
9
  GameState = {
@@ -1114,6 +1115,71 @@ def handle_guard_action(guard):
1114
1115
  def initializer():
1115
1116
  global color_coding, player, CHARACTERSLIST
1116
1117
  df = pd.DataFrame(CHARACTERSLIST)
1118
+
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
+ def create_main_menu():
1121
+ def exit_game():
1122
+ root.destroy()
1123
+ quit()
1124
+
1125
+ def premade_character():
1126
+ def select_character():
1127
+ selected_character = character_listbox.curselection()
1128
+ if selected_character:
1129
+ character_info = CHARACTERSLIST[selected_character[0]]
1130
+ name_entry.insert(0, character_info["name"])
1131
+ age_entry.insert(0, character_info["age"])
1132
+ height_entry.insert(0, character_info["height"])
1133
+ weight_entry.insert(0, character_info["weight(LBs)"])
1134
+ character_window.destroy()
1135
+
1136
+ character_window = tk.Toplevel(root)
1137
+ character_window.title("Select Premade Character")
1138
+ character_listbox = tk.Listbox(character_window)
1139
+ for character in CHARACTERSLIST:
1140
+ character_listbox.insert(tk.END, character["name"])
1141
+ character_listbox.pack()
1142
+ select_button = tk.Button(character_window, text="Select", command=select_character)
1143
+ select_button.pack()
1144
+
1145
+ def custom_character():
1146
+ name_entry.delete(0, tk.END)
1147
+ age_entry.delete(0, tk.END)
1148
+ height_entry.delete(0, tk.END)
1149
+ weight_entry.delete(0, tk.END)
1150
+
1151
+ root = tk.Tk()
1152
+ root.title("Character Creation")
1153
+
1154
+ tk.Label(root, text="Name:").pack()
1155
+ name_entry = tk.Entry(root)
1156
+ name_entry.pack()
1157
+
1158
+ tk.Label(root, text="Age:").pack()
1159
+ age_entry = tk.Entry(root)
1160
+ age_entry.pack()
1161
+
1162
+ tk.Label(root, text="Height:").pack()
1163
+ height_entry = tk.Entry(root)
1164
+ height_entry.pack()
1165
+
1166
+ tk.Label(root, text="Weight (LBs):").pack()
1167
+ weight_entry = tk.Entry(root)
1168
+ weight_entry.pack()
1169
+
1170
+ premade_button = tk.Button(root, text="Premade Character", command=premade_character)
1171
+ premade_button.pack()
1172
+
1173
+ custom_button = tk.Button(root, text="Custom Character", command=custom_character)
1174
+ custom_button.pack()
1175
+
1176
+ exit_button = tk.Button(root, text="Exit Game", command=exit_game)
1177
+ exit_button.pack()
1178
+
1179
+ root.mainloop()
1180
+
1181
+ create_main_menu()
1182
+
1117
1183
  Standord_Player = loop_til_valid_input(
1118
1184
  "Do you want to use a premade character?", "you didn't answer Y or N.", Y_N
1119
1185
  ).value
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
2
- Name: neelthee_mansion
3
- Version: 3.20.20
1
+ Metadata-Version: 2.1
2
+ Name: neelthee-mansion
3
+ Version: 3.21.1
4
4
  Summary: A text-based adventure game set in Neel-thee’s mansion.
5
5
  Home-page: https://github.com/Flameblade375/neelthee_mansion
6
6
  Author: Alexander.E.F
@@ -27,16 +27,6 @@ Requires-Dist: pandas
27
27
  Requires-Dist: validators
28
28
  Requires-Dist: dicttoxml
29
29
  Requires-Dist: pytz
30
- Dynamic: author
31
- Dynamic: author-email
32
- Dynamic: classifier
33
- Dynamic: description
34
- Dynamic: description-content-type
35
- Dynamic: home-page
36
- Dynamic: license
37
- Dynamic: requires-dist
38
- Dynamic: requires-python
39
- Dynamic: summary
40
30
 
41
31
  # Neel-thee's Mansion of Amnesia
42
32
 
@@ -0,0 +1,16 @@
1
+ neelthee_mansion/Books.py,sha256=Zs6GOi12vrikne-E37LdrLNRb6CyUogOCDApDGFj6Ls,26168
2
+ neelthee_mansion/Mansion_of_Amnesia.py,sha256=q1AP_t4kIUN7pbUqxEJXMyb71nNi6CLNkoIvIHUqLgw,52836
3
+ neelthee_mansion/Quests.py,sha256=pUlru2RugP57MACQORZaF_X9lsbefTdPYTSO474phgo,2791
4
+ neelthee_mansion/Rooms.py,sha256=CgenMX9ssTCWbDFopX6GHhNDnRYF5MpaDufWvt5fPwU,86025
5
+ neelthee_mansion/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ neelthee_mansion/__main__.py,sha256=OIAWZ04le70DyjtR4hlmK9csHej7EHxeUrMoNnM-Vjc,95
7
+ neelthee_mansion/all_game_utils.py,sha256=AasunTkFmgAqt9ZIoYmymi4R7leBe4ubW-C1ts0Qclo,351
8
+ neelthee_mansion/creatures.py,sha256=vUR8PmdiftCFBCGJbHkCT4AMUPvqwouDGQ4ye2fiPCw,20910
9
+ neelthee_mansion/items.py,sha256=--DtMCZrurDAe3S-gB5DXAul_kmG9BGB0QmBY2-Fphc,6383
10
+ neelthee_mansion/utils.py,sha256=GaCkein6dppeufYfBMk59gHAE2b4p9TJW2MsRjyyFvQ,13702
11
+ neelthee_mansion-3.21.1.dist-info/LICENSE.md,sha256=CV8XGZaCyyAMdbkYFQUjb8AjBq9vkoyqdZCq1_hetms,1105
12
+ neelthee_mansion-3.21.1.dist-info/METADATA,sha256=dnLVn1cLy-eSLH8gNeHru8CGZw-uCRtNj7qPq_A9PtU,1756
13
+ neelthee_mansion-3.21.1.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
14
+ neelthee_mansion-3.21.1.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
15
+ neelthee_mansion-3.21.1.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
16
+ neelthee_mansion-3.21.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.0)
2
+ Generator: bdist_wheel (0.45.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5