init 800 python:
    class MouseParallax(renpy.Displayable):
        def __init__(self,layer_info):
            super(renpy.Displayable,self).__init__()
            self.xoffset,self.yoffset=0.0,0.0
            self.sort_layer=sorted(layer_info,reverse=True)
            cflayer=[]
            masteryet=False
            for m,n in self.sort_layer:
                if(not masteryet)and(m<41):
                    cflayer.append("master")
                    masteryet=True
                cflayer.append(n)
            if not masteryet:
                cflayer.append("master")
            cflayer.extend(["transient","screens","overlay"])
            config.layers=cflayer
            config.overlay_functions.append(self.overlay)
            return
        def render(self,width,height,st,at):
            return renpy.Render(width,height)
        def parallax(self,m):
            func = renpy.curry(trans)(disp=self, m=m)
            return Transform(function=func)
        def overlay(self):
            ui.add(self)
            for m,n in self.sort_layer:
                renpy.layer_at_list([self.parallax(m)],n)
            return
        def event(self,ev,x,y,st):
            import pygame
            if ev.type==pygame.MOUSEMOTION:
                self.xoffset=((float)(x)/(config.screen_width))-0.5#,((float)(y)/(config.screen_height))-0.5
            return
    MouseParallax([(40,"farback"),(20,"back"),(-20,"front"),(-40,"inyourface")])

    def trans(d, st, at, disp=None, m=None):
        d.xoffset = int(round(m*disp.xoffset))#, int(round(m*disp.yoffset))
        return 0

################################################# SAY SCREEN v1 ###########################################
screen say(who, what, side_image=None, two_window=False):


    if not two_window:


        window:
            id "window"

            has vbox:
                style "say_vbox"

            if who:
                text who id "who"

            text what id "what"

    else:


        vbox:
            style "say_two_window_vbox"

            if who:
                window:
                    style "say_who_window"

                    text who:
                        id "who"

            window:
                id "window"

                has vbox:
                    style "say_vbox"

                text what id "what"


    if side_image:
        add side_image
    else:
        add SideImage() xalign 0.0 yalign 1.0

    use quick_menu

################################################# SAY SCREEN v2 ###########################################
screen say(who, what):
    style_prefix "say"

    window:
        id "window"

        if who is not None:

            window:
                id "namebox"
                style "namebox"
                text who id "who"

        text what id "what"



    if not renpy.variant("small"):
        add SideImage() xalign 0.0 yalign 1.0



init python:
    config.character_id_prefixes.append('namebox')

style window is default
style say_label is default
style say_dialogue is default
style say_thought is say_dialogue

style namebox is default
style namebox_label is say_label


style window:                                                           ######################################
    xalign 0.5
    xfill True
    yalign gui.textbox_yalign
    ysize gui.textbox_height

    background Image("gui/textbox.png", xalign=0.5, yalign=1.0)

style namebox:
    xpos gui.name_xpos
    xanchor gui.name_xalign
    xsize gui.namebox_width
    ypos gui.name_ypos
    ysize gui.namebox_height

    background Frame("gui/namebox.png", gui.namebox_borders, tile=gui.namebox_tile, xalign=gui.name_xalign)
    padding gui.namebox_borders.padding

style say_label:
    properties gui.text_properties("name", accent=True)
    xalign gui.name_xalign
    yalign 0.5

style say_dialogue:                                                    #################################################
    properties gui.text_properties("dialogue")

    xpos gui.dialogue_xpos
    xsize gui.dialogue_width
    ypos gui.dialogue_ypos

################################################# SHAKE ##############################################
init:

    python:

        import math

        class Shaker(object):

            anchors = {
                'top' : 0.0,
                'center' : 0.5,
                'bottom' : 1.0,
                'left' : 0.0,
                'right' : 1.0,
                }

            def __init__(self, start, child, dist):
                if start is None:
                    start = child.get_placement()
                #
                self.start = [ self.anchors.get(i, i) for i in start ]  # central position
                self.dist = dist    # maximum distance, in pixels, from the starting point
                self.child = child

            def __call__(self, t, sizes):
                # Float to integer... turns floating point numbers to
                # integers.
                def fti(x, r):
                    if x is None:
                        x = 0
                    if isinstance(x, float):
                        return int(x * r)
                    else:
                        return x

                xpos, ypos, xanchor, yanchor = [ fti(a, b) for a, b in zip(self.start, sizes) ]

                xpos = xpos - xanchor
                ypos = ypos - yanchor

                nx = xpos + (1.0-t) * self.dist * (renpy.random.random()*2-1)
                ny = ypos + (1.0-t) * self.dist * (renpy.random.random()*2-1)

                return (int(nx), int(ny), 0, 0)

        def _Shake(start, time, child=None, dist=100.0, **properties):

            move = Shaker(start, child, dist=dist)

            return renpy.display.layout.Motion(move,
                          time,
                          child,
                          add_sizes=True,
                          **properties)

        Shake = renpy.curry(_Shake)

init:
    $ sshake = Shake((0, 0, 0, 0), 2.0, dist=15)

################################################# CHOICE MENU ################################################
screen choice(items):
    window:
        style "menu_window"
        xalign 0.5
        yalign 0.5

        has vbox:
            style "menu"
            spacing 2

        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:
    $ config.narrator_menu = True

    style menu_window is default

    style menu_choice is button_text clear


    style menu_choice_button is button:
        xminimum int(config.screen_width)
        xmaximum int(config.screen_width)

################################################# INPUT v1 ################################################
screen input(prompt):
    window style "input_window":
        has vbox

        text prompt style "input_prompt"
        input id "input" style "input_text"

    use quick_menu

################################################# INPUT v2 ################################################
screen input(prompt):
    style_prefix "input"

    window:

        vbox:
            xalign gui.dialogue_text_xalign
            xpos gui.dialogue_xpos
            xsize gui.dialogue_width
            ypos gui.dialogue_ypos

            text prompt style "input_prompt"
            input id "input"

style input_prompt is default

style input_prompt:
    xalign gui.dialogue_text_xalign
    properties gui.text_properties("input_prompt")

style input:
    xalign gui.dialogue_text_xalign
    xmaximum gui.dialogue_width

################################################# NVL DIALOGUE ###########################################
screen nvl(dialogue, items=None):
    window:
        style "nvl_window"

        has vbox:
            style "nvl_vbox"

        # Display dialogue.
        for who, what, who_id, what_id, window_id in dialogue:
            window:
                id window_id

                has hbox:
                    spacing 60

                if who is not None:
                    text who id who_id

                text what id what_id

        # Display a menu, if given.
        if items:

            vbox:
                id "menu"

                for caption, action, chosen in items:

                    if action:

                        button:
                            style "nvl_menu_choice_button"
                            action action

                            text caption style "nvl_menu_choice"

                    else:

                        text caption style "nvl_dialogue"

    add SideImage() xalign 0.0 yalign 1.0

    use quick_menu
################################################# MENU GEAR ###################################################
screen menu_gear:
    imagebutton:
        focus_mask True
        idle "gui/gm_gear_idle.png"
        hover "gui/gm_gear_hover.png"
        #activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_esc.mp3"
        action ShowMenu("navigation") #ShowTransient

################################################# END CREDITS ###################################################


################################################# MAIN MENU ###################################################
image mmcharacters:
    Image("gui/mm_title_new.png") with dissolve
    pause 5
    Image("gui/mm_vignette.png") with Dissolve(1.5)
    pause 2
    Image("gui/mm_char_eve.png") with Dissolve(1.5)
    pause 7
    Image("gui/mm_vignette.png") with Dissolve(1.5)
    pause 2
    Image("gui/mm_char_isabela.png") with Dissolve(1.5)
    pause 7
    Image("gui/mm_vignette.png") with Dissolve(1.5)
    pause 2
    Image("gui/mm_char_naomi.png") with Dissolve(1.5)
    pause 7
    Image("gui/mm_vignette.png") with Dissolve(1.5)
    pause 2
    Image("gui/mm_char_jessica.png") with Dissolve(1.5)
    pause 7
    Image("gui/mm_vignette.png") with Dissolve(1.5)
    pause 2
    repeat

image mmoverlay:
    Image("gui/mm_overlay_high.png") with Dissolve(2)
    pause 4
    Image("gui/mm_overlay_low.png") with Dissolve(0.01)
    pause 0.01
    Image("gui/mm_overlay_high.png") with Dissolve(0.01)
    pause 0.01
    Image("gui/mm_overlay_low.png") with Dissolve(0.01)
    pause 0.01
    Image("gui/mm_overlay_high.png") with Dissolve(0.01)
    pause 0.01
    Image("gui/mm_overlay_low.png") with Dissolve(0.01)
    pause 0.01
    Image("gui/mm_overlay_high.png") with Dissolve(0.01)
    pause 5
    Image("gui/mm_overlay_low.png") with Dissolve(2)
    pause 2
    Image("gui/mm_overlay_high.png") with Dissolve(2)
    pause 9
    repeat

screen main_menu() tag menu:
    window:
        style "mm_root"
    add "gui/mm_bg.jpg"
    #add "gui/mm_title_faded.png"
    add "mmcharacters"
    add "mmoverlay"

    if persistent.start_initiated == True:
        imagebutton:
            focus_mask True
            idle "gui/mmbutton_continue_idle.png"
            hover "gui/mmbutton_continue_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("mm_continue")

    else:
        imagebutton:
            focus_mask True
            idle "gui/mmbutton_continue_inert.png"
            hover "gui/mmbutton_continue_inert.png"
            #activate_sound "audio/gui_button_click.mp3"
            #hover_sound "audio/gui_button_hover.mp3"
            action NullAction()

    imagebutton:
        focus_mask True
        idle "gui/mmbutton_newstory_idle.png"
        hover "gui/mmbutton_newstory_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action Start()#, Hide("main_menu")

    imagebutton:
        focus_mask True
        idle "gui/mmbutton_settings_idle.png"
        hover "gui/mmbutton_settings_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("preferences")#, Hide("main_menu")

    imagebutton:
        focus_mask True
        idle "gui/mmbutton_patreon_idle.png"
        hover "gui/mmbutton_patreon_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action OpenURL("https://www.patreon.com/artifixion")

    imagebutton:
        focus_mask True
        idle "gui/mmbutton_extras_idle.png"
        hover "gui/mmbutton_extras_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("extras_warning")#, Hide("main_menu")

    imagebutton:
        focus_mask True
        idle "gui/mmbutton_x_idle.png"
        hover "gui/mmbutton_x_hover.png"
        #activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_exit.mp3"
        action Quit()#(confirm=True)

