moved the replay theme part to macros and added it to all themes

This commit is contained in:
Gunter Labes 2006-06-13 13:31:31 +00:00
parent 7d32693db6
commit 04b5252d4e
4 changed files with 141 additions and 266 deletions

View file

@ -436,141 +436,7 @@ height=768
[/unit_status]
[/status]
[replay]
[change]
id=main-map
ref=top-panel
rect="=,+26,+882,768"
[/change]
[add]
[panel]
id=replay-panel
image=misc/top-bg.png
ref=top-panel
rect="=,+0,+882,+26"
xanchor=left
yanchor=fixed
[/panel]
[/add]
[add]
[label]
id=replay-label
text= _ "Replay"
ref=replay-panel
rect="=+3,=+3,+60,=-4"
font_size={FONT_SMALL}
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
rect="+4,=-4,+23,="
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
rect="+4,=,+23,="
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
rect="+4,=,+23,="
xanchor=fixed
yanchor=fixed
[/menu]
[/add]
[add]
[menu]
id=button-nextturn
ref=button-resetreplay
type=image
image=fast-fwd
title= _ "Next Turn"
tooltip= _ "play turn"
items=replaynextturn
rect="+4,=,+23,="
xanchor=fixed
yanchor=fixed
[/menu]
[/add]
[add]
[menu]
id=button-nextside
ref=button-nextturn
type=image
image=frame-fwd
title= _ "Next Side"
tooltip= _ "play side turn"
items=replaynextside
rect="+4,=,+23,="
xanchor=fixed
yanchor=fixed
[/menu]
[/add]
[add]
[menu]
id=check-shroud
ref=button-nextside
type=checkbox
title= _ "Shroud"
items=replayswitchshroud
rect="+15,=+3,+180,+10"
xanchor=fixed
yanchor=fixed
[/menu]
[/add]
[add]
[menu]
id=check-fog
ref=check-shroud
type=checkbox
title= _ "Fog"
items=replayswitchfog
rect="+5,=,+80,+10"
xanchor=fixed
yanchor=fixed
[/menu]
[/add]
[add]
[menu]
id=skip-animation
ref=check-fog
type=checkbox
title= _ "Skip animation"
items=replayskipanimation
rect="+5,=,+80,+10"
xanchor=fixed
yanchor=fixed
[/menu]
[/add]
[/replay]
{REPLAY_THEME}
[/resolution]

View file

@ -510,134 +510,7 @@ height=768
[/unit_advancement_options]
[/status]
[replay]
[change]
id=main-map
ref=top-panel
rect="=,+26,+882,768"
[/change]
[add]
[panel]
id=replay-panel
image=misc/top-bg.png
ref=top-panel
rect="=,+0,+882,+26"
xanchor=left
yanchor=fixed
[/panel]
[/add]
[add]
[label]
id=replay-label
text= _ "Replay"
ref=replay-panel
rect="=+3,=+1,+60,=-4"
xanchor=fixed
yanchor=fixed
[/label]
[/add]
[add]
[menu]
id=button-playreplay
ref=replay-label
type=image
image=play
title= _ "Play"
items=playreplay
rect="+4,=-2,+23,="
xanchor=fixed
yanchor=fixed
[/menu]
[/add]
[add]
[menu]
id=button-stopreplay
ref=button-playreplay
type=image
image=pause
title= _ "Stop"
items=stopreplay
rect="+4,=,+23,="
xanchor=fixed
yanchor=fixed
[/menu]
[/add]
[add]
[menu]
id=button-resetreplay
ref=button-stopreplay
type=image
image=stop
title= _ "Reset"
items=resetreplay
rect="+4,=,+23,="
xanchor=fixed
yanchor=fixed
[/menu]
[/add]
[add]
[menu]
id=button-nextturn
ref=button-resetreplay
type=image
image=fast-fwd
title= _ "Next Turn"
items=replaynextturn
rect="+4,=,+23,="
xanchor=fixed
yanchor=fixed
[/menu]
[/add]
[add]
[menu]
id=button-nextside
ref=button-nextturn
type=image
image=frame-fwd
title= _ "Next Side"
items=replaynextside
rect="+4,=,+23,="
xanchor=fixed
yanchor=fixed
[/menu]
[/add]
[add]
[menu]
id=check-shroud
ref=button-nextside
type=checkbox
title= _ "Shroud"
items=replayswitchshroud
rect="+15,=+3,+180,+10"
xanchor=fixed
yanchor=fixed
[/menu]
[/add]
[add]
[menu]
id=check-fog
ref=check-shroud
type=checkbox
title= _ "Fog"
items=replayswitchfog
rect="+5,=,+80,+10"
xanchor=fixed
yanchor=fixed
[/menu]
[/add]
[add]
[menu]
id=skip-animation
ref=check-fog
type=checkbox
title= _ "Skip animation"
items=replayskipanimation
rect="+5,=,+80,+10"
xanchor=fixed
yanchor=fixed
[/menu]
[/add]
[/replay]
{REPLAY_THEME}
[/resolution]
[partialresolution]

View file

@ -424,6 +424,7 @@ height=768
[/status]
{REPLAY_THEME}
[/resolution]
[partialresolution]

View file

@ -1,6 +1,3 @@
#define REPLAY_THEME
#enddef
#define COUNTDOWN_THEME
[panel]
id=timeout-panel
@ -32,3 +29,141 @@
yanchor=fixed
[/report_countdown]
#enddef
#define REPLAY_THEME
[replay]
[change]
id=main-map
ref=top-panel
rect="=,+26,+882,768"
[/change]
[add]
[panel]
id=replay-panel
image=misc/top-bg.png
ref=top-panel
rect="=,+0,+882,+26"
xanchor=left
yanchor=fixed
[/panel]
[/add]
[add]
[label]
id=replay-label
text= _ "Replay"
ref=replay-panel
rect="=+3,=+3,+60,=-4"
font_size={FONT_SMALL}
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
rect="+4,=-4,+23,="
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
rect="+4,=,+23,="
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
rect="+4,=,+23,="
xanchor=fixed
yanchor=fixed
[/menu]
[/add]
[add]
[menu]
id=button-nextturn
ref=button-resetreplay
type=image
image=fast-fwd
title= _ "Next Turn"
tooltip= _ "play turn"
items=replaynextturn
rect="+4,=,+23,="
xanchor=fixed
yanchor=fixed
[/menu]
[/add]
[add]
[menu]
id=button-nextside
ref=button-nextturn
type=image
image=frame-fwd
title= _ "Next Side"
tooltip= _ "play side turn"
items=replaynextside
rect="+4,=,+23,="
xanchor=fixed
yanchor=fixed
[/menu]
[/add]
[add]
[menu]
id=check-shroud
ref=button-nextside
type=checkbox
title= _ "Shroud"
items=replayswitchshroud
rect="+15,=+3,+180,+10"
xanchor=fixed
yanchor=fixed
[/menu]
[/add]
[add]
[menu]
id=check-fog
ref=check-shroud
type=checkbox
title= _ "Fog"
items=replayswitchfog
rect="+5,=,+80,+10"
xanchor=fixed
yanchor=fixed
[/menu]
[/add]
[add]
[menu]
id=skip-animation
ref=check-fog
type=checkbox
title= _ "Skip animation"
items=replayskipanimation
rect="+5,=,+80,+10"
xanchor=fixed
yanchor=fixed
[/menu]
[/add]
[/replay]
#enddef