diff --git a/game/gui/button/uioptionbuttons/template_hover.png b/game/gui/button/uioptionbuttons/template_hover.png new file mode 100644 index 0000000..f85807a Binary files /dev/null and b/game/gui/button/uioptionbuttons/template_hover.png differ diff --git a/game/gui/button/uioptionbuttons/template_idle.png b/game/gui/button/uioptionbuttons/template_idle.png new file mode 100644 index 0000000..6dbd805 Binary files /dev/null and b/game/gui/button/uioptionbuttons/template_idle.png differ diff --git a/game/screens.rpy b/game/screens.rpy index 68f661d..7fe8a73 100644 --- a/game/screens.rpy +++ b/game/screens.rpy @@ -385,7 +385,7 @@ screen main_menu(): imagebutton auto "gui/button/menubuttons/helpbutton_%s.png" action ShowMenu("extras") imagebutton auto "gui/button/menubuttons/quitbutton_%s.png" action Quit(confirm=not main_menu) - + # if gui.show_name: # # vbox: @@ -1526,24 +1526,27 @@ style pref_vbox: ## Since a mouse may not be present, we replace the quick menu with a version ## that uses fewer and bigger buttons that are easier to touch. +screen quick_button(filename, label, function): + button: + xmaximum 140 + ymaximum 0 + add filename xalign 0.5 yalign 0.5 + text label xalign 0.5 yalign 0.5 size 22 color "#000" + action function + + screen quick_menu(): - variant "touch" - + variant "small" zorder 100 - if quick_menu: - hbox: style_prefix "quick" - xalign 0.5 - yalign 1.0 - - textbutton _("Back") action Rollback() - textbutton _("Skip") action Skip() alternate Skip(fast=True, confirm=True) - textbutton _("Auto") action Preference("auto-forward", "toggle") - textbutton _("Menu") action ShowMenu() - + yalign 0.9375 + use quick_button("gui/button/uioptionbuttons/template_idle.png", "Back", Rollback()) + use quick_button("gui/button/uioptionbuttons/template_idle.png", "Skip", Skip()) #alternate Skip(fast=True, confirm=True)) + use quick_button("gui/button/uioptionbuttons/template_idle.png", "Auto", Preference("auto-forward", "toggle")) + use quick_button("gui/button/uioptionbuttons/template_idle.png", "Menu", ShowMenu()) style window: variant "small"