init -2:
    style mm_button:
        size_group "mm"
################################################# CONTINUE ##############################################
screen mm_continue() tag menu:

    imagemap:
        ground "gui/gm_continue_6_bg.png"
        idle "gui/gm_continue_6_bg.png"
        hover "gui/gm_continue_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileLoad(1):
            use load_save_slot(number=1)
        hotspot (654, 141, 613, 345) clicked FileLoad(2):
            use load_save_slot(number=2)
        hotspot (1288, 141, 613, 345) clicked FileLoad(3):
            use load_save_slot(number=3)
        hotspot (20, 511, 613, 345) clicked FileLoad(4):
            use load_save_slot(number=4)
        hotspot (654, 511, 613, 345) clicked FileLoad(5):
            use load_save_slot(number=5)
        hotspot (1288, 511, 613, 345) clicked FileLoad(6):
            use load_save_slot(number=6)

        imagebutton:
            focus_mask True
            idle "gui/gm_load_back_idle.png"
            hover "gui/gm_load_back_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action Return()

        imagebutton:
            focus_mask True
            idle "gui/gm_load_next_idle.png"
            hover "gui/gm_load_next_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("mm_continue_page_2")

screen mm_continue_page_2() tag menu:

    imagemap:
        ground "gui/gm_continue_6_bg.png"
        idle "gui/gm_continue_6_bg.png"
        hover "gui/gm_continue_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileLoad(7):
            use load_save_slot(number=7)
        hotspot (654, 141, 613, 345) clicked FileLoad(8):
            use load_save_slot(number=8)
        hotspot (1288, 141, 613, 345) clicked FileLoad(9):
            use load_save_slot(number=9)
        hotspot (20, 511, 613, 345) clicked FileLoad(10):
            use load_save_slot(number=10)
        hotspot (654, 511, 613, 345) clicked FileLoad(11):
            use load_save_slot(number=11)
        hotspot (1288, 511, 613, 345) clicked FileLoad(12):
            use load_save_slot(number=12)

        imagebutton:
            focus_mask True
            idle "gui/gm_load_back_idle.png"
            hover "gui/gm_load_back_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action Return()

        imagebutton:
            focus_mask True
            idle "gui/gm_load_prev_idle.png"
            hover "gui/gm_load_prev_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("mm_continue")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_next_idle.png"
            hover "gui/gm_load_next_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("mm_continue_page_3")

screen mm_continue_page_3() tag menu:

    imagemap:
        ground "gui/gm_continue_6_bg.png"
        idle "gui/gm_continue_6_bg.png"
        hover "gui/gm_continue_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileLoad(13):
            use load_save_slot(number=13)
        hotspot (654, 141, 613, 345) clicked FileLoad(14):
            use load_save_slot(number=14)
        hotspot (1288, 141, 613, 345) clicked FileLoad(15):
            use load_save_slot(number=15)
        hotspot (20, 511, 613, 345) clicked FileLoad(16):
            use load_save_slot(number=16)
        hotspot (654, 511, 613, 345) clicked FileLoad(17):
            use load_save_slot(number=17)
        hotspot (1288, 511, 613, 345) clicked FileLoad(18):
            use load_save_slot(number=18)

        imagebutton:
            focus_mask True
            idle "gui/gm_load_back_idle.png"
            hover "gui/gm_load_back_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action Return()

        imagebutton:
            focus_mask True
            idle "gui/gm_load_prev_idle.png"
            hover "gui/gm_load_prev_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("mm_continue_page_2")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_next_idle.png"
            hover "gui/gm_load_next_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("mm_continue_page_4")

screen mm_continue_page_4() tag menu:

    imagemap:
        ground "gui/gm_continue_6_bg.png"
        idle "gui/gm_continue_6_bg.png"
        hover "gui/gm_continue_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileLoad(19):
            use load_save_slot(number=19)
        hotspot (654, 141, 613, 345) clicked FileLoad(20):
            use load_save_slot(number=20)
        hotspot (1288, 141, 613, 345) clicked FileLoad(21):
            use load_save_slot(number=21)
        hotspot (20, 511, 613, 345) clicked FileLoad(22):
            use load_save_slot(number=22)
        hotspot (654, 511, 613, 345) clicked FileLoad(23):
            use load_save_slot(number=23)
        hotspot (1288, 511, 613, 345) clicked FileLoad(24):
            use load_save_slot(number=24)

        imagebutton:
            focus_mask True
            idle "gui/gm_load_back_idle.png"
            hover "gui/gm_load_back_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action Return()

        imagebutton:
            focus_mask True
            idle "gui/gm_load_prev_idle.png"
            hover "gui/gm_load_prev_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("mm_continue_page_3")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_next_idle.png"
            hover "gui/gm_load_next_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("mm_continue_page_5")

screen mm_continue_page_5() tag menu:

    imagemap:
        ground "gui/gm_continue_6_bg.png"
        idle "gui/gm_continue_6_bg.png"
        hover "gui/gm_continue_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileLoad(25):
            use load_save_slot(number=25)
        hotspot (654, 141, 613, 345) clicked FileLoad(26):
            use load_save_slot(number=26)
        hotspot (1288, 141, 613, 345) clicked FileLoad(27):
            use load_save_slot(number=27)
        hotspot (20, 511, 613, 345) clicked FileLoad(28):
            use load_save_slot(number=28)
        hotspot (654, 511, 613, 345) clicked FileLoad(29):
            use load_save_slot(number=29)
        hotspot (1288, 511, 613, 345) clicked FileLoad(30):
            use load_save_slot(number=30)

        imagebutton:
            focus_mask True
            idle "gui/gm_load_back_idle.png"
            hover "gui/gm_load_back_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action Return()

        imagebutton:
            focus_mask True
            idle "gui/gm_load_prev_idle.png"
            hover "gui/gm_load_prev_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("mm_continue_page_4")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_next_idle.png"
            hover "gui/gm_load_next_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("mm_continue_page_6")

screen mm_continue_page_6() tag menu:

    imagemap:
        ground "gui/gm_continue_6_bg.png"
        idle "gui/gm_continue_6_bg.png"
        hover "gui/gm_continue_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileLoad(31):
            use load_save_slot(number=31)
        hotspot (654, 141, 613, 345) clicked FileLoad(32):
            use load_save_slot(number=32)
        hotspot (1288, 141, 613, 345) clicked FileLoad(33):
            use load_save_slot(number=33)
        hotspot (20, 511, 613, 345) clicked FileLoad(34):
            use load_save_slot(number=34)
        hotspot (654, 511, 613, 345) clicked FileLoad(35):
            use load_save_slot(number=35)
        hotspot (1288, 511, 613, 345) clicked FileLoad(36):
            use load_save_slot(number=36)

        imagebutton:
            focus_mask True
            idle "gui/gm_load_back_idle.png"
            hover "gui/gm_load_back_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action Return()

        imagebutton:
            focus_mask True
            idle "gui/gm_load_prev_idle.png"
            hover "gui/gm_load_prev_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("mm_continue_page_5")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_next_idle.png"
            hover "gui/gm_load_next_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("mm_continue_page_7")

screen mm_continue_page_7() tag menu:

    imagemap:
        ground "gui/gm_continue_6_bg.png"
        idle "gui/gm_continue_6_bg.png"
        hover "gui/gm_continue_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileLoad(37):
            use load_save_slot(number=37)
        hotspot (654, 141, 613, 345) clicked FileLoad(38):
            use load_save_slot(number=38)
        hotspot (1288, 141, 613, 345) clicked FileLoad(39):
            use load_save_slot(number=39)
        hotspot (20, 511, 613, 345) clicked FileLoad(40):
            use load_save_slot(number=40)
        hotspot (654, 511, 613, 345) clicked FileLoad(41):
            use load_save_slot(number=41)
        hotspot (1288, 511, 613, 345) clicked FileLoad(42):
            use load_save_slot(number=42)

        imagebutton:
            focus_mask True
            idle "gui/gm_load_back_idle.png"
            hover "gui/gm_load_back_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action Return()

        imagebutton:
            focus_mask True
            idle "gui/gm_load_prev_idle.png"
            hover "gui/gm_load_prev_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("mm_continue_page_6")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_next_idle.png"
            hover "gui/gm_load_next_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("mm_continue_page_8")

screen mm_continue_page_8() tag menu:

    imagemap:
        ground "gui/gm_continue_6_bg.png"
        idle "gui/gm_continue_6_bg.png"
        hover "gui/gm_continue_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileLoad(43):
            use load_save_slot(number=43)
        hotspot (654, 141, 613, 345) clicked FileLoad(44):
            use load_save_slot(number=44)
        hotspot (1288, 141, 613, 345) clicked FileLoad(45):
            use load_save_slot(number=45)
        hotspot (20, 511, 613, 345) clicked FileLoad(46):
            use load_save_slot(number=46)
        hotspot (654, 511, 613, 345) clicked FileLoad(47):
            use load_save_slot(number=47)
        hotspot (1288, 511, 613, 345) clicked FileLoad(48):
            use load_save_slot(number=48)

        imagebutton:
            focus_mask True
            idle "gui/gm_load_back_idle.png"
            hover "gui/gm_load_back_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action Return()

        imagebutton:
            focus_mask True
            idle "gui/gm_load_prev_idle.png"
            hover "gui/gm_load_prev_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("mm_continue_page_7")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_next_idle.png"
            hover "gui/gm_load_next_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("mm_continue_page_9")

screen mm_continue_page_9() tag menu:

    imagemap:
        ground "gui/gm_continue_6_bg.png"
        idle "gui/gm_continue_6_bg.png"
        hover "gui/gm_continue_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileLoad(49):
            use load_save_slot(number=49)
        hotspot (654, 141, 613, 345) clicked FileLoad(50):
            use load_save_slot(number=50)
        hotspot (1288, 141, 613, 345) clicked FileLoad(51):
            use load_save_slot(number=51)
        hotspot (20, 511, 613, 345) clicked FileLoad(52):
            use load_save_slot(number=52)
        hotspot (654, 511, 613, 345) clicked FileLoad(53):
            use load_save_slot(number=53)
        hotspot (1288, 511, 613, 345) clicked FileLoad(54):
            use load_save_slot(number=54)

        imagebutton:
            focus_mask True
            idle "gui/gm_load_back_idle.png"
            hover "gui/gm_load_back_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action Return()

        imagebutton:
            focus_mask True
            idle "gui/gm_load_prev_idle.png"
            hover "gui/gm_load_prev_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("mm_continue_page_8")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_next_idle.png"
            hover "gui/gm_load_next_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("mm_continue_page_10")

