Animation + styling

This commit is contained in:
LoafyLemon 2024-04-15 19:56:14 +01:00
parent 588f1df01b
commit 5b16c80dac

View File

@ -26,10 +26,10 @@ init python in wheelmenu:
if state == "hidden":
return None
elif state == "disabled":
return renpy.store.Button(displayable, action=action, style_prefix="wheelmenu_disabled", **kwargs)
return renpy.store.Button(displayable, action=action, style="wheelmenu_disabled_button", **kwargs)
if condition:
return renpy.store.Button(displayable, action=action, style_prefix="wheelmenu", **kwargs)
return renpy.store.Button(displayable, action=action, style="wheelmenu_button", **kwargs)
else:
return None
@ -62,7 +62,7 @@ screen wheelmenu(btns, pos):
use close_button_background
window:
window at wheelmenu_anim:
id "wheelmenu"
pos start_pos
@ -75,13 +75,16 @@ style wheelmenu_window is empty:
maximum (400, 400)
anchor (0.5, 0.5)
style wheelmenu_window_button is empty:
style wheelmenu_button is empty:
background "#ffffffc0"
hover_background "#ffffffff"
xysize (48, 48)
anchor (0.5, 0.5)
style wheelmenu_disabled_window_button is wheelmenu_window_button:
style wheelmenu_disabled_button is wheelmenu_button:
background "#ffffff80"
xysize (48, 48)
anchor (0.5, 0.5)
style wheelmenu_window_text is default:
anchor (0.5, 0.5)
@ -91,6 +94,13 @@ style wheelmenu_window_text is default:
style wheelmenu_button_text is wheelmenu_text
transform wheelmenu_anim:
on show:
zoom 0.0
easein 0.15 zoom 1.0
on hide:
easeout 0.15 zoom 0.0
# transform tooltip_follow:
# events False
# function tooltip_func