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"
|
|
|
|
|
2024-04-09 08:55:31 +00:00
|
|
|
grid 2 6:
|
2024-04-05 05:40:52 +00:00
|
|
|
for i in items:
|
2024-04-09 08:55:31 +00:00
|
|
|
textbutton i.caption action i.action:
|
|
|
|
xalign 0.5
|
2024-04-05 05:40:52 +00:00
|
|
|
|
|
|
|
|
2024-04-09 08:55:31 +00:00
|
|
|
style choice_grid:
|
2024-04-05 05:40:52 +00:00
|
|
|
xalign 0.5
|
|
|
|
ypos 405
|
2024-04-09 08:55:31 +00:00
|
|
|
yanchor 0.0
|
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
|
2024-04-09 08:55:31 +00:00
|
|
|
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)
|
2024-04-09 08:55:31 +00:00
|
|
|
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"
|