screen mm_continue_page_10() tag menu:

    imagemap:
        ground "gui/gm_continue_6_bg.png"
        idle "gui/gm_continue_6_bg.png"
        hover "gui/gm_continue_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileLoad(55):
            use load_save_slot(number=55)
        hotspot (654, 141, 613, 345) clicked FileLoad(56):
            use load_save_slot(number=56)
        hotspot (1288, 141, 613, 345) clicked FileLoad(57):
            use load_save_slot(number=57)
        hotspot (20, 511, 613, 345) clicked FileLoad(58):
            use load_save_slot(number=58)
        hotspot (654, 511, 613, 345) clicked FileLoad(59):
            use load_save_slot(number=59)
        hotspot (1288, 511, 613, 345) clicked FileLoad(60):
            use load_save_slot(number=60)

        imagebutton:
            focus_mask True
            idle "gui/gm_load_back_idle.png"
            hover "gui/gm_load_back_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action Return()

        imagebutton:
            focus_mask True
            idle "gui/gm_load_prev_idle.png"
            hover "gui/gm_load_prev_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("mm_continue_page_9")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_next_idle.png"
            hover "gui/gm_load_next_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("mm_continue_page_11")

screen mm_continue_page_11() tag menu:

    imagemap:
        ground "gui/gm_continue_6_bg.png"
        idle "gui/gm_continue_6_bg.png"
        hover "gui/gm_continue_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileLoad(61):
            use load_save_slot(number=61)
        hotspot (654, 141, 613, 345) clicked FileLoad(62):
            use load_save_slot(number=62)
        hotspot (1288, 141, 613, 345) clicked FileLoad(63):
            use load_save_slot(number=63)
        hotspot (20, 511, 613, 345) clicked FileLoad(64):
            use load_save_slot(number=64)
        hotspot (654, 511, 613, 345) clicked FileLoad(65):
            use load_save_slot(number=65)
        hotspot (1288, 511, 613, 345) clicked FileLoad(66):
            use load_save_slot(number=66)

        imagebutton:
            focus_mask True
            idle "gui/gm_load_back_idle.png"
            hover "gui/gm_load_back_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action Return()

        imagebutton:
            focus_mask True
            idle "gui/gm_load_prev_idle.png"
            hover "gui/gm_load_prev_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("mm_continue_page_10")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_next_idle.png"
            hover "gui/gm_load_next_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("mm_continue_page_12")

screen mm_continue_page_12() tag menu:

    imagemap:
        ground "gui/gm_continue_6_bg.png"
        idle "gui/gm_continue_6_bg.png"
        hover "gui/gm_continue_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileLoad(67):
            use load_save_slot(number=67)
        hotspot (654, 141, 613, 345) clicked FileLoad(68):
            use load_save_slot(number=68)
        hotspot (1288, 141, 613, 345) clicked FileLoad(69):
            use load_save_slot(number=69)
        hotspot (20, 511, 613, 345) clicked FileLoad(70):
            use load_save_slot(number=70)
        hotspot (654, 511, 613, 345) clicked FileLoad(71):
            use load_save_slot(number=71)
        hotspot (1288, 511, 613, 345) clicked FileLoad(72):
            use load_save_slot(number=72)

        imagebutton:
            focus_mask True
            idle "gui/gm_load_back_idle.png"
            hover "gui/gm_load_back_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action Return()

        imagebutton:
            focus_mask True
            idle "gui/gm_load_prev_idle.png"
            hover "gui/gm_load_prev_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("mm_continue_page_11")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_next_idle.png"
            hover "gui/gm_load_next_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("mm_continue_page_13")

screen mm_continue_page_13() tag menu:

    imagemap:
        ground "gui/gm_continue_6_bg.png"
        idle "gui/gm_continue_6_bg.png"
        hover "gui/gm_continue_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileLoad(73):
            use load_save_slot(number=73)
        hotspot (654, 141, 613, 345) clicked FileLoad(74):
            use load_save_slot(number=74)
        hotspot (1288, 141, 613, 345) clicked FileLoad(75):
            use load_save_slot(number=75)
        hotspot (20, 511, 613, 345) clicked FileLoad(76):
            use load_save_slot(number=76)
        hotspot (654, 511, 613, 345) clicked FileLoad(77):
            use load_save_slot(number=77)
        hotspot (1288, 511, 613, 345) clicked FileLoad(78):
            use load_save_slot(number=78)

        imagebutton:
            focus_mask True
            idle "gui/gm_load_back_idle.png"
            hover "gui/gm_load_back_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action Return()

        imagebutton:
            focus_mask True
            idle "gui/gm_load_prev_idle.png"
            hover "gui/gm_load_prev_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("mm_continue_page_12")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_next_idle.png"
            hover "gui/gm_load_next_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("mm_continue_page_14")

screen mm_continue_page_14() tag menu:

    imagemap:
        ground "gui/gm_continue_6_bg.png"
        idle "gui/gm_continue_6_bg.png"
        hover "gui/gm_continue_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileLoad(79):
            use load_save_slot(number=79)
        hotspot (654, 141, 613, 345) clicked FileLoad(80):
            use load_save_slot(number=80)
        hotspot (1288, 141, 613, 345) clicked FileLoad(81):
            use load_save_slot(number=81)
        hotspot (20, 511, 613, 345) clicked FileLoad(82):
            use load_save_slot(number=82)
        hotspot (654, 511, 613, 345) clicked FileLoad(83):
            use load_save_slot(number=83)
        hotspot (1288, 511, 613, 345) clicked FileLoad(84):
            use load_save_slot(number=84)

        imagebutton:
            focus_mask True
            idle "gui/gm_load_back_idle.png"
            hover "gui/gm_load_back_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action Return()

        imagebutton:
            focus_mask True
            idle "gui/gm_load_prev_idle.png"
            hover "gui/gm_load_prev_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("mm_continue_page_13")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_next_idle.png"
            hover "gui/gm_load_next_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("mm_continue_page_15")

screen mm_continue_page_15() tag menu:

    imagemap:
        ground "gui/gm_continue_6_bg.png"
        idle "gui/gm_continue_6_bg.png"
        hover "gui/gm_continue_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileLoad(85):
            use load_save_slot(number=85)
        hotspot (654, 141, 613, 345) clicked FileLoad(86):
            use load_save_slot(number=86)
        hotspot (1288, 141, 613, 345) clicked FileLoad(87):
            use load_save_slot(number=87)
        hotspot (20, 511, 613, 345) clicked FileLoad(88):
            use load_save_slot(number=88)
        hotspot (654, 511, 613, 345) clicked FileLoad(89):
            use load_save_slot(number=89)
        hotspot (1288, 511, 613, 345) clicked FileLoad(90):
            use load_save_slot(number=90)

        imagebutton:
            focus_mask True
            idle "gui/gm_load_back_idle.png"
            hover "gui/gm_load_back_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action Return()

        imagebutton:
            focus_mask True
            idle "gui/gm_load_prev_idle.png"
            hover "gui/gm_load_prev_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("mm_continue_page_14")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_next_idle.png"
            hover "gui/gm_load_next_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("mm_continue_page_16")

screen mm_continue_page_16() tag menu:

    imagemap:
        ground "gui/gm_continue_6_bg.png"
        idle "gui/gm_continue_6_bg.png"
        hover "gui/gm_continue_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileLoad(91):
            use load_save_slot(number=91)
        hotspot (654, 141, 613, 345) clicked FileLoad(92):
            use load_save_slot(number=92)
        hotspot (1288, 141, 613, 345) clicked FileLoad(93):
            use load_save_slot(number=93)
        hotspot (20, 511, 613, 345) clicked FileLoad(94):
            use load_save_slot(number=94)
        hotspot (654, 511, 613, 345) clicked FileLoad(95):
            use load_save_slot(number=95)
        hotspot (1288, 511, 613, 345) clicked FileLoad(96):
            use load_save_slot(number=96)

        imagebutton:
            focus_mask True
            idle "gui/gm_load_back_idle.png"
            hover "gui/gm_load_back_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action Return()

        imagebutton:
            focus_mask True
            idle "gui/gm_load_prev_idle.png"
            hover "gui/gm_load_prev_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("mm_continue_page_15")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_next_idle.png"
            hover "gui/gm_load_next_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("mm_continue_page_17")

screen mm_continue_page_17() tag menu:

    imagemap:
        ground "gui/gm_continue_6_bg.png"
        idle "gui/gm_continue_6_bg.png"
        hover "gui/gm_continue_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileLoad(97):
            use load_save_slot(number=97)
        hotspot (654, 141, 613, 345) clicked FileLoad(98):
            use load_save_slot(number=98)
        hotspot (1288, 141, 613, 345) clicked FileLoad(99):
            use load_save_slot(number=99)
        hotspot (20, 511, 613, 345) clicked FileLoad(100):
            use load_save_slot(number=100)
        hotspot (654, 511, 613, 345) clicked FileLoad(101):
            use load_save_slot(number=101)
        hotspot (1288, 511, 613, 345) clicked FileLoad(102):
            use load_save_slot(number=102)

        imagebutton:
            focus_mask True
            idle "gui/gm_load_back_idle.png"
            hover "gui/gm_load_back_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action Return()

        imagebutton:
            focus_mask True
            idle "gui/gm_load_prev_idle.png"
            hover "gui/gm_load_prev_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("mm_continue_page_16")

################################################# ESCAPE MENU ################################################
screen navigation() tag menu:
    #window:
    #    style "gm_root"
    add "gui/gm_esc_bg.png"

    imagebutton:
        focus_mask True
        idle "gui/gm_esc_mm_idle.png"
        hover "gui/gm_esc_mm_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action MainMenu(confirm=True)#("warning")

    imagebutton:
        focus_mask True
        idle "gui/gm_esc_save_idle.png"
        hover "gui/gm_esc_save_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("save")

    imagebutton:
        focus_mask True
        idle "gui/gm_esc_load_idle.png"
        hover "gui/gm_esc_load_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("load")

    imagebutton:
        focus_mask True
        idle "gui/gm_esc_set_idle.png"
        hover "gui/gm_esc_set_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("quick_preferences")

    imagebutton:
        focus_mask True
        idle "gui/gm_esc_back_idle.png"
        hover "gui/gm_esc_back_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action Return()

    imagebutton:
        focus_mask True
        idle "gui/gm_esc_x_idle.png"
        hover "gui/gm_esc_x_hover.png"
        #activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_exit.mp3"
        action Quit(confirm=True)

    key "K_ESCAPE" action Return() # Esc does the same

