summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2024-02-06 10:19:25 -0300
committerJesusaves <cpntb1@ymail.com>2024-02-06 10:19:25 -0300
commit3bf07578abef9931482dc145b3282e4deb0d9e17 (patch)
tree16d1ec0a25d64e167f65bdff8a772f8ee745047f
parentff56bd9f143bd1f5e525e13d5d044d698b12dd60 (diff)
downloadtkinter-3bf07578abef9931482dc145b3282e4deb0d9e17.tar.gz
tkinter-3bf07578abef9931482dc145b3282e4deb0d9e17.tar.bz2
tkinter-3bf07578abef9931482dc145b3282e4deb0d9e17.tar.xz
tkinter-3bf07578abef9931482dc145b3282e4deb0d9e17.zip
Add explanation about TOTP so it doesn't scare off new players
-rwxr-xr-x__main__.py16
1 files changed, 11 insertions, 5 deletions
diff --git a/__main__.py b/__main__.py
index 29ee9d8..945b534 100755
--- a/__main__.py
+++ b/__main__.py
@@ -442,7 +442,7 @@ def greeter(text, _dest=None):
return
#################################################################################
-## TODO: Settings screen
+## Settings screen
## It likely calls world_select() on return so only accessible from there
## Settings Screen should allow for world linking/unlinking
## Settings Screen should allow to modify anything in prefs[]
@@ -505,16 +505,17 @@ def settings():
canva.create_window(220, 250, window=drop)
hosav = HoverButton(text="→", command=partial(_setHome, _home), bg="#cc6600", fg="#fff", activebackground="#ee9933")
canva.create_window(375, 250, window=hosav)
- # TODO: Save
else:
label2 = tk.Label(root, text='Home World: %s' % mySoul["home"], bg="#0c3251", fg="#fff")
label2.config(font=('helvetica', 12))
canva.create_window(200, 250, window=label2)
+
# TODO: Account Linking and Unlinking
# For that, use a dropdown menu (select world), login, password, ...
# Then a button "LINK" and "UNLINK". Encapsulate the form in a box
# TODO Then we can put some permanent multi-world bosses on CR? (Giving EXP)
+ ## Save all your settings and return to World Selection screen
button = HoverButton(text="Save Settings", command=_settingSave, width=40, bg="#cc6600", fg="#fff", activebackground="#ee9933")
canva.create_window(200, 575, window=button)
@@ -724,16 +725,21 @@ c1 = tk.Checkbutton(root, text="Remember", variable=savePass, bg="#0c3251", fg="
canva.create_window(320, 160, window=c1)
-label3 = tk.Label(root, text='TOTP:', bg="#0c3251", fg="#fff")
+label3 = tk.Label(root, text='TOTP*:', bg="#0c3251", fg="#fff")
label3.config(font=('helvetica', 14))
-canva.create_window(180, 200, window=label3)
+canva.create_window(180, 210, window=label3)
entry3 = tk.Entry(root)
#entry3.insert(0, pref["totp"])
canva.create_window(180, 240, window=entry3)
+## Explanation for noobs
+label4 = tk.Label(root, text="* If you don't know what \"TOTP\" is, leave the field blank.", bg="#0c3251", fg="#ffc", anchor="w", wraplength=350, justify="left")
+label4.config(font=('helvetica', 10))
+canva.create_window(200, 280, window=label4)
+
button1 = HoverButton(text='Login', command=login, bg="#cc6600", fg="#fff", activebackground="#ee9933")
-canva.create_window(200, 300, window=button1)
+canva.create_window(200, 320, window=button1)
root.mainloop()
# Check if you were logged in