I took a look at your code and found that you're using the new-style imagemap syntax.
Code: Select all
## This file contains imagemaps for
## the title and menu screens.
init -2 python:
layout.imagemap_main_menu(
"GameImages/MenuScreens/USKV-TitleScreen.png",
"GameImages/MenuScreens/USKV-TitleScreen(2).png",
[
(320, 240, 480, 280, "Start Game"),
(320, 280, 480, 320, "Load Game"),
(320, 320, 480, 360, "Preferences"),
(320, 360, 480, 400, "Quit")
])
layout.imagemap_preferences(
"GameImages/MenuScreens/USKV-Preferences-ground.png",
"GameImages/MenuScreens/USKV-Preferences-idle.png",
"GameImages/MenuScreens/USKV-Preferences-hover.png",
"GameImages/MenuScreens/USKV-Preferences-selected_idle.png",
"GameImages/MenuScreens/USKV-Preferences-selected_hover.png",
[
(40, 120, 160, 140, "Window"),
(40, 140, 160, 160, "Fullscreen"),
(240, 120, 360, 140, "All"),
(240, 140, 360, 160, "None"),
(440, 120, 560, 140, "Seen Messages"),
(440, 140, 560, 160, "All Messages"),
(640, 120, 760, 140, "Stop Skipping"),
(640, 140, 760, 160, "Keep Skipping"),
(95, 255, 225, 265, "Music Volume"),
(335, 255, 465, 265, "Sound Volume"),
(95, 375, 225, 385, "Text Speed"),
(335, 375, 465, 385, "Auto-Forward Time"),
(560, 200, 720, 240, "Return"),
(560, 240, 720, 280, "Preferences"),
(560, 360, 720, 400, "Main Menu"),
(560, 400, 720, 440, "Quit")
])
layout.imagemap_load_save(
"GameImages/MenuScreens/USKV-SaveLoad-ground.png",
"GameImages/MenuScreens/USKV-SaveLoad-idle.png",
"GameImages/MenuScreens/USKV-SaveLoad-hover.png",
"GameImages/MenuScreens/USKV-SaveLoad-selected_idle.png",
"GameImages/MenuScreens/USKV-SaveLoad-selected_hover.png",
[
(80, 80, 280, 160, "slot_0"),
(80, 200, 280, 280, "slot_1"),
(80, 320, 280, 400, "slot_2"),
(80, 440, 280, 520, "slot_3"),
(360, 80, 560, 160, "slot_4"),
(360, 200, 560, 280, "slot_5"),
(360, 320, 560, 400, "slot_6"),
(360, 440, 560, 520, "slot_7"),
(600, 160, 760, 200, "Return"),
(600, 240, 760, 280, "Save Game"),
(600, 280, 760, 320, "Load Game"),
(600, 360, 760, 400, "Quit")
])
layout.imagemap_yesno_prompt(
"GameImages/MenuScreens/USKV-YesNo-ground.png",
"GameImages/MenuScreens/USKV-YesNo-idle.png",
"GameImages/MenuScreens/USKV-YesNo-hover.png",
[
(280, 240, 320, 280, "Yes"),
(480, 240, 520, 280, "No")
],
{
layout.ARE_YOU_SURE: Fixed(Text(u"Are you sure?", xalign=0.5, yalign=0.5, size=20),
xanchor=0, yanchor=0, xpos=80, ypos=80, xmaximum=640, ymaximum=120),
layout.DELETE_SAVE: Fixed(Text(u"Are you sure you want to delete this save?", xalign=0.5, yalign=0.5, size=20),
xanchor=0, yanchor=0, xpos=80, ypos=80, xmaximum=640, ymaximum=120),
layout.OVERWRITE_SAVE: Fixed(Text(u"Are you sure you want to overwrite your save?", xalign=0.5, yalign=0.5, size=20),
xanchor=0, yanchor=0, xpos=80, ypos=80, xmaximum=640, ymaximum=120),
layout.LOADING: Fixed(Text(u"Loading will lose unsaved progress.\nAre you sure you want to do this?", xalign=0.5, yalign=0.5, size=20),
xanchor=0, yanchor=0, xpos=80, ypos=80, xmaximum=640, ymaximum=120),
layout.QUIT: Fixed(Text(u"Are you sure you want to quit?", xalign=0.5, yalign=0.5, size=20),
xanchor=0, yanchor=0, xpos=80, ypos=80, xmaximum=640, ymaximum=120),
layout.MAIN_MENU: Fixed(Text(u"Are you sure you want to return to the main menu?\nThis will lose unsaved progress.", xalign=0.5, yalign=0.5, size=20),
xanchor=0, yanchor=0, xpos=80, ypos=80, xmaximum=640, ymaximum=120)
})
config.disable_thumbnails = True
style.file_picker_text_window.xalign = 0.5
style.file_picker_text_window.yalign = 0.5