################################################# SAVING/LOADING SYSTEM ##################################################
screen file_picker():
    frame:
        style "file_picker_frame"

        has vbox

        # The buttons at the top allow the user to pick a
        # page of files.
        hbox:
            style_group "file_picker_nav"

            textbutton _("Previous"):
                action FilePagePrevious()

            textbutton _("Auto"):
                action FilePage("auto")

            textbutton _("Quick"):
                action FilePage("quick")

            for i in range(1, 9):
                textbutton str(i):
                    action FilePage(i)

            textbutton _("Next"):
                action FilePageNext()

        $ columns = 3
        $ rows = 2

        # Display a grid of file slots.
        grid columns rows:
            transpose True
            xfill True
            style_group "file_picker"

            # Display ten file slots, numbered 1 - 10.
            for i in range(1, columns * rows + 1):

                # Each file slot is a button.
                button:
                    action FileAction(i)
                    xfill True

                    has hbox

                    # Add the screenshot.
                    add FileScreenshot(i)

                    $ file_name = FileSlotName(i, columns * rows)
                    $ file_time = FileTime(i, empty=_("Empty Slot."))
                    $ save_name = FileSaveName(i)

                    text "[file_name]. [file_time!t]\n[save_name!t]"

                    key "save_delete" action FileDelete(i)

init -2:
    style file_picker_frame is menu_frame
    style file_picker_nav_button is small_button
    style file_picker_nav_button_text is small_button_text
    style file_picker_button is large_button
    style file_picker_text is large_button_text

################################################# SETTINGS #############################################
screen preferences() tag menu:
    add "gui/gm_set_mm_bg.png"

    imagebutton:
        focus_mask True
        idle "gui/gm_set_back_idle.png"
        hover "gui/gm_set_back_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action Return()

    if _preferences.fullscreen == True:
        imagebutton:
            focus_mask True
            idle "gui/gm_set_fscreen_active.png"
            hover "gui/gm_set_fscreen_active.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action NullAction()
    else:
        imagebutton:
            focus_mask True
            idle "gui/gm_set_fscreen_idle.png"
            hover "gui/gm_set_fscreen_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action Preference("display", "fullscreen")

    if _preferences.fullscreen == True:
        imagebutton:
            focus_mask True
            idle "gui/gm_set_windowed_idle.png"
            hover "gui/gm_set_windowed_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action Preference("display", "window")
    else:
        imagebutton:
            focus_mask True
            idle "gui/gm_set_windowed_active.png"
            hover "gui/gm_set_windowed_active.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action NullAction()

    bar value Preference("music volume") at Position (xpos= 765, ypos = 300, xmaximum = 590, ymaximum = 30)
    bar value Preference("sound volume") at Position (xpos= 690, ypos = 430, xmaximum = 590, ymaximum = 30)

    if _preferences.fullscreen == True:
        add "gui/gm_set_fscreen_active.png"
    else:
        add "gui/gm_set_windowed_active.png"

################################################# ESC SETTINGS #####################################################
screen quick_preferences() tag menu:
    add "gui/gm_set_bg.png"

    imagebutton:
        focus_mask True
        idle "gui/gm_set_back_idle.png"
        hover "gui/gm_set_back_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("navigation")

    if _preferences.fullscreen == True:
        imagebutton:
            focus_mask True
            idle "gui/gm_set_fscreen_active.png"
            hover "gui/gm_set_fscreen_active.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action NullAction()
    else:
        imagebutton:
            focus_mask True
            idle "gui/gm_set_fscreen_idle.png"
            hover "gui/gm_set_fscreen_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action Preference("display", "fullscreen")

    if _preferences.fullscreen == True:
        imagebutton:
            focus_mask True
            idle "gui/gm_set_windowed_idle.png"
            hover "gui/gm_set_windowed_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action Preference("display", "window")
    else:
        imagebutton:
            focus_mask True
            idle "gui/gm_set_windowed_active.png"
            hover "gui/gm_set_windowed_active.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action NullAction()

    bar value Preference("music volume") at Position (xpos= 765, ypos = 300, xmaximum = 590, ymaximum = 30)
    bar value Preference("sound volume") at Position (xpos= 690, ypos = 430, xmaximum = 590, ymaximum = 30)

    if _preferences.fullscreen == True:
        add "gui/gm_set_fscreen_active.png"
    else:
        add "gui/gm_set_windowed_active.png"

#################################################  EXTRAS  WARNIN  ######################################################
screen extras_warning() tag menu:
    #window:
    #    style "gm_root"
    add "gui/extras_bg.jpg"
    add "gui/extras_warning_bg.png"

    imagebutton:
        focus_mask True
        idle "gui/extras_warning_no_idle.png"
        hover "gui/extras_warning_no_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action Return()

    imagebutton:
        focus_mask True
        idle "gui/extras_warning_yes_idle.png"
        hover "gui/extras_warning_yes_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("extras")

#################################################  EXTRAS  ######################################################
screen extras() tag menu:
    #window:
    #    style "gm_root"
    add "gui/extras_bg.jpg"

    imagebutton:
        focus_mask True
        idle "gui/extras_back_idle.png"
        hover "gui/extras_back_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action Return()

    imagebutton:
        focus_mask True
        idle "gui/extras_walkthrough_idle.png"
        hover "gui/extras_walkthrough_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("walkthrough")

#################################################  WALKTHROUGH  ######################################################
screen walkthrough() tag menu:
    #window:
    #    style "gm_root"
    add "gui/walkthrough_bg.jpg"

    imagebutton:
        focus_mask True
        idle "gui/walkthrough_back_idle.png"
        hover "gui/walkthrough_back_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("extras")

    imagebutton:
        if walkthrough_c1_active == False:
            focus_mask True
            idle "gui/walkthrough_c1_idle.png"
            hover "gui/walkthrough_c1_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action SetVariable("walkthrough_c1_active", True), SetVariable("walkthrough_c2_active", False), SetVariable("walkthrough_c3_active", False), SetVariable("walkthrough_c4_active", False), SetVariable("walkthrough_c5_active", False), SetVariable("walkthrough_c6_active", False),

        if walkthrough_c1_active == True:
            focus_mask True
            idle "gui/walkthrough_c1.png"
            hover "gui/walkthrough_c1.png"
            action NullAction()

    imagebutton:
        if walkthrough_c2_active == False:
            focus_mask True
            idle "gui/walkthrough_c2_idle.png"
            hover "gui/walkthrough_c2_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action SetVariable("walkthrough_c1_active", False), SetVariable("walkthrough_c2_active", True), SetVariable("walkthrough_c3_active", False), SetVariable("walkthrough_c4_active", False), SetVariable("walkthrough_c5_active", False), SetVariable("walkthrough_c6_active", False),

        if walkthrough_c2_active == True:
            focus_mask True
            idle "gui/walkthrough_c2.png"
            hover "gui/walkthrough_c2.png"
            action NullAction()

    imagebutton:
        if walkthrough_c3_active == False:
            focus_mask True
            idle "gui/walkthrough_c3_idle.png"
            hover "gui/walkthrough_c3_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action SetVariable("walkthrough_c1_active", False), SetVariable("walkthrough_c2_active", False), SetVariable("walkthrough_c3_active", True), SetVariable("walkthrough_c4_active", False), SetVariable("walkthrough_c5_active", False), SetVariable("walkthrough_c6_active", False),

        if walkthrough_c3_active == True:
            focus_mask True
            idle "gui/walkthrough_c3.png"
            hover "gui/walkthrough_c3.png"
            action NullAction()

    imagebutton:
        if walkthrough_c4_active == False:
            focus_mask True
            idle "gui/walkthrough_c4_idle.png"
            hover "gui/walkthrough_c4_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action SetVariable("walkthrough_c1_active", False), SetVariable("walkthrough_c2_active", False), SetVariable("walkthrough_c3_active", False), SetVariable("walkthrough_c4_active", True), SetVariable("walkthrough_c5_active", False), SetVariable("walkthrough_c6_active", False),

        if walkthrough_c4_active == True:
            focus_mask True
            idle "gui/walkthrough_c4.png"
            hover "gui/walkthrough_c4.png"
            action NullAction()

    imagebutton:
        if walkthrough_c5_active == False:
            focus_mask True
            idle "gui/walkthrough_c5_idle.png"
            hover "gui/walkthrough_c5_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action SetVariable("walkthrough_c1_active", False), SetVariable("walkthrough_c2_active", False), SetVariable("walkthrough_c3_active", False), SetVariable("walkthrough_c4_active", False), SetVariable("walkthrough_c5_active", True), SetVariable("walkthrough_c6_active", False),

        if walkthrough_c5_active == True:
            focus_mask True
            idle "gui/walkthrough_c5.png"
            hover "gui/walkthrough_c5.png"
            action NullAction()

    imagebutton:
        if walkthrough_c6_active == False:
            focus_mask True
            idle "gui/walkthrough_c6_idle.png"
            hover "gui/walkthrough_c6_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action SetVariable("walkthrough_c1_active", False), SetVariable("walkthrough_c2_active", False), SetVariable("walkthrough_c3_active", False), SetVariable("walkthrough_c4_active", False), SetVariable("walkthrough_c5_active", False), SetVariable("walkthrough_c6_active", True),

        if walkthrough_c6_active == True:
            focus_mask True
            idle "gui/walkthrough_c6.png"
            hover "gui/walkthrough_c6.png"
            action NullAction()

################################################# SAVE/LOAD ###################################################
screen save() tag menu:     #### "tag" ensures that any other menu screen is replaced.
    imagemap:
        ground "gui/gm_save_6_bg.png"
        idle "gui/gm_save_6_bg.png"
        hover "gui/gm_save_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileSave(1):
            use load_save_slot(number=1)
        hotspot (654, 141, 613, 345) clicked FileSave(2):
            use load_save_slot(number=2)
        hotspot (1288, 141, 613, 345) clicked FileSave(3):
            use load_save_slot(number=3)
        hotspot (20, 511, 613, 345) clicked FileSave(4):
            use load_save_slot(number=4)
        hotspot (654, 511, 613, 345) clicked FileSave(5):
            use load_save_slot(number=5)
        hotspot (1288, 511, 613, 345) clicked FileSave(6):
            use load_save_slot(number=6)

    imagebutton:
        focus_mask True
        idle "gui/gm_save_back_idle.png"
        hover "gui/gm_save_back_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("navigation")

    imagebutton:
        focus_mask True
        idle "gui/gm_save_next_idle.png"
        hover "gui/gm_save_next_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("save_page_2")

