#
# GUI images
#

image gui_fade:
    Solid("#00000080")

image game_menu:
    contains:
        zoom 0.5
        "gui/main_menu/00.webp"
        pause 3
        "gui/main_menu/01.webp"
        pause.1
        "gui/main_menu/02.webp"
        pause.1
        "gui/main_menu/01.webp"
        pause.1
        "gui/main_menu/00.webp"
        pause 6
        "gui/main_menu/01.webp"
        pause.1
        "gui/main_menu/02b.webp"
        pause.1
        "gui/main_menu/01b.webp"
        pause.1
        "gui/main_menu/00b.webp"
        pause 3
        "gui/main_menu/01b.webp"
        pause.1
        "gui/main_menu/02b.webp"
        pause.1
        "gui/main_menu/01b.webp"
        pause.1
        "gui/main_menu/00b.webp"
        pause 6
        "gui/main_menu/01b.webp"
        pause.1
        "gui/main_menu/02b.webp"
        pause.1
        "gui/main_menu/02.webp"
        pause.1
        "gui/main_menu/01.webp"
        pause.1
        repeat

    contains:
        xpos -17
        ypos -151
        zoom 2.0
        "candle_fire"

    contains:
        xpos -255
        ypos 100
        zoom 0.8
        "gui/main_menu/fire00.webp"
        pause.1
        "gui/main_menu/fire01.webp"
        pause.1
        "gui/main_menu/fire02.webp"
        pause.1
        "gui/main_menu/fire03.webp"
        pause.1
        "gui/main_menu/fire04.webp"
        pause.1
        "gui/main_menu/fire05.webp"
        pause.1
        "gui/main_menu/fire06.webp"
        pause.1
        "gui/main_menu/fire07.webp"
        pause.1
        repeat

image main_menu:
    contains:
        "game_menu"

    # contains:
    #     xalign 1.0
    #     yalign 0.5
    #     xoffset -210
    #     "game_title"

image game_title:
    size (339, 242)

    contains:
        #zoom 0.9
        "gui/logos/title.webp"

    #TODO Add sparkle to game logo
    # #sparkle
    # contains:
    #     subpixel True
    #     xpos 50
    #     ypos 200
    #     xanchor 0.5
    #     yanchor 0.5
    #     zoom 0.0
    #     "gui/main_menu/sparkle.webp"
    #     linear 0.8 zoom 1.0
    #     linear 0.5 zoom 0.0
    #     pause 5
    #     repeat

    # # #shine silver (synchronized)
    # contains:
    #     subpixel True
    #     xpos 115
    #     ypos 222
    #     xanchor 0.5
    #     yanchor 0.5
    #     zoom 0.0
    #     "images/title/sparkle.webp"
    #     pause 1.3
    #     linear 0.5 zoom 1.0
    #     linear 0.5 zoom 0.0

    #     xpos 135
    #     ypos 192
    #     linear 0.5 zoom 1.0
    #     linear 0.5 zoom 0.0

    #     xpos 186
    #     ypos 217
    #     linear 0.5 zoom 1.0
    #     linear 0.5 zoom 0.0

    #     xpos 220
    #     ypos 223
    #     linear 0.5 zoom 1.0
    #     linear 0.5 zoom 0.0

    #     xpos 275
    #     ypos 220
    #     linear 0.5 zoom 1.0
    #     linear 0.5 zoom 0.0
    #     pause 12.6
        # repeat

image candle_fire:
    "gui/main_menu/candle/fire_01.webp"
    pause.1
    "gui/main_menu/candle/fire_02.webp"
    pause.1
    "gui/main_menu/candle/fire_03.webp"
    pause.1
    "gui/main_menu/candle/fire_04.webp"
    pause.1
    "gui/main_menu/candle/fire_05.webp"
    pause.1
    "gui/main_menu/candle/fire_06.webp"
    pause.1
    "gui/main_menu/candle/fire_07.webp"
    pause.1
    "gui/main_menu/candle/fire_08.webp"
    pause.1
    "gui/main_menu/candle/fire_09.webp"
    pause.1
    "gui/main_menu/candle/fire_10.webp"
    pause.1
    repeat

image discord_idle:
    "gui/logos/discord.webp"

image patreon_idle:
    "gui/logos/patreon.webp"

image silverstudiogames_idle:
    "gui/logos/silverstudiogames.webp"

# Sliders

image slider_horizontal_idle_thumb = Transform("gui/dark_frame.png", alpha=0.5)
image slider_horizontal_selected_idle_thumb = "slider_horizontal_idle_thumb"
image slider_horizontal_hover_thumb = "gui/dark_frame.png"
image slider_horizontal_selected_hover_thumb = "slider_horizontal_hover_thumb"
image slider_horizontal_idle_bar = Solid(gui.muted_color)
image slider_horizontal_selected_idle_bar = "slider_horizontal_idle_bar"
image slider_horizontal_hover_bar = Solid(gui.hover_muted_color)
image slider_horizontal_selected_hover_bar = "slider_horizontal_hover_bar"
image slider_horizontal_insensitive_thumb = "slider_horizontal_idle_thumb"

