macro-ized replay elements
This commit is contained in:
parent
d3c36d46bd
commit
e5bd02c62b
3 changed files with 91 additions and 85 deletions
|
@ -429,91 +429,8 @@ height=768
|
|||
[/unit_status]
|
||||
[/status]
|
||||
|
||||
[panel]
|
||||
id=bottom-panel
|
||||
image=misc/top-bg.png
|
||||
ref=main-map
|
||||
rect="=,742,1024,768"
|
||||
xanchor=left
|
||||
yanchor=bottom
|
||||
[/panel]
|
||||
|
||||
[label]
|
||||
id=replay-label
|
||||
text= _ "Replay"
|
||||
ref=bottom-panel
|
||||
rect="=+3,=+1,+60,=-4"
|
||||
xanchor=fixed
|
||||
yanchor=bottom
|
||||
[/label]
|
||||
[menu]
|
||||
id=button-playreplay
|
||||
type=image
|
||||
image=play
|
||||
title= _ "Play"
|
||||
items=playreplay
|
||||
rect="+2,=-1,+23,="
|
||||
xanchor=fixed
|
||||
yanchor=bottom
|
||||
[/menu]
|
||||
[menu]
|
||||
id=button-stopreplay
|
||||
type=image
|
||||
image=pause
|
||||
title= _ "Stop"
|
||||
items=stopreplay
|
||||
rect="+2,=,+23,="
|
||||
xanchor=fixed
|
||||
yanchor=bottom
|
||||
[/menu]
|
||||
[menu]
|
||||
id=button-resetreplay
|
||||
type=image
|
||||
image=stop
|
||||
title= _ "Reset"
|
||||
items=resetreplay
|
||||
rect="+2,=,+23,="
|
||||
xanchor=fixed
|
||||
yanchor=bottom
|
||||
[/menu]
|
||||
[menu]
|
||||
id=button-nextturn
|
||||
type=image
|
||||
image=fast-fwd
|
||||
title= _ "Next Turn"
|
||||
items=replaynextturn
|
||||
rect="+2,=,+23,="
|
||||
xanchor=fixed
|
||||
yanchor=bottom
|
||||
[/menu]
|
||||
[menu]
|
||||
id=button-nextside
|
||||
type=image
|
||||
image=frame-fwd
|
||||
title= _ "Next Side"
|
||||
items=replaynextside
|
||||
rect="+2,=,+60,="
|
||||
xanchor=fixed
|
||||
yanchor=bottom
|
||||
[/menu]
|
||||
[menu]
|
||||
id=check-shroud
|
||||
type=checkbox
|
||||
title= _ "Shroud"
|
||||
items=replayswitchshroud
|
||||
rect="+15,=,+60,+10"
|
||||
xanchor=fixed
|
||||
yanchor=bottom
|
||||
[/menu]
|
||||
[menu]
|
||||
id=check-fog
|
||||
type=checkbox
|
||||
title= _ "Fog"
|
||||
items=replayswitchfog
|
||||
rect="+15,=,+60,+10"
|
||||
xanchor=fixed
|
||||
yanchor=bottom
|
||||
[/menu]
|
||||
{themes/macros.cfg}
|
||||
{REPLAY_THEME}
|
||||
[/resolution]
|
||||
|
||||
[partialresolution]
|
||||
|
|
|
@ -487,6 +487,8 @@ height=768
|
|||
[/unit_advancement_options]
|
||||
[/status]
|
||||
|
||||
{themes/macros.cfg}
|
||||
{REPLAY_THEME}
|
||||
[/resolution]
|
||||
|
||||
[partialresolution]
|
||||
|
|
87
data/themes/macros.cfg
Normal file
87
data/themes/macros.cfg
Normal file
|
@ -0,0 +1,87 @@
|
|||
#define REPLAY_THEME
|
||||
[panel]
|
||||
id=bottom-panel
|
||||
image=misc/top-bg.png
|
||||
ref=main-map
|
||||
rect="=+3,-30,=-4,=-4"
|
||||
xanchor=left
|
||||
yanchor=bottom
|
||||
[/panel]
|
||||
|
||||
[label]
|
||||
id=replay-label
|
||||
text= _ "Replay"
|
||||
ref=bottom-panel
|
||||
rect="=+3,=+1,+60,=-4"
|
||||
xanchor=fixed
|
||||
yanchor=bottom
|
||||
[/label]
|
||||
[menu]
|
||||
id=button-playreplay
|
||||
type=image
|
||||
image=play
|
||||
title= _ "Play"
|
||||
items=playreplay
|
||||
rect="+2,=-1,+23,="
|
||||
xanchor=fixed
|
||||
yanchor=bottom
|
||||
[/menu]
|
||||
[menu]
|
||||
id=button-stopreplay
|
||||
type=image
|
||||
image=pause
|
||||
title= _ "Stop"
|
||||
items=stopreplay
|
||||
rect="+2,=,+23,="
|
||||
xanchor=fixed
|
||||
yanchor=bottom
|
||||
[/menu]
|
||||
[menu]
|
||||
id=button-resetreplay
|
||||
type=image
|
||||
image=stop
|
||||
title= _ "Reset"
|
||||
items=resetreplay
|
||||
rect="+2,=,+23,="
|
||||
xanchor=fixed
|
||||
yanchor=bottom
|
||||
[/menu]
|
||||
[menu]
|
||||
id=button-nextturn
|
||||
type=image
|
||||
image=fast-fwd
|
||||
title= _ "Next Turn"
|
||||
items=replaynextturn
|
||||
rect="+2,=,+23,="
|
||||
xanchor=fixed
|
||||
yanchor=bottom
|
||||
[/menu]
|
||||
[menu]
|
||||
id=button-nextside
|
||||
type=image
|
||||
image=frame-fwd
|
||||
title= _ "Next Side"
|
||||
items=replaynextside
|
||||
rect="+2,=,+60,="
|
||||
xanchor=fixed
|
||||
yanchor=bottom
|
||||
[/menu]
|
||||
[menu]
|
||||
id=check-shroud
|
||||
type=checkbox
|
||||
title= _ "Shroud"
|
||||
items=replayswitchshroud
|
||||
rect="+15,=,+60,+10"
|
||||
xanchor=fixed
|
||||
yanchor=bottom
|
||||
[/menu]
|
||||
[menu]
|
||||
id=check-fog
|
||||
type=checkbox
|
||||
title= _ "Fog"
|
||||
items=replayswitchfog
|
||||
rect="+15,=,+60,+10"
|
||||
xanchor=fixed
|
||||
yanchor=bottom
|
||||
[/menu]
|
||||
#enddef
|
Loading…
Add table
Reference in a new issue