One, in the screens file
Code: Select all
screen choice(items):
window:
style "menu_window"
xalign 0.5
yalign 0.5
init -2:
$ config.narrator_menu = True
## ----- Button Background -------------------------------------
style menu_choice_button is button:
background Frame("boxes/boxg.png",0,0)
hover_background Frame("boxes/boxh.png",0,0)
# Sets Max Widths
xminimum int(config.screen_width * 0.45)
xmaximum int(config.screen_width * 0.45)
#Sets minimum height -- recommend exact height of your button image
yminimum 60
ypadding 5
xpadding 5Two, in the options file
Code: Select all
style.menu_choice_button.background = Frame("boxes/boxg.png",25,15)
style.menu_choice_button.hover_background = Frame("boxes/boxh.png",25,15)
style.menu_choice_button.yminimum = 40
style.menu_choice_button.xminimum = 375That just returns with
Code: Select all
I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.
File "game/options.rpy", line 206: expected 'word' not found.
style.menu_choice_button.background = Frame("boxes/boxg.png",25,15)
^
File "game/options.rpy", line 207: expected 'word' not found.
style.menu_choice_button.hover_background = Frame("boxes/boxh.png",25,15)
^
File "game/options.rpy", line 208: expected 'word' not found.
style.menu_choice_button.yminimum = 40
^
File "game/options.rpy", line 209: expected 'word' not found.
style.menu_choice_button.xminimum = 375
^
Ren'Py Version: Ren'Py 6.99.12.1.2012
