Seriously, it's like an old TV. How did people live before we had on-screen volume displays?
Anyway, I can't for the life of me get the code to work. I didn't write it initially, but the person who did has vanished from the Internet, so I turn to you, more programmically-inclined individuals, to assist me. All I can say is that the images are exactly where the program is looking for them. Or at least it seems so. The code is as follows:
Code: Select all
imagemap:
ground "ui/options/ground.png"
idle "ui/options/idle.png"
hover "ui/options/hover.png"
selected_idle "ui/options/hover.png"
selected_hover "ui/options/hover.png"
hotspot (628,152,180,20) clicked Preference("display", "window")
hotspot (621,181,195,21) clicked Preference ("display", "fullscreen")
hotspot (1017,152,83,19) clicked Preference("transitions", "all")
hotspot (1006,182,104,18) clicked Preference("transitions", "none")
hotspot (613,313,225,20) action Preference('skip', 'seen')
hotspot (624,343,202,19) action Preference('skip', 'all')
hotspot (604,400,244,20) action Preference('skip', 'begin')
hotspot (940,311,232,23) action Preference('skip', 'stop')
hotspot (941,341,227,22) action Preference('skip', 'keep')
#(725, 181, 790, 213, "Sound Test"),
hotbar (278,161,266,21) value Preference("music volume")
hotbar (278,222,266,21) value Preference("sound volume")
hotbar (278,282,266,21) value Preference("voice volume")
hotbar (278,342,266,21) value Preference("text speed")
# Also define the game menu buttons.
hotspot (42,615,164,23) action Return()
hotspot (414,615,222,23) action ShowMenu('save')
hotspot (645,615,223,23) action ShowMenu('load')
hotspot (214,615,192,23) action ShowMenu('preferences')
hotspot (877,615,223,23) action MainMenu()
hotspot (1108,615,118,23) action Quit()
init -2 python:
style.pref_slider.left_bar = "ui/options/full_bar.png"
style.pref_slider.right_bar = "ui/options/empty_bar.png"
style.pref_slider.xmaximum = 221
style.pref_slider.ymaximum = 15
style.pref_slider.thumb_offset = 0
style.pref_slider.left_gutter = 0
style.pref_slider.right_gutter = 0
style.pref_slider.thumb_shadow = None