Jam13Yuuka/game/screens/choice_screen.rpy

38 lines
1011 B
Plaintext
Raw Normal View History

2024-04-05 05:40:52 +00:00
## Choice screen ###############################################################
##
## This screen is used to display the in-game choices presented by the menu
## statement. The one parameter, items, is a list of objects, each with caption
## and action fields.
##
## https://www.renpy.org/doc/html/screen_special.html#choice
screen choice(items):
style_prefix "choice"
grid 2 3:
2024-04-05 05:40:52 +00:00
for i in items:
textbutton i.caption action i.action:
xalign 0.5
2024-04-05 05:40:52 +00:00
style choice_grid:
2024-04-05 05:40:52 +00:00
xalign 0.5
ypos 405
yanchor 0.4
2024-04-05 05:40:52 +00:00
spacing 33
style choice_button:
is default # This means it doesn't use the usual button styling
xysize (None, 144)
2024-04-05 05:40:52 +00:00
background Frame("gui/button/choice_[prefix_]background.png",
150, 25, 150, 25, tile=False)
padding (100, 12)
2024-04-05 05:40:52 +00:00
style choice_button_text:
is default # This means it doesn't use the usual button text styling
xalign 0.5 yalign 0.5
idle_color "#ccc"
hover_color "#fff"
insensitive_color "#444"