Animate choice menu
This commit is contained in:
parent
e4f0a9531d
commit
d59040613b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user