From 3bf07578abef9931482dc145b3282e4deb0d9e17 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 6 Feb 2024 10:19:25 -0300 Subject: Add explanation about TOTP so it doesn't scare off new players --- __main__.py | 16 +++++++++++----- 1 file 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 -- cgit v1.2.3-70-g09d2