screen save_page_2() tag menu:     #### "tag" ensures that any other menu screen is replaced.
    imagemap:
        ground "gui/gm_save_6_bg.png"
        idle "gui/gm_save_6_bg.png"
        hover "gui/gm_save_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileSave(7):
            use load_save_slot(number=7)
        hotspot (654, 141, 613, 345) clicked FileSave(8):
            use load_save_slot(number=8)
        hotspot (1288, 141, 613, 345) clicked FileSave(9):
            use load_save_slot(number=9)
        hotspot (20, 511, 613, 345) clicked FileSave(10):
            use load_save_slot(number=10)
        hotspot (654, 511, 613, 345) clicked FileSave(11):
            use load_save_slot(number=11)
        hotspot (1288, 511, 613, 345) clicked FileSave(12):
            use load_save_slot(number=12)

    imagebutton:
        focus_mask True
        idle "gui/gm_save_back_idle.png"
        hover "gui/gm_save_back_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("navigation")

    imagebutton:
        focus_mask True
        idle "gui/gm_save_prev_idle.png"
        hover "gui/gm_save_prev_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("save")

    imagebutton:
        focus_mask True
        idle "gui/gm_save_next_idle.png"
        hover "gui/gm_save_next_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("save_page_3")

screen save_page_3() tag menu:     #### "tag" ensures that any other menu screen is replaced.
    imagemap:
        ground "gui/gm_save_6_bg.png"
        idle "gui/gm_save_6_bg.png"
        hover "gui/gm_save_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileSave(13):
            use load_save_slot(number=13)
        hotspot (654, 141, 613, 345) clicked FileSave(14):
            use load_save_slot(number=14)
        hotspot (1288, 141, 613, 345) clicked FileSave(15):
            use load_save_slot(number=15)
        hotspot (20, 511, 613, 345) clicked FileSave(16):
            use load_save_slot(number=16)
        hotspot (654, 511, 613, 345) clicked FileSave(17):
            use load_save_slot(number=17)
        hotspot (1288, 511, 613, 345) clicked FileSave(18):
            use load_save_slot(number=18)

    imagebutton:
        focus_mask True
        idle "gui/gm_save_back_idle.png"
        hover "gui/gm_save_back_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("navigation")

    imagebutton:
        focus_mask True
        idle "gui/gm_save_prev_idle.png"
        hover "gui/gm_save_prev_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("save_page_2")

    imagebutton:
        focus_mask True
        idle "gui/gm_save_next_idle.png"
        hover "gui/gm_save_next_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("save_page_4")

screen save_page_4() tag menu:     #### "tag" ensures that any other menu screen is replaced.
    imagemap:
        ground "gui/gm_save_6_bg.png"
        idle "gui/gm_save_6_bg.png"
        hover "gui/gm_save_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileSave(19):
            use load_save_slot(number=19)
        hotspot (654, 141, 613, 345) clicked FileSave(20):
            use load_save_slot(number=20)
        hotspot (1288, 141, 613, 345) clicked FileSave(21):
            use load_save_slot(number=21)
        hotspot (20, 511, 613, 345) clicked FileSave(22):
            use load_save_slot(number=22)
        hotspot (654, 511, 613, 345) clicked FileSave(23):
            use load_save_slot(number=23)
        hotspot (1288, 511, 613, 345) clicked FileSave(24):
            use load_save_slot(number=24)

    imagebutton:
        focus_mask True
        idle "gui/gm_save_back_idle.png"
        hover "gui/gm_save_back_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("navigation")

    imagebutton:
        focus_mask True
        idle "gui/gm_save_prev_idle.png"
        hover "gui/gm_save_prev_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("save_page_3")

    imagebutton:
        focus_mask True
        idle "gui/gm_save_next_idle.png"
        hover "gui/gm_save_next_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("save_page_5")

screen save_page_5() tag menu:     #### "tag" ensures that any other menu screen is replaced.
    imagemap:
        ground "gui/gm_save_6_bg.png"
        idle "gui/gm_save_6_bg.png"
        hover "gui/gm_save_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileSave(25):
            use load_save_slot(number=25)
        hotspot (654, 141, 613, 345) clicked FileSave(26):
            use load_save_slot(number=26)
        hotspot (1288, 141, 613, 345) clicked FileSave(27):
            use load_save_slot(number=27)
        hotspot (20, 511, 613, 345) clicked FileSave(28):
            use load_save_slot(number=28)
        hotspot (654, 511, 613, 345) clicked FileSave(29):
            use load_save_slot(number=29)
        hotspot (1288, 511, 613, 345) clicked FileSave(30):
            use load_save_slot(number=30)

    imagebutton:
        focus_mask True
        idle "gui/gm_save_back_idle.png"
        hover "gui/gm_save_back_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("navigation")

    imagebutton:
        focus_mask True
        idle "gui/gm_save_prev_idle.png"
        hover "gui/gm_save_prev_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("save_page_4")

    imagebutton:
        focus_mask True
        idle "gui/gm_save_next_idle.png"
        hover "gui/gm_save_next_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("save_page_6")

screen save_page_6() tag menu:     #### "tag" ensures that any other menu screen is replaced.
    imagemap:
        ground "gui/gm_save_6_bg.png"
        idle "gui/gm_save_6_bg.png"
        hover "gui/gm_save_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileSave(31):
            use load_save_slot(number=31)
        hotspot (654, 141, 613, 345) clicked FileSave(32):
            use load_save_slot(number=32)
        hotspot (1288, 141, 613, 345) clicked FileSave(33):
            use load_save_slot(number=33)
        hotspot (20, 511, 613, 345) clicked FileSave(34):
            use load_save_slot(number=34)
        hotspot (654, 511, 613, 345) clicked FileSave(35):
            use load_save_slot(number=35)
        hotspot (1288, 511, 613, 345) clicked FileSave(36):
            use load_save_slot(number=36)

    imagebutton:
        focus_mask True
        idle "gui/gm_save_back_idle.png"
        hover "gui/gm_save_back_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("navigation")

    imagebutton:
        focus_mask True
        idle "gui/gm_save_prev_idle.png"
        hover "gui/gm_save_prev_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("save_page_5")

    imagebutton:
        focus_mask True
        idle "gui/gm_save_next_idle.png"
        hover "gui/gm_save_next_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("save_page_7")

screen save_page_7() tag menu:     #### "tag" ensures that any other menu screen is replaced.
    imagemap:
        ground "gui/gm_save_6_bg.png"
        idle "gui/gm_save_6_bg.png"
        hover "gui/gm_save_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileSave(37):
            use load_save_slot(number=37)
        hotspot (654, 141, 613, 345) clicked FileSave(38):
            use load_save_slot(number=38)
        hotspot (1288, 141, 613, 345) clicked FileSave(39):
            use load_save_slot(number=39)
        hotspot (20, 511, 613, 345) clicked FileSave(40):
            use load_save_slot(number=40)
        hotspot (654, 511, 613, 345) clicked FileSave(41):
            use load_save_slot(number=41)
        hotspot (1288, 511, 613, 345) clicked FileSave(42):
            use load_save_slot(number=42)

    imagebutton:
        focus_mask True
        idle "gui/gm_save_back_idle.png"
        hover "gui/gm_save_back_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("navigation")

    imagebutton:
        focus_mask True
        idle "gui/gm_save_prev_idle.png"
        hover "gui/gm_save_prev_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("save_page_6")

    imagebutton:
        focus_mask True
        idle "gui/gm_save_next_idle.png"
        hover "gui/gm_save_next_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("save_page_8")

screen save_page_8() tag menu:     #### "tag" ensures that any other menu screen is replaced.
    imagemap:
        ground "gui/gm_save_6_bg.png"
        idle "gui/gm_save_6_bg.png"
        hover "gui/gm_save_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileSave(43):
            use load_save_slot(number=43)
        hotspot (654, 141, 613, 345) clicked FileSave(44):
            use load_save_slot(number=44)
        hotspot (1288, 141, 613, 345) clicked FileSave(45):
            use load_save_slot(number=45)
        hotspot (20, 511, 613, 345) clicked FileSave(46):
            use load_save_slot(number=46)
        hotspot (654, 511, 613, 345) clicked FileSave(47):
            use load_save_slot(number=47)
        hotspot (1288, 511, 613, 345) clicked FileSave(48):
            use load_save_slot(number=48)

    imagebutton:
        focus_mask True
        idle "gui/gm_save_back_idle.png"
        hover "gui/gm_save_back_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("navigation")

    imagebutton:
        focus_mask True
        idle "gui/gm_save_prev_idle.png"
        hover "gui/gm_save_prev_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("save_page_7")

    imagebutton:
        focus_mask True
        idle "gui/gm_save_next_idle.png"
        hover "gui/gm_save_next_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("save_page_9")

screen save_page_9() tag menu:     #### "tag" ensures that any other menu screen is replaced.
    imagemap:
        ground "gui/gm_save_6_bg.png"
        idle "gui/gm_save_6_bg.png"
        hover "gui/gm_save_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileSave(49):
            use load_save_slot(number=49)
        hotspot (654, 141, 613, 345) clicked FileSave(50):
            use load_save_slot(number=50)
        hotspot (1288, 141, 613, 345) clicked FileSave(51):
            use load_save_slot(number=51)
        hotspot (20, 511, 613, 345) clicked FileSave(52):
            use load_save_slot(number=52)
        hotspot (654, 511, 613, 345) clicked FileSave(53):
            use load_save_slot(number=53)
        hotspot (1288, 511, 613, 345) clicked FileSave(54):
            use load_save_slot(number=54)

    imagebutton:
        focus_mask True
        idle "gui/gm_save_back_idle.png"
        hover "gui/gm_save_back_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("navigation")

    imagebutton:
        focus_mask True
        idle "gui/gm_save_prev_idle.png"
        hover "gui/gm_save_prev_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("save_page_8")

    imagebutton:
        focus_mask True
        idle "gui/gm_save_next_idle.png"
        hover "gui/gm_save_next_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("save_page_10")

