From d59040613b055c6f392058e10db75c8e5955f86b Mon Sep 17 00:00:00 2001 From: LoafyLemon Date: Tue, 21 May 2024 02:27:21 +0100 Subject: [PATCH] Animate choice menu --- game/scripts/gui/say.rpy | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/game/scripts/gui/say.rpy b/game/scripts/gui/say.rpy index 72d84e30..69c4136d 100644 --- a/game/scripts/gui/say.rpy +++ b/game/scripts/gui/say.rpy @@ -139,6 +139,7 @@ screen choice(items): # add Image("gui/creamy_pumpkin_pie/fade_top.png", oversample=2) alpha 0.5 vbox: + at gui_choice_show_hide for i, entry in enumerate(items, 1): $ scale = (1.0 * (32 / max(32, len(entry.caption)))) $ icon = entry.kwargs.get("icon", None) @@ -199,6 +200,16 @@ transform gui_show_hide: on hide: easeout 0.1 zoom 0.95 alpha 0 +transform gui_choice_show_hide: + show_cancels_hide False + on start: + xoffset -100 + alpha 0 + pause 0.1 + easein 0.1 alpha 1 xoffset 0 + on hide: + easeout 0.2 alpha 0 xoffset 100 + style choice_vbox is vbox style choice_button is button style choice_button_text is button_text