image slider_vertical_idle_thumb = Solid(gui.idle_color, ysize=gui.thumb_size)
image slider_vertical_selected_idle_thumb = "slider_vertical_idle_thumb"
image slider_vertical_hover_thumb = Solid(gui.hover_color, ysize=gui.thumb_size)
image slider_vertical_selected_hover_thumb = "slider_vertical_hover_thumb"
image slider_vertical_idle_bar = Solid(gui.muted_color)
image slider_vertical_selected_idle_bar = "slider_vertical_idle_bar"
image slider_vertical_hover_bar = Solid(gui.hover_muted_color)
image slider_vertical_selected_hover_bar = "slider_vertical_hover_bar"
image slider_vertical_insensitive_thumb = "slider_vertical_idle_thumb"

image dark_slider_empty = "gui/slider/dark_empty.png"
image light_slider_empty = "gui/slider/light_empty.png"

image dark_slider_full = "gui/slider/dark_full.png"
image light_slider_full = "gui/slider/light_full.png"

# Scrollbars

image scrollbar_horizontal_idle_thumb = "gui/scrollbar/vertical_idle_bar.png" #Solid(gui.accent_color)
image scrollbar_horizontal_hover_thumb = image_hover("gui/scrollbar/vertical_idle_bar.png") #Solid(gui.hover_color)
image scrollbar_horizontal_insensitive_thumb = "scrollbar_horizontal_idle_thumb"
image scrollbar_horizontal_selected_insensitive_thumb = "scrollbar_horizontal_idle_thumb"
image scrollbar_horizontal_selected_idle_thumb = "gui/scrollbar/vertical_idle_bar.png"
image scrollbar_horizontal_selected_hover_thumb = "scrollbar_horizontal_hover_thumb"
image scrollbar_horizontal_idle_bar = Solid(gui.muted_color)
image scrollbar_horizontal_selected_idle_bar = "scrollbar_horizontal_idle_bar"
image scrollbar_horizontal_hover_bar = Solid(gui.hover_muted_color)
image scrollbar_horizontal_selected_hover_bar = "scrollbar_horizontal_hover_bar"
image scrollbar_horizontal_insensitive_bar = "scrollbar_horizontal_idle_bar"
image scrollbar_horizontal_selected_insensitive_bar = "scrollbar_horizontal_idle_bar"

image scrollbar_vertical_idle_thumb = "gui/scrollbar/horizontal_idle_bar.png" #Solid("#3d3535")
image scrollbar_vertical_insensitive_thumb = "gui/scrollbar/horizontal_idle_bar.png"
image scrollbar_vertical_selected_idle_thumb = "scrollbar_vertical_idle_thumb"
image scrollbar_vertical_selected_insensitive_thumb = "scrollbar_vertical_idle_thumb"
image scrollbar_vertical_hover_thumb = image_hover("gui/scrollbar/horizontal_idle_bar.png") #Solid("#3d3535")
image scrollbar_vertical_selected_hover_thumb = "scrollbar_vertical_hover_thumb"
image scrollbar_vertical_idle_bar = Solid("#726363")
image scrollbar_vertical_selected_idle_bar = "scrollbar_vertical_idle_bar"
image scrollbar_vertical_hover_bar = Solid("#726363")
image scrollbar_vertical_selected_hover_bar = "scrollbar_vertical_hover_bar"
image scrollbar_vertical_insensitive_bar = "scrollbar_vertical_idle_bar"
image scrollbar_vertical_selected_insensitive_bar = "scrollbar_horizontal_idle_bar"



# Bars

image bar_idle_fill = Solid(gui.idle_color)
image bar_hover_fill = Solid(gui.hover_color)
image bar_idle_empty = Solid(gui.muted_color)
image bar_hover_empty = Solid(gui.hover_muted_color)

image light_check_true:
    zoom 0.5
    offset (2, 1)
    "interface/frames/gold/check_true.webp"

image light_check_false:
    zoom 0.5
    offset (2, 1)
    "interface/frames/gold/check_false.webp"

image light_check_none:
    zoom 0.5
    offset (2, 1)
    "interface/frames/gold/check_none.webp"

image dark_check_true:
    zoom 0.5
    offset (2, 1)
    "interface/frames/gray/check_true.webp"

image dark_check_false:
    zoom 0.5
    offset (2, 1)
    "interface/frames/gray/check_false.webp"

image dark_check_none:
    zoom 0.5
    offset (2, 1)
    "interface/frames/gray/check_none.webp"

### Radio

image light_radio_true:
    zoom 0.5
    offset (2, 2)
    "interface/frames/gold/radio_true.webp"

image light_radio_false:
    zoom 0.5
    offset (2, 2)
    "interface/frames/gold/radio_false.webp"

image light_radio_none:
    zoom 0.5
    offset (2, 2)
    "interface/frames/gold/radio_none.webp"

image dark_radio_true:
    zoom 0.5
    offset (2, 2)
    "interface/frames/gray/radio_true.webp"

image dark_radio_false:
    zoom 0.5
    offset (2, 2)
    "interface/frames/gray/radio_false.webp"

image dark_radio_none:
    zoom 0.5
    offset (2, 2)
    "interface/frames/gray/radio_none.webp"