screen save_page_10() tag menu:     #### "tag" ensures that any other menu screen is replaced.
    imagemap:
        ground "gui/gm_save_6_bg.png"
        idle "gui/gm_save_6_bg.png"
        hover "gui/gm_save_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileSave(55):
            use load_save_slot(number=55)
        hotspot (654, 141, 613, 345) clicked FileSave(56):
            use load_save_slot(number=56)
        hotspot (1288, 141, 613, 345) clicked FileSave(57):
            use load_save_slot(number=57)
        hotspot (20, 511, 613, 345) clicked FileSave(58):
            use load_save_slot(number=58)
        hotspot (654, 511, 613, 345) clicked FileSave(59):
            use load_save_slot(number=59)
        hotspot (1288, 511, 613, 345) clicked FileSave(60):
            use load_save_slot(number=60)

    imagebutton:
        focus_mask True
        idle "gui/gm_save_back_idle.png"
        hover "gui/gm_save_back_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("navigation")

    imagebutton:
        focus_mask True
        idle "gui/gm_save_prev_idle.png"
        hover "gui/gm_save_prev_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("save_page_9")

    imagebutton:
        focus_mask True
        idle "gui/gm_save_next_idle.png"
        hover "gui/gm_save_next_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("save_page_11")

screen save_page_11() tag menu:     #### "tag" ensures that any other menu screen is replaced.
    imagemap:
        ground "gui/gm_save_6_bg.png"
        idle "gui/gm_save_6_bg.png"
        hover "gui/gm_save_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileSave(61):
            use load_save_slot(number=61)
        hotspot (654, 141, 613, 345) clicked FileSave(62):
            use load_save_slot(number=62)
        hotspot (1288, 141, 613, 345) clicked FileSave(63):
            use load_save_slot(number=63)
        hotspot (20, 511, 613, 345) clicked FileSave(64):
            use load_save_slot(number=64)
        hotspot (654, 511, 613, 345) clicked FileSave(65):
            use load_save_slot(number=65)
        hotspot (1288, 511, 613, 345) clicked FileSave(66):
            use load_save_slot(number=66)

    imagebutton:
        focus_mask True
        idle "gui/gm_save_back_idle.png"
        hover "gui/gm_save_back_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("navigation")

    imagebutton:
        focus_mask True
        idle "gui/gm_save_prev_idle.png"
        hover "gui/gm_save_prev_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("save_page_10")

    imagebutton:
        focus_mask True
        idle "gui/gm_save_next_idle.png"
        hover "gui/gm_save_next_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("save_page_12")

screen save_page_12() tag menu:     #### "tag" ensures that any other menu screen is replaced.
    imagemap:
        ground "gui/gm_save_6_bg.png"
        idle "gui/gm_save_6_bg.png"
        hover "gui/gm_save_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileSave(67):
            use load_save_slot(number=67)
        hotspot (654, 141, 613, 345) clicked FileSave(68):
            use load_save_slot(number=68)
        hotspot (1288, 141, 613, 345) clicked FileSave(69):
            use load_save_slot(number=69)
        hotspot (20, 511, 613, 345) clicked FileSave(70):
            use load_save_slot(number=70)
        hotspot (654, 511, 613, 345) clicked FileSave(71):
            use load_save_slot(number=71)
        hotspot (1288, 511, 613, 345) clicked FileSave(72):
            use load_save_slot(number=72)

    imagebutton:
        focus_mask True
        idle "gui/gm_save_back_idle.png"
        hover "gui/gm_save_back_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("navigation")

    imagebutton:
        focus_mask True
        idle "gui/gm_save_prev_idle.png"
        hover "gui/gm_save_prev_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("save_page_11")

    imagebutton:
        focus_mask True
        idle "gui/gm_save_next_idle.png"
        hover "gui/gm_save_next_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("save_page_13")

screen save_page_13() tag menu:     #### "tag" ensures that any other menu screen is replaced.
    imagemap:
        ground "gui/gm_save_6_bg.png"
        idle "gui/gm_save_6_bg.png"
        hover "gui/gm_save_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileSave(73):
            use load_save_slot(number=73)
        hotspot (654, 141, 613, 345) clicked FileSave(74):
            use load_save_slot(number=74)
        hotspot (1288, 141, 613, 345) clicked FileSave(75):
            use load_save_slot(number=75)
        hotspot (20, 511, 613, 345) clicked FileSave(76):
            use load_save_slot(number=76)
        hotspot (654, 511, 613, 345) clicked FileSave(77):
            use load_save_slot(number=77)
        hotspot (1288, 511, 613, 345) clicked FileSave(78):
            use load_save_slot(number=78)

    imagebutton:
        focus_mask True
        idle "gui/gm_save_back_idle.png"
        hover "gui/gm_save_back_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("navigation")

    imagebutton:
        focus_mask True
        idle "gui/gm_save_prev_idle.png"
        hover "gui/gm_save_prev_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("save_page_12")

    imagebutton:
        focus_mask True
        idle "gui/gm_save_next_idle.png"
        hover "gui/gm_save_next_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("save_page_14")

screen save_page_14() tag menu:     #### "tag" ensures that any other menu screen is replaced.
    imagemap:
        ground "gui/gm_save_6_bg.png"
        idle "gui/gm_save_6_bg.png"
        hover "gui/gm_save_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileSave(79):
            use load_save_slot(number=79)
        hotspot (654, 141, 613, 345) clicked FileSave(80):
            use load_save_slot(number=80)
        hotspot (1288, 141, 613, 345) clicked FileSave(81):
            use load_save_slot(number=81)
        hotspot (20, 511, 613, 345) clicked FileSave(82):
            use load_save_slot(number=82)
        hotspot (654, 511, 613, 345) clicked FileSave(83):
            use load_save_slot(number=83)
        hotspot (1288, 511, 613, 345) clicked FileSave(84):
            use load_save_slot(number=84)

    imagebutton:
        focus_mask True
        idle "gui/gm_save_back_idle.png"
        hover "gui/gm_save_back_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("navigation")

    imagebutton:
        focus_mask True
        idle "gui/gm_save_prev_idle.png"
        hover "gui/gm_save_prev_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("save_page_13")

    imagebutton:
        focus_mask True
        idle "gui/gm_save_next_idle.png"
        hover "gui/gm_save_next_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("save_page_15")

screen save_page_15() tag menu:     #### "tag" ensures that any other menu screen is replaced.
    imagemap:
        ground "gui/gm_save_6_bg.png"
        idle "gui/gm_save_6_bg.png"
        hover "gui/gm_save_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileSave(85):
            use load_save_slot(number=85)
        hotspot (654, 141, 613, 345) clicked FileSave(86):
            use load_save_slot(number=86)
        hotspot (1288, 141, 613, 345) clicked FileSave(87):
            use load_save_slot(number=87)
        hotspot (20, 511, 613, 345) clicked FileSave(88):
            use load_save_slot(number=88)
        hotspot (654, 511, 613, 345) clicked FileSave(89):
            use load_save_slot(number=89)
        hotspot (1288, 511, 613, 345) clicked FileSave(90):
            use load_save_slot(number=90)

    imagebutton:
        focus_mask True
        idle "gui/gm_save_back_idle.png"
        hover "gui/gm_save_back_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("navigation")

    imagebutton:
        focus_mask True
        idle "gui/gm_save_prev_idle.png"
        hover "gui/gm_save_prev_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("save_page_14")

    imagebutton:
        focus_mask True
        idle "gui/gm_save_next_idle.png"
        hover "gui/gm_save_next_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("save_page_16")

screen save_page_16() tag menu:     #### "tag" ensures that any other menu screen is replaced.
    imagemap:
        ground "gui/gm_save_6_bg.png"
        idle "gui/gm_save_6_bg.png"
        hover "gui/gm_save_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileSave(91):
            use load_save_slot(number=91)
        hotspot (654, 141, 613, 345) clicked FileSave(92):
            use load_save_slot(number=92)
        hotspot (1288, 141, 613, 345) clicked FileSave(93):
            use load_save_slot(number=93)
        hotspot (20, 511, 613, 345) clicked FileSave(94):
            use load_save_slot(number=94)
        hotspot (654, 511, 613, 345) clicked FileSave(95):
            use load_save_slot(number=95)
        hotspot (1288, 511, 613, 345) clicked FileSave(96):
            use load_save_slot(number=96)

    imagebutton:
        focus_mask True
        idle "gui/gm_save_back_idle.png"
        hover "gui/gm_save_back_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("navigation")

    imagebutton:
        focus_mask True
        idle "gui/gm_save_prev_idle.png"
        hover "gui/gm_save_prev_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("save_page_15")

    imagebutton:
        focus_mask True
        idle "gui/gm_save_next_idle.png"
        hover "gui/gm_save_next_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("save_page_17")

screen save_page_17() tag menu:     #### "tag" ensures that any other menu screen is replaced.
    imagemap:
        ground "gui/gm_save_6_bg.png"
        idle "gui/gm_save_6_bg.png"
        hover "gui/gm_save_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileSave(97):
            use load_save_slot(number=97)
        hotspot (654, 141, 613, 345) clicked FileSave(98):
            use load_save_slot(number=98)
        hotspot (1288, 141, 613, 345) clicked FileSave(99):
            use load_save_slot(number=99)
        hotspot (20, 511, 613, 345) clicked FileSave(100):
            use load_save_slot(number=100)
        hotspot (654, 511, 613, 345) clicked FileSave(101):
            use load_save_slot(number=101)
        hotspot (1288, 511, 613, 345) clicked FileSave(102):
            use load_save_slot(number=102)

    imagebutton:
        focus_mask True
        idle "gui/gm_save_back_idle.png"
        hover "gui/gm_save_back_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("navigation")

    imagebutton:
        focus_mask True
        idle "gui/gm_save_prev_idle.png"
        hover "gui/gm_save_prev_hover.png"
        activate_sound "audio/gui_button_click.mp3"
        hover_sound "audio/gui_button_hover.mp3"
        action ShowMenu("save_page_16")

screen load() tag menu:
    imagemap:
        ground "gui/gm_load_6_bg.png"
        idle "gui/gm_load_6_bg.png"
        hover "gui/gm_load_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileLoad(1):
            use load_save_slot(number=1)
        hotspot (654, 141, 613, 345) clicked FileLoad(2):
            use load_save_slot(number=2)
        hotspot (1288, 141, 613, 345) clicked FileLoad(3):
            use load_save_slot(number=3)
        hotspot (20, 511, 613, 345) clicked FileLoad(4):
            use load_save_slot(number=4)
        hotspot (654, 511, 613, 345) clicked FileLoad(5):
            use load_save_slot(number=5)
        hotspot (1288, 511, 613, 345) clicked FileLoad(6):
            use load_save_slot(number=6)

        imagebutton:
            focus_mask True
            idle "gui/gm_load_back_idle.png"
            hover "gui/gm_load_back_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("navigation")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_next_idle.png"
            hover "gui/gm_load_next_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("load_page_2")

