mirror of
https://git.cavemanon.xyz/Cavemanon/SnootGame.git
synced 2025-03-25 11:29:16 +01:00
fix android mod buttons
This commit is contained in:
parent
033175500c
commit
5d44682f49
1 changed files with 20 additions and 12 deletions
|
@ -1028,6 +1028,23 @@ screen mod_menu():
|
||||||
# Mod play and hide mod details pane buttons for android
|
# Mod play and hide mod details pane buttons for android
|
||||||
if needs_android_buttons:
|
if needs_android_buttons:
|
||||||
hbox:
|
hbox:
|
||||||
|
box_reverse True
|
||||||
|
if len(mod_menu_errorcodes) != 0:
|
||||||
|
button:
|
||||||
|
frame:
|
||||||
|
xfill True
|
||||||
|
yfill True
|
||||||
|
if mod_metadata.get("Label") != None:
|
||||||
|
xmaximum 0.5
|
||||||
|
if persistent.use_epilogue_menu:
|
||||||
|
background Frame("gui/button/menubuttons/template_idle_epilogue.png", 12, 12)
|
||||||
|
else:
|
||||||
|
background Frame("gui/button/menubuttons/template_full_idle.png", 12, 12)
|
||||||
|
|
||||||
|
text _("Show Errors") xalign 0.5 yalign 0.5 size 50 outlines [ (absolute(1), "#000", absolute(0), absolute(0)) ]
|
||||||
|
action SetScreenVariable("mod_metadata", {})
|
||||||
|
activate_sound "audio/ui/snd_ui_click.wav"
|
||||||
|
|
||||||
if mod_metadata.get("Label") != None:
|
if mod_metadata.get("Label") != None:
|
||||||
$ mod_button_alpha = 1.0 if mod_metadata["Enabled"] == True else 0.4 # Fade mod button out if mod is disabled
|
$ mod_button_alpha = 1.0 if mod_metadata["Enabled"] == True else 0.4 # Fade mod button out if mod is disabled
|
||||||
button:
|
button:
|
||||||
|
@ -1035,26 +1052,17 @@ screen mod_menu():
|
||||||
alpha mod_button_alpha
|
alpha mod_button_alpha
|
||||||
|
|
||||||
frame:
|
frame:
|
||||||
|
xfill True
|
||||||
|
yfill True
|
||||||
if persistent.use_epilogue_menu:
|
if persistent.use_epilogue_menu:
|
||||||
background Frame("gui/button/menubuttons/template_idle_epilogue.png", 12, 12)
|
background Frame("gui/button/menubuttons/template_idle_epilogue.png", 12, 12)
|
||||||
else:
|
else:
|
||||||
background Frame("gui/button/menubuttons/template_full_idle.png", 12, 12)
|
background Frame("gui/button/menubuttons/template_full_idle.png", 12, 12)
|
||||||
|
|
||||||
text _("Start") xalign 0.5 yalign 0.5 size 50 outlines [ (absolute(1), "#000", absolute(0), absolute(0)) ]
|
text _("Start") xalign 0.5 yalign 0.5 size 50 outlines [ (absolute(1), "#000", absolute(0), absolute(0)) ]
|
||||||
action Start(mod_metadata["Label"])
|
action Start(mod_metadata["Label"])
|
||||||
activate_sound "audio/ui/snd_ui_click.wav"
|
activate_sound "audio/ui/snd_ui_click.wav"
|
||||||
|
|
||||||
if len(mod_menu_errorcodes) != 0:
|
|
||||||
button:
|
|
||||||
frame:
|
|
||||||
if persistent.use_epilogue_menu:
|
|
||||||
background Frame("gui/button/menubuttons/template_idle_epilogue.png", 12, 12)
|
|
||||||
else:
|
|
||||||
background Frame("gui/button/menubuttons/template_full_idle.png", 12, 12)
|
|
||||||
|
|
||||||
text _("Show Errors") xalign 0.5 yalign 0.5 size 50 outlines [ (absolute(1), "#000", absolute(0), absolute(0)) ]
|
|
||||||
action SetScreenVariable("mod_metadata", {})
|
|
||||||
activate_sound "audio/ui/snd_ui_click.wav"
|
|
||||||
|
|
||||||
if not persistent.seenModWarning:
|
if not persistent.seenModWarning:
|
||||||
$ persistent.seenModWarning = True
|
$ persistent.seenModWarning = True
|
||||||
|
|
Loading…
Add table
Reference in a new issue