Further clean junk variable

This commit is contained in:
Gouvernathor 2023-11-15 21:26:57 +01:00
parent 3d62c8b818
commit ca64492beb
1 changed files with 7 additions and 7 deletions

View File

@ -5,8 +5,6 @@ init python:
else:
return str(round(points/1000.0, 1))+"{size=-2}k{/size}"
default toggle_menu = False
label update_ui_points:
# Debug
@ -34,6 +32,8 @@ screen ui_top_bar():
tag ui
zorder 2
default toggle_menu = False
if toggle_menu:
use ui_menu
@ -53,7 +53,7 @@ screen ui_top_bar():
tooltip "Close menu"
else:
tooltip "Open menu"
action ToggleVariable("toggle_menu", True, False)
action ToggleScreenVariable("toggle_menu", True, False)
# Sleep button
imagebutton:
@ -191,7 +191,7 @@ style dark_ui_stats_text:
screen ui_menu():
tag ui
button style "empty" action SetVariable("toggle_menu", False) keysym "game_menu"
button style "empty" action SetScreenVariable("toggle_menu", False) keysym "game_menu"
button:
ypos 34
@ -215,14 +215,14 @@ screen ui_menu():
textbutton "Save" action ShowMenu("save") background None xalign 0.5 text_outlines [ (2, "#00000080", 1, 0) ]
textbutton "Load" action ShowMenu("load") background None xalign 0.5 text_outlines [ (2, "#00000080", 1, 0) ]
if game.cheats and game.difficulty <= 2 and game.day > 1:
textbutton "Cheats" action [SetVariable("toggle_menu", False), Jump("cheats")] background None xalign 0.5 text_outlines [ (2, "#00000080", 1, 0) ]
textbutton "Cheats" action [SetScreenVariable("toggle_menu", False), Jump("cheats")] background None xalign 0.5 text_outlines [ (2, "#00000080", 1, 0) ]
if game.day > 1 and renpy.android:
textbutton "Preferences" action ShowMenu("preferences") background None xalign 0.5 text_outlines [ (2, "#00000080", 1, 0) ]
if game.day > 1 and persistent.game_complete:
textbutton "Gallery" action [SetVariable("toggle_menu", False), Jump("scene_gallery")] background None xalign 0.5 text_outlines [ (2, "#00000080", 1, 0) ]
textbutton "Gallery" action [SetScreenVariable("toggle_menu", False), Jump("scene_gallery")] background None xalign 0.5 text_outlines [ (2, "#00000080", 1, 0) ]
#if game.day > 1 and config.developer:
# textbutton "{size=-11}Show Chars{/size}" action [SetVariable("toggle_menu", False), Jump("summon_characters")] background "#000"
# textbutton "{size=-11}Show Chars{/size}" action [SetScreenVariable("toggle_menu", False), Jump("summon_characters")] background "#000"
hbox:
pos (50, 185)