[Update] Easter Eggとして、メイン画面ロゴ(コンパクトモード未対応)を3回クリックするとEaster Egg機能がオンになるように。

オフに戻すには再起動で。
※save jsonはコメントアウトしています。(今後、本実装する時に値が増えたり何かしら名前が変更になる可能性を考えて、ユーザー側にデータを保存したくないため)
This commit is contained in:
Sakamoto Shiina
2024-04-14 21:35:19 +09:00
parent f0bcc56483
commit cae1406d2b
4 changed files with 45 additions and 1 deletions

View File

@@ -27,6 +27,11 @@ def callbackFilepathConfigFile():
def callbackQuitVrct():
setMainWindowGeometry()
def callbackEnableEasterEgg():
config.IS_EASTER_EGG_ENABLED = True
config.OVERLAY_UI_TYPE = "sakura"
view.printToTextbox_enableEasterEgg()
def setMainWindowGeometry():
PRE_SCALING_INT = strPctToInt(view.getPreUiScaling())
NEW_SCALING_INT = strPctToInt(config.UI_SCALING)
@@ -994,6 +999,8 @@ def createMainWindow(splash):
# set UI and callback
view.register(
common_registers={
"callback_enable_easter_egg": callbackEnableEasterEgg,
"callback_update_software": callbackUpdateSoftware,
"callback_restart_software": callbackRestartSoftware,
"callback_filepath_logs": callbackFilepathLogs,