#textdomain wesnoth
#define COUNTDOWN_THEME
    [panel]
        id=timeout-panel
        image=themes/status-bg.png
        rect="+5,=,+70,="
        xanchor=proportional
        yanchor=fixed
    [/panel]
    [label]
        id=time-icon
        #icon=themes/units.png
        icon=themes/sand-clock.png
        ref=timeout-panel
        rect="=+5,=+1,+17,+17"
        xanchor=proportional
        yanchor=fixed
    [/label]
#enddef

#define COUNTDOWN_THEME_STATUS FONT_SMALL_SIZE
    [report_countdown]
        id=report_timeout
        font_size={FONT_SMALL_SIZE}
        ref=time-icon
        rect="+0,=,+50,+20"
        xanchor=proportional
        yanchor=fixed
    [/report_countdown]
#enddef
#define REPLAY_THEME FONT_SMALL_SIZE
    [replay]
        [change]
            id=main-map
            ref=top-panel
            #ifdef TINY
                rect="=,+16,+953,768"
            #else
                rect="=,+26,+882,768"
            #endif
        [/change]
        [add]
            [panel]
                id=replay-panel
                image=themes/top-bg.png
                ref=top-panel
                #ifdef TINY
                    rect="=,+0,+953,+16"
                #else
                    rect="=,+0,+882,+26"
                #endif
                xanchor=left
                yanchor=fixed
            [/panel]
        [/add]
        [add]
            [label]
                id=replay-label
                text= _ "Replay"
                ref=replay-panel
                rect="=+3,=+1,+60,=-4"
                font_size={FONT_SMALL_SIZE}
                font_rgb=160,160,160
                xanchor=fixed
                yanchor=fixed
            [/label]
        [/add]
        [add]
            [menu]
                id=button-playreplay
                ref=replay-label
                type=image
                image=play
                title= _ "Play"
                tooltip= _ "continous replay"
                items=playreplay
                #ifdef TINY
                rect="+4,=,+10,="
                #else
                rect="+4,=-4,+23,="
                #endif
                xanchor=fixed
                yanchor=fixed
            [/menu]
        [/add]
        [add]
            [menu]
                id=button-stopreplay
                ref=button-playreplay
                type=image
                image=pause
                title= _ "Stop"
                tooltip= _ "pause at end of turn"
                items=stopreplay
                #ifdef TINY
                rect="+4,=,+10,="
                #else
                rect="+4,=,+23,="
                #endif
                xanchor=fixed
                yanchor=fixed
            [/menu]
        [/add]
        [add]
            [menu]
                id=button-resetreplay
                ref=button-stopreplay
                type=image
                image=stop
                title= _ "Reset"
                tooltip= _ "reset to beginning"
                items=resetreplay
                #ifdef TINY
                rect="+4,=,+10,="
                #else
                rect="+4,=,+23,="
                #endif
                xanchor=fixed
                yanchor=fixed
            [/menu]
        [/add]
        [add]
            [menu]
                id=button-nextturn
                ref=button-resetreplay
                type=image
                image=play-turn
                title= _ "Next Turn"
                tooltip= _ "play turn"
                items=replaynextturn
                #ifdef TINY
                rect="+4,=,+10,="
                #else
                rect="+4,=,+23,="
                #endif
                xanchor=fixed
                yanchor=fixed
            [/menu]
        [/add]
        [add]
            [menu]
                id=button-nextside
                ref=button-nextturn
                type=image
                image=play-side
                title= _ "Next Side"
                tooltip= _ "play side turn"
                items=replaynextside
                #ifdef TINY
                rect="+4,=,+10,="
                #else
                rect="+4,=,+23,="
                #endif
                xanchor=fixed
                yanchor=fixed
            [/menu]
        [/add]
        [add]
            [menu]
                id=show-what
                ref=button-nextside
                image=lite
                title= _ "Point of view"
                items=replayshowteam1,replayshoweach,replayshoweverything
                #ifdef TINY
                rect="+10,=-1,+60,+10"
                #else
                rect="+15,=+2,+100,+10"
                #endif
                xanchor=fixed
                yanchor=fixed
            [/menu]
        [/add]
        [add]
            [menu]
                id=skip-animation
                ref=show-what
                type=checkbox
                title= _ "Skip animation"
                items=replayskipanimation
                #ifdef TINY
                rect="+10,=+1,+80,+5"
                #else
                rect="+15,=+1,+80,+10"
                #endif
                xanchor=fixed
                yanchor=fixed
            [/menu]
        [/add]
    [/replay]
#enddef
