This is the code for the menu box.
Code: Select all
screen choice:
add "ui/choice_[screen_choice].png" xalign 0.5 yalign 0.5 at zoom_fade_in
add "ui/changes.png" xalign 0.5 yalign 0.5 at choice_slide
#text "Changes" font "yeti.ttf" size 50 color "4a110d" drop_shadow (3,3) at choice_slide_text
window at zoom_fade_in_text:
style "menu_window"
xalign 0.2
yalign 0.2
vbox:
style "menu"
spacing 27
for caption, action, chosen in items:
if action:
button:
action action
style "menu_choice_button"
text caption style "menu_choice"
else:
text caption style "menu_caption"
init -2 python:
config.narrator_menu = True
style.menu_window.set_parent(style.default)
style.menu_choice.set_parent(style.button_text)
style.menu_choice.clear()
style.menu_choice_button.set_parent(style.button)
style.menu_choice_button.xminimum = int(config.screen_width * 0.33)
style.menu_choice_button.xmaximum = int(config.screen_width * 0.33)
style.menu_choice.outlines = [(0, "#000000", 0, 0),]
style.menu_choice.font = "bulldozer.ttf"
style.menu_choice.size = 45
style.menu_choice.color = "#4a110d"
style.menu_choice.hover_color = "#ffffff"
style.menu_choice.selected_color = "#ffffff"
style.menu_choice_button.background = None
Code: Select all
$ screen_choice = "ash"
$ screen_choice = "bel"
$ screen_choice = "aelf"
This problem doesn't occur for sprite outfits, even though I use the same code for that.
I've tried declaring this.
Code: Select all
image changesthings = "ui/choice_[screen_choice].png"I've also tried
Code: Select all
renpy.restart_interaction()Any help would be greatly appreciate! Thank you.
Attached is an image example.
The code to call Aelf's image is
Code: Select all
$ screen_choice = "aelf"
$renpy.restart_interaction()
$ screen_choice = "aelf"