Toggle Navigation
Hatchery
Eggs
datingpp
__init__.py
Users
Badges
Login
Register
MCH2022 badge?
go to mch2022.badge.team
__init__.py
raw
Content
import dialogs, badge, easydraw, time, appglue, ugfx easydraw.msg("","Dating++", True) enabled = badge.nvs_get_u8("datingpp","enable", 0) if enabled: if dialogs.prompt_boolean("App active, want to disable?"): enabled = badge.nvs_set_u8("datingpp","enable",0) else: if dialogs.prompt_boolean("App disabled, want to enable?"): enabled = badge.nvs_set_u8("datingpp","enable",1) ugfx.clear(ugfx.BLACK) ugfx.flush() ugfx.clear(ugfx.WHITE) ugfx.flush() if enabled: savedchoice = badge.nvs_get_str("datingpp", "datingchoice", "") datingchoice = dialogs.prompt_text("Looking for?", savedchoice) if datingchoice: badge.nvs_set_str("datingpp", "datingchoice", datingchoice) ugfx.clear(ugfx.BLACK) ugfx.flush() ugfx.clear(ugfx.WHITE) ugfx.flush() easydraw.msg("Setup Dating++ successfully!") easydraw.msg("You will find what you're looking for! :)") easydraw.msg("Go back to the splash and wait...") time.sleep(3) appglue.home()