mirror of
https://git.cavemanon.xyz/Cavemanon/SnootGame.git
synced 2025-02-02 06:46:34 +01:00
Bring fast skipping to the skip button (fucking finally)
This commit is contained in:
parent
e41e277f7b
commit
7904646359
1 changed files with 11 additions and 10 deletions
|
@ -259,11 +259,12 @@ style choice_button_text is default:
|
|||
## The quick menu is displayed in-game to provide easy access to the out-of-game
|
||||
## menus.
|
||||
|
||||
screen quick_button(filename, label, function):
|
||||
screen quick_button(filename, label, function=NullAction(), function2=NullAction()):
|
||||
button:
|
||||
xsize 71
|
||||
ysize 71
|
||||
action function
|
||||
alternate function2
|
||||
if 'Return' in label or 'Back' in label or 'Menu' in label:
|
||||
activate_sound "audio/ui/uiBack.wav"
|
||||
else:
|
||||
|
@ -276,7 +277,7 @@ screen quick_button(filename, label, function):
|
|||
# Reuse the same image string and keep things 'neat'.
|
||||
screen quick_buttons(filename, label_functions):
|
||||
for l_f in label_functions:
|
||||
use quick_button(filename, l_f[0], l_f[1])
|
||||
use quick_button(filename, l_f[0], l_f[1], l_f[2])
|
||||
|
||||
screen quick_menu():
|
||||
|
||||
|
@ -292,10 +293,10 @@ screen quick_menu():
|
|||
|
||||
use quick_buttons("gui/button/uioptionbuttons/template_idle.png",
|
||||
[
|
||||
[ _("Skip"), Skip() ],
|
||||
[ _("Save"), ShowMenu('save') ],
|
||||
[ _("Auto"), Preference("auto-forward", "toggle") ],
|
||||
[ _("Load"), ShowMenu('load') ]
|
||||
[ _("Skip"), Skip(), Skip(fast=True, confirm=True) ],
|
||||
[ _("Save"), ShowMenu('save'), NullAction() ],
|
||||
[ _("Auto"), Preference("auto-forward", "toggle"), NullAction() ],
|
||||
[ _("Load"), ShowMenu('load'), NullAction() ]
|
||||
] )
|
||||
|
||||
screen score_menu():
|
||||
|
@ -1788,10 +1789,10 @@ screen quick_menu():
|
|||
yalign 0.975
|
||||
use quick_buttons("gui/button/uioptionbuttons/template_idle.png", \
|
||||
[ \
|
||||
[ _("Back"), Rollback() ], \
|
||||
[ _("Skip"), Skip() ], \
|
||||
[ _("Auto"), Preference("auto-forward", "toggle") ], \
|
||||
[ _("Menu"), ShowMenu() ] \
|
||||
[ _("Back"), Rollback(), NullAction()], \
|
||||
[ _("Skip"), Skip(), Skip(fast=True, confirm=True) ], \
|
||||
[ _("Auto"), Preference("auto-forward", "toggle"), NullAction() ], \
|
||||
[ _("Menu"), ShowMenu(), NullAction() ] \
|
||||
] )
|
||||
|
||||
screen extrasnavigation(): #Updates are removed (not even supported by Ren'Py)
|
||||
|
|
Loading…
Reference in a new issue