It's a pretty simple change.Nova Alamak wrote:My screen preferences area mentioned in the tutorial for customizing menus via styles doesn't look anything like the one in the example.
I've never edited it either. Is there a more up-to-date version of this tutorial? I'm trying not to do an imagemap for my options menu.Code: Select all
init -2: style pref_frame: xfill True xmargin 5 top_margin 5 style pref_vbox: xfill True style pref_button: size_group "pref" xalign 1.0 style pref_slider: xmaximum 192 xalign 1.0 style soundtest_button: xalign 1.0
Instead of the former way.
Code: Select all
style.pref_button.background = Frame("menu/button_idle.png",10,10)
style.pref_button.hover_background = Frame("menu/button_hover.png",10,10)
style.pref_button.selected_background = Frame("menu/button_selected.png",10,10)
style.pref_button.selected_hover_background = Frame("menu/button_hover.png",10,10)
style.pref_button.yminimum = 40
Code: Select all
style pref_button:
background Frame("menu/button_idle.png",10,10)
style pref_button:
hover_background Frame("menu/button_hover.png",10,10)
style pref_button:
selected_background Frame("menu/button_selected.png",10,10)
style pref_button:
selected_hover_background Frame("menu/button_hover.png",10,10)
style pref_button:
yminimum 40