Further clean junk variable

This commit is contained in:
Gouvernathor 2023-11-15 21:26:57 +01:00
parent 3d62c8b818
commit ca64492beb

View File

@ -5,8 +5,6 @@ init python:
else: else:
return str(round(points/1000.0, 1))+"{size=-2}k{/size}" return str(round(points/1000.0, 1))+"{size=-2}k{/size}"
default toggle_menu = False
label update_ui_points: label update_ui_points:
# Debug # Debug
@ -34,6 +32,8 @@ screen ui_top_bar():
tag ui tag ui
zorder 2 zorder 2
default toggle_menu = False
if toggle_menu: if toggle_menu:
use ui_menu use ui_menu
@ -53,7 +53,7 @@ screen ui_top_bar():
tooltip "Close menu" tooltip "Close menu"
else: else:
tooltip "Open menu" tooltip "Open menu"
action ToggleVariable("toggle_menu", True, False) action ToggleScreenVariable("toggle_menu", True, False)
# Sleep button # Sleep button
imagebutton: imagebutton:
@ -191,7 +191,7 @@ style dark_ui_stats_text:
screen ui_menu(): screen ui_menu():
tag ui 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: button:
ypos 34 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 "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) ] 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: 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: if game.day > 1 and renpy.android:
textbutton "Preferences" action ShowMenu("preferences") background None xalign 0.5 text_outlines [ (2, "#00000080", 1, 0) ] textbutton "Preferences" action ShowMenu("preferences") background None xalign 0.5 text_outlines [ (2, "#00000080", 1, 0) ]
if game.day > 1 and persistent.game_complete: 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: #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: hbox:
pos (50, 185) pos (50, 185)