Animation + styling
This commit is contained in:
parent
588f1df01b
commit
5b16c80dac
@ -26,10 +26,10 @@ init python in wheelmenu:
|
|||||||
if state == "hidden":
|
if state == "hidden":
|
||||||
return None
|
return None
|
||||||
elif state == "disabled":
|
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:
|
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:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
@ -62,7 +62,7 @@ screen wheelmenu(btns, pos):
|
|||||||
|
|
||||||
use close_button_background
|
use close_button_background
|
||||||
|
|
||||||
window:
|
window at wheelmenu_anim:
|
||||||
id "wheelmenu"
|
id "wheelmenu"
|
||||||
pos start_pos
|
pos start_pos
|
||||||
|
|
||||||
@ -75,13 +75,16 @@ style wheelmenu_window is empty:
|
|||||||
maximum (400, 400)
|
maximum (400, 400)
|
||||||
anchor (0.5, 0.5)
|
anchor (0.5, 0.5)
|
||||||
|
|
||||||
style wheelmenu_window_button is empty:
|
style wheelmenu_button is empty:
|
||||||
background "#ffffffc0"
|
background "#ffffffc0"
|
||||||
|
hover_background "#ffffffff"
|
||||||
xysize (48, 48)
|
xysize (48, 48)
|
||||||
anchor (0.5, 0.5)
|
anchor (0.5, 0.5)
|
||||||
|
|
||||||
style wheelmenu_disabled_window_button is wheelmenu_window_button:
|
style wheelmenu_disabled_button is wheelmenu_button:
|
||||||
background "#ffffff80"
|
background "#ffffff80"
|
||||||
|
xysize (48, 48)
|
||||||
|
anchor (0.5, 0.5)
|
||||||
|
|
||||||
style wheelmenu_window_text is default:
|
style wheelmenu_window_text is default:
|
||||||
anchor (0.5, 0.5)
|
anchor (0.5, 0.5)
|
||||||
@ -91,6 +94,13 @@ style wheelmenu_window_text is default:
|
|||||||
|
|
||||||
style wheelmenu_button_text is wheelmenu_text
|
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:
|
# transform tooltip_follow:
|
||||||
# events False
|
# events False
|
||||||
# function tooltip_func
|
# function tooltip_func
|
||||||
|
Loading…
Reference in New Issue
Block a user