Here's the code for my custom choice screen. It parses the string that it was passed to read an image that it displays.
Code: Select all
elif menu_style == "Cell Costumes":
hbox:
spacing 5
pos (700, 250)
for caption, action, chosen in items:
hbox:
spacing 0
$ finder = caption[caption.find("(") + 1:caption.find(")")]
$ caption = caption.replace(" (%s)" % finder, "")
button:
add "%s" % finder
action action
style "costume_menu_button_style"
text caption style "costume_menu_text_style"
Here's my menu code:
Code: Select all
label char_costume_menu:
$ menu_style = "Cell Costumes"
menu:
"Casual (char1_costume_icon_casual)":
hide char1 with dissolve
$ char1_costume = 1
pause 0.5
show char1 at left with dissolve
jump batgirl_costume_menu
"Gymnast (char1_costume_icon_gymnast)":
$ char1_costume = 2
jump char1_costume_menu