screen load_page_2() tag menu:
    imagemap:
        ground "gui/gm_load_6_bg.png"
        idle "gui/gm_load_6_bg.png"
        hover "gui/gm_load_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileLoad(7):
            use load_save_slot(number=7)
        hotspot (654, 141, 613, 345) clicked FileLoad(8):
            use load_save_slot(number=8)
        hotspot (1288, 141, 613, 345) clicked FileLoad(9):
            use load_save_slot(number=9)
        hotspot (20, 511, 613, 345) clicked FileLoad(10):
            use load_save_slot(number=10)
        hotspot (654, 511, 613, 345) clicked FileLoad(11):
            use load_save_slot(number=11)
        hotspot (1288, 511, 613, 345) clicked FileLoad(12):
            use load_save_slot(number=12)

        imagebutton:
            focus_mask True
            idle "gui/gm_load_back_idle.png"
            hover "gui/gm_load_back_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("navigation")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_prev_idle.png"
            hover "gui/gm_load_prev_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("load")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_next_idle.png"
            hover "gui/gm_load_next_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("load_page_3")

screen load_page_3() tag menu:
    imagemap:
        ground "gui/gm_load_6_bg.png"
        idle "gui/gm_load_6_bg.png"
        hover "gui/gm_load_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileLoad(13):
            use load_save_slot(number=13)
        hotspot (654, 141, 613, 345) clicked FileLoad(14):
            use load_save_slot(number=14)
        hotspot (1288, 141, 613, 345) clicked FileLoad(15):
            use load_save_slot(number=15)
        hotspot (20, 511, 613, 345) clicked FileLoad(16):
            use load_save_slot(number=16)
        hotspot (654, 511, 613, 345) clicked FileLoad(17):
            use load_save_slot(number=17)
        hotspot (1288, 511, 613, 345) clicked FileLoad(18):
            use load_save_slot(number=18)

        imagebutton:
            focus_mask True
            idle "gui/gm_load_back_idle.png"
            hover "gui/gm_load_back_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("navigation")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_prev_idle.png"
            hover "gui/gm_load_prev_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("load_page_2")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_next_idle.png"
            hover "gui/gm_load_next_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("load_page_4")

screen load_page_4() tag menu:
    imagemap:
        ground "gui/gm_load_6_bg.png"
        idle "gui/gm_load_6_bg.png"
        hover "gui/gm_load_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileLoad(19):
            use load_save_slot(number=19)
        hotspot (654, 141, 613, 345) clicked FileLoad(20):
            use load_save_slot(number=20)
        hotspot (1288, 141, 613, 345) clicked FileLoad(21):
            use load_save_slot(number=21)
        hotspot (20, 511, 613, 345) clicked FileLoad(22):
            use load_save_slot(number=22)
        hotspot (654, 511, 613, 345) clicked FileLoad(23):
            use load_save_slot(number=23)
        hotspot (1288, 511, 613, 345) clicked FileLoad(24):
            use load_save_slot(number=24)

        imagebutton:
            focus_mask True
            idle "gui/gm_load_back_idle.png"
            hover "gui/gm_load_back_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("navigation")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_prev_idle.png"
            hover "gui/gm_load_prev_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("load_page_3")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_next_idle.png"
            hover "gui/gm_load_next_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("load_page_5")

screen load_page_5() tag menu:
    imagemap:
        ground "gui/gm_load_6_bg.png"
        idle "gui/gm_load_6_bg.png"
        hover "gui/gm_load_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileLoad(25):
            use load_save_slot(number=25)
        hotspot (654, 141, 613, 345) clicked FileLoad(26):
            use load_save_slot(number=26)
        hotspot (1288, 141, 613, 345) clicked FileLoad(27):
            use load_save_slot(number=27)
        hotspot (20, 511, 613, 345) clicked FileLoad(28):
            use load_save_slot(number=28)
        hotspot (654, 511, 613, 345) clicked FileLoad(29):
            use load_save_slot(number=29)
        hotspot (1288, 511, 613, 345) clicked FileLoad(30):
            use load_save_slot(number=30)

        imagebutton:
            focus_mask True
            idle "gui/gm_load_back_idle.png"
            hover "gui/gm_load_back_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("navigation")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_prev_idle.png"
            hover "gui/gm_load_prev_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("load_page_4")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_next_idle.png"
            hover "gui/gm_load_next_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("load_page_6")

screen load_page_6() tag menu:
    imagemap:
        ground "gui/gm_load_6_bg.png"
        idle "gui/gm_load_6_bg.png"
        hover "gui/gm_load_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileLoad(31):
            use load_save_slot(number=31)
        hotspot (654, 141, 613, 345) clicked FileLoad(32):
            use load_save_slot(number=32)
        hotspot (1288, 141, 613, 345) clicked FileLoad(33):
            use load_save_slot(number=33)
        hotspot (20, 511, 613, 345) clicked FileLoad(34):
            use load_save_slot(number=34)
        hotspot (654, 511, 613, 345) clicked FileLoad(35):
            use load_save_slot(number=35)
        hotspot (1288, 511, 613, 345) clicked FileLoad(36):
            use load_save_slot(number=36)

        imagebutton:
            focus_mask True
            idle "gui/gm_load_back_idle.png"
            hover "gui/gm_load_back_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("navigation")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_prev_idle.png"
            hover "gui/gm_load_prev_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("load_page_5")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_next_idle.png"
            hover "gui/gm_load_next_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("load_page_7")

screen load_page_7() tag menu:
    imagemap:
        ground "gui/gm_load_6_bg.png"
        idle "gui/gm_load_6_bg.png"
        hover "gui/gm_load_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileLoad(37):
            use load_save_slot(number=37)
        hotspot (654, 141, 613, 345) clicked FileLoad(38):
            use load_save_slot(number=38)
        hotspot (1288, 141, 613, 345) clicked FileLoad(39):
            use load_save_slot(number=39)
        hotspot (20, 511, 613, 345) clicked FileLoad(40):
            use load_save_slot(number=40)
        hotspot (654, 511, 613, 345) clicked FileLoad(41):
            use load_save_slot(number=41)
        hotspot (1288, 511, 613, 345) clicked FileLoad(42):
            use load_save_slot(number=42)

        imagebutton:
            focus_mask True
            idle "gui/gm_load_back_idle.png"
            hover "gui/gm_load_back_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("navigation")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_prev_idle.png"
            hover "gui/gm_load_prev_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("load_page_6")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_next_idle.png"
            hover "gui/gm_load_next_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("load_page_8")

screen load_page_8() tag menu:
    imagemap:
        ground "gui/gm_load_6_bg.png"
        idle "gui/gm_load_6_bg.png"
        hover "gui/gm_load_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileLoad(43):
            use load_save_slot(number=43)
        hotspot (654, 141, 613, 345) clicked FileLoad(44):
            use load_save_slot(number=44)
        hotspot (1288, 141, 613, 345) clicked FileLoad(45):
            use load_save_slot(number=45)
        hotspot (20, 511, 613, 345) clicked FileLoad(46):
            use load_save_slot(number=46)
        hotspot (654, 511, 613, 345) clicked FileLoad(47):
            use load_save_slot(number=47)
        hotspot (1288, 511, 613, 345) clicked FileLoad(48):
            use load_save_slot(number=48)

        imagebutton:
            focus_mask True
            idle "gui/gm_load_back_idle.png"
            hover "gui/gm_load_back_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("navigation")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_prev_idle.png"
            hover "gui/gm_load_prev_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("load_page_7")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_next_idle.png"
            hover "gui/gm_load_next_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("load_page_9")

screen load_page_9() tag menu:
    imagemap:
        ground "gui/gm_load_6_bg.png"
        idle "gui/gm_load_6_bg.png"
        hover "gui/gm_load_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileLoad(49):
            use load_save_slot(number=49)
        hotspot (654, 141, 613, 345) clicked FileLoad(50):
            use load_save_slot(number=50)
        hotspot (1288, 141, 613, 345) clicked FileLoad(51):
            use load_save_slot(number=51)
        hotspot (20, 511, 613, 345) clicked FileLoad(52):
            use load_save_slot(number=52)
        hotspot (654, 511, 613, 345) clicked FileLoad(53):
            use load_save_slot(number=53)
        hotspot (1288, 511, 613, 345) clicked FileLoad(54):
            use load_save_slot(number=54)

        imagebutton:
            focus_mask True
            idle "gui/gm_load_back_idle.png"
            hover "gui/gm_load_back_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("navigation")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_prev_idle.png"
            hover "gui/gm_load_prev_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("load_page_8")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_next_idle.png"
            hover "gui/gm_load_next_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("load_page_10")

screen load_page_10() tag menu:
    imagemap:
        ground "gui/gm_load_6_bg.png"
        idle "gui/gm_load_6_bg.png"
        hover "gui/gm_load_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileLoad(55):
            use load_save_slot(number=55)
        hotspot (654, 141, 613, 345) clicked FileLoad(56):
            use load_save_slot(number=56)
        hotspot (1288, 141, 613, 345) clicked FileLoad(57):
            use load_save_slot(number=57)
        hotspot (20, 511, 613, 345) clicked FileLoad(58):
            use load_save_slot(number=58)
        hotspot (654, 511, 613, 345) clicked FileLoad(59):
            use load_save_slot(number=59)
        hotspot (1288, 511, 613, 345) clicked FileLoad(60):
            use load_save_slot(number=60)

        imagebutton:
            focus_mask True
            idle "gui/gm_load_back_idle.png"
            hover "gui/gm_load_back_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("navigation")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_prev_idle.png"
            hover "gui/gm_load_prev_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("load_page_9")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_next_idle.png"
            hover "gui/gm_load_next_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("load_page_11")

screen load_page_11() tag menu:
    imagemap:
        ground "gui/gm_load_6_bg.png"
        idle "gui/gm_load_6_bg.png"
        hover "gui/gm_load_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileLoad(61):
            use load_save_slot(number=61)
        hotspot (654, 141, 613, 345) clicked FileLoad(62):
            use load_save_slot(number=62)
        hotspot (1288, 141, 613, 345) clicked FileLoad(63):
            use load_save_slot(number=63)
        hotspot (20, 511, 613, 345) clicked FileLoad(64):
            use load_save_slot(number=64)
        hotspot (654, 511, 613, 345) clicked FileLoad(65):
            use load_save_slot(number=65)
        hotspot (1288, 511, 613, 345) clicked FileLoad(66):
            use load_save_slot(number=66)

        imagebutton:
            focus_mask True
            idle "gui/gm_load_back_idle.png"
            hover "gui/gm_load_back_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("navigation")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_prev_idle.png"
            hover "gui/gm_load_prev_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("load_page_10")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_next_idle.png"
            hover "gui/gm_load_next_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("load_page_12")

screen load_page_12() tag menu:
    imagemap:
        ground "gui/gm_load_6_bg.png"
        idle "gui/gm_load_6_bg.png"
        hover "gui/gm_load_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileLoad(67):
            use load_save_slot(number=67)
        hotspot (654, 141, 613, 345) clicked FileLoad(68):
            use load_save_slot(number=68)
        hotspot (1288, 141, 613, 345) clicked FileLoad(69):
            use load_save_slot(number=69)
        hotspot (20, 511, 613, 345) clicked FileLoad(70):
            use load_save_slot(number=70)
        hotspot (654, 511, 613, 345) clicked FileLoad(71):
            use load_save_slot(number=71)
        hotspot (1288, 511, 613, 345) clicked FileLoad(72):
            use load_save_slot(number=72)

        imagebutton:
            focus_mask True
            idle "gui/gm_load_back_idle.png"
            hover "gui/gm_load_back_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("navigation")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_prev_idle.png"
            hover "gui/gm_load_prev_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("load_page_11")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_next_idle.png"
            hover "gui/gm_load_next_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("load_page_13")

screen load_page_13() tag menu:
    imagemap:
        ground "gui/gm_load_6_bg.png"
        idle "gui/gm_load_6_bg.png"
        hover "gui/gm_load_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileLoad(73):
            use load_save_slot(number=73)
        hotspot (654, 141, 613, 345) clicked FileLoad(74):
            use load_save_slot(number=74)
        hotspot (1288, 141, 613, 345) clicked FileLoad(75):
            use load_save_slot(number=75)
        hotspot (20, 511, 613, 345) clicked FileLoad(76):
            use load_save_slot(number=76)
        hotspot (654, 511, 613, 345) clicked FileLoad(77):
            use load_save_slot(number=77)
        hotspot (1288, 511, 613, 345) clicked FileLoad(78):
            use load_save_slot(number=78)

        imagebutton:
            focus_mask True
            idle "gui/gm_load_back_idle.png"
            hover "gui/gm_load_back_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("navigation")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_prev_idle.png"
            hover "gui/gm_load_prev_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("load_page_12")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_next_idle.png"
            hover "gui/gm_load_next_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("load_page_14")

screen load_page_14() tag menu:
    imagemap:
        ground "gui/gm_load_6_bg.png"
        idle "gui/gm_load_6_bg.png"
        hover "gui/gm_load_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileLoad(79):
            use load_save_slot(number=79)
        hotspot (654, 141, 613, 345) clicked FileLoad(80):
            use load_save_slot(number=80)
        hotspot (1288, 141, 613, 345) clicked FileLoad(81):
            use load_save_slot(number=81)
        hotspot (20, 511, 613, 345) clicked FileLoad(82):
            use load_save_slot(number=82)
        hotspot (654, 511, 613, 345) clicked FileLoad(83):
            use load_save_slot(number=83)
        hotspot (1288, 511, 613, 345) clicked FileLoad(84):
            use load_save_slot(number=84)

        imagebutton:
            focus_mask True
            idle "gui/gm_load_back_idle.png"
            hover "gui/gm_load_back_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("navigation")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_prev_idle.png"
            hover "gui/gm_load_prev_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("load_page_13")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_next_idle.png"
            hover "gui/gm_load_next_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("load_page_15")

screen load_page_15() tag menu:
    imagemap:
        ground "gui/gm_load_6_bg.png"
        idle "gui/gm_load_6_bg.png"
        hover "gui/gm_load_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileLoad(85):
            use load_save_slot(number=85)
        hotspot (654, 141, 613, 345) clicked FileLoad(86):
            use load_save_slot(number=86)
        hotspot (1288, 141, 613, 345) clicked FileLoad(87):
            use load_save_slot(number=87)
        hotspot (20, 511, 613, 345) clicked FileLoad(88):
            use load_save_slot(number=88)
        hotspot (654, 511, 613, 345) clicked FileLoad(89):
            use load_save_slot(number=89)
        hotspot (1288, 511, 613, 345) clicked FileLoad(90):
            use load_save_slot(number=90)

        imagebutton:
            focus_mask True
            idle "gui/gm_load_back_idle.png"
            hover "gui/gm_load_back_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("navigation")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_prev_idle.png"
            hover "gui/gm_load_prev_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("load_page_14")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_next_idle.png"
            hover "gui/gm_load_next_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("load_page_16")

screen load_page_16() tag menu:
    imagemap:
        ground "gui/gm_load_6_bg.png"
        idle "gui/gm_load_6_bg.png"
        hover "gui/gm_load_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileLoad(91):
            use load_save_slot(number=91)
        hotspot (654, 141, 613, 345) clicked FileLoad(92):
            use load_save_slot(number=92)
        hotspot (1288, 141, 613, 345) clicked FileLoad(93):
            use load_save_slot(number=93)
        hotspot (20, 511, 613, 345) clicked FileLoad(94):
            use load_save_slot(number=94)
        hotspot (654, 511, 613, 345) clicked FileLoad(95):
            use load_save_slot(number=95)
        hotspot (1288, 511, 613, 345) clicked FileLoad(96):
            use load_save_slot(number=96)

        imagebutton:
            focus_mask True
            idle "gui/gm_load_back_idle.png"
            hover "gui/gm_load_back_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("navigation")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_prev_idle.png"
            hover "gui/gm_load_prev_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("load_page_15")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_next_idle.png"
            hover "gui/gm_load_next_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("load_page_17")

screen load_page_17() tag menu:
    imagemap:
        ground "gui/gm_load_6_bg.png"
        idle "gui/gm_load_6_bg.png"
        hover "gui/gm_load_6_bg.png"
        alpha False


        hotspot (20, 141, 613, 345) clicked FileLoad(97):
            use load_save_slot(number=97)
        hotspot (654, 141, 613, 345) clicked FileLoad(98):
            use load_save_slot(number=98)
        hotspot (1288, 141, 613, 345) clicked FileLoad(99):
            use load_save_slot(number=99)
        hotspot (20, 511, 613, 345) clicked FileLoad(100):
            use load_save_slot(number=100)
        hotspot (654, 511, 613, 345) clicked FileLoad(101):
            use load_save_slot(number=101)
        hotspot (1288, 511, 613, 345) clicked FileLoad(102):
            use load_save_slot(number=102)

        imagebutton:
            focus_mask True
            idle "gui/gm_load_back_idle.png"
            hover "gui/gm_load_back_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("navigation")

        imagebutton:
            focus_mask True
            idle "gui/gm_load_prev_idle.png"
            hover "gui/gm_load_prev_hover.png"
            activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action ShowMenu("load_page_16")

screen load_save_slot:
    $ file_text = "% 2s. %s\n%s" % (
                        FileSlotName(number, 2),
                        FileTime(number),
                        FileSaveName(number))

    add FileScreenshot(number)
    text file_text
    if FileLoadable(number):
        imagebutton idle "gui/nodelete.png" hover "gui/nodelete.png" action FileDelete(number) xoffset 190
    key "save_delete" action FileDelete(number)

init -2 python:
    config.thumbnail_width = 613
    config.thumbnail_height = 345

################################################# DELETE_WARNING ###################################################
screen yesno_prompt(message, yes_action, no_action):
    modal True

    window:
        style "gm_root"

    if message == layout.DELETE_SAVE or message == layout.OVERWRITE_SAVE:
        add "gui/gm_savewarning_bg.png"

        imagebutton:
            focus_mask True
            idle "gui/gm_savewarning_yes_idle.png"
            hover "gui/gm_savewarning_yes_hover.png"
            #activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action yes_action

        imagebutton:
            focus_mask True
            idle "gui/gm_savewarning_no_idle.png"
            hover "gui/gm_savewarning_no_hover.png"
            #activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action no_action


    if message == layout.QUIT or message == layout.MAIN_MENU:

        add "gui/gm_quitwarning_bg.png"

        imagebutton:
            focus_mask True
            idle "gui/gm_quitwarning_back_idle.png"
            hover "gui/gm_quitwarning_back_hover.png"
            #activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action no_action

        imagebutton:
            focus_mask True
            idle "gui/gm_quitwarning_quit_idle.png"
            hover "gui/gm_quitwarning_quit_hover.png"
            #activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action yes_action

    if message == layout.LOADING:
        add "gui/gm_loadwarning_bg.png"

        imagebutton:
            focus_mask True
            idle "gui/gm_savewarning_yes_idle.png"
            hover "gui/gm_savewarning_yes_hover.png"
            #activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action yes_action

        imagebutton:
            focus_mask True
            idle "gui/gm_savewarning_no_idle.png"
            hover "gui/gm_savewarning_no_hover.png"
            #activate_sound "audio/gui_button_click.mp3"
            hover_sound "audio/gui_button_hover.mp3"
            action no_action

        # Right-click and escape answer "no".
    key "game_menu" action no_action

init -2:
    style yesno_button:
        size_group "yesno"

    style yesno_label_text:
        text_align 0.5
        layout "subtitle"

################################################# QUICK MENU #################################################
screen quick_menu():           #### Add an in-game quick menu.
    hbox:
        style_group "quick"

        xalign 1.0
        yalign 1.0

        textbutton _("Back") action Return()
        textbutton _("Save") action ShowMenu('save')
        textbutton _("Q.Save") action QuickSave()
        textbutton _("Q.Load") action QuickLoad()
        textbutton _("Skip") action Skip()
        textbutton _("F.Skip") action Skip(fast=True, confirm=True)
        textbutton _("Auto") action Preference("auto-forward", "toggle")
        textbutton _("Prefs") action ShowMenu('preferences')

init -2:
    style quick_button is default:

        background None
        xpadding 5

    style quick_button_text is default:

        size 12
        idle_color "#8888"
        hover_color "#ccc"
        selected_idle_color "#cc08"
        selected_hover_color "#cc0"
        insensitive_color "#4448"

################################################# ESCAPE MENU #######################################################
screen escape_key:
    key "K_ESCAPE" action ShowMenu("navigation")
