wesnoth/data/themes/_initial.cfg
Tommy 8380e018f5 Fix low-res themes during replay.
This was mentioned as a comment in #5620.
2022-06-17 03:02:38 +12:00

676 lines
17 KiB
INI

#textdomain wesnoth
#define MAIN_MAP_BORDER
[main_map_border]
border_size = 0.5
background_image = "terrain/off-map/background.png"
# this image is processed by the terrain matching code so should be
# in the terrains directory and should omit the 'terrain/' prefix
# and the '.png' suffix
tile_image = "off-map/alpha.png"
[/main_map_border]
#enddef
#define CUTSCENE_THEME_BACKGROUND
[main_map_border]
border_size = 0.5
tile_image = "alphamask.png"
show_border = no
[/main_map_border]
#enddef
#define STATUS_BOX_BORDERLESS X1 Y1 X2 Y2 ID REF XANCHOR YANCHOR
[panel]
id={ID}-box-topleft
rect="{X1},{Y1},+5,+5"
xanchor={XANCHOR}
ref={REF}
yanchor={YANCHOR}
[/panel]
[panel]
id={ID}-box-top
rect="+0,=+0,{X2},+3"
xanchor={XANCHOR}
yanchor={YANCHOR}
[/panel]
[panel]
id={ID}-box-topright
rect="+0,=+0,+3,+3"
xanchor={XANCHOR}
yanchor={YANCHOR}
[/panel]
[panel]
id={ID}-box-left
ref={ID}-box-topleft
rect="=+0,+0,+3,{Y2}"
xanchor={XANCHOR}
yanchor={YANCHOR}
[/panel]
[panel]
id={ID}-box-center
rect="+0,=+0,{X2},{Y2}"
xanchor={XANCHOR}
yanchor={YANCHOR}
[/panel]
[panel]
id={ID}-box-right
rect="+0,=+0,+3,{Y2}"
xanchor={XANCHOR}
yanchor={YANCHOR}
[/panel]
[panel]
id={ID}-box-botleft
ref={ID}-box-left
rect="=+0,+0,+3,+3"
xanchor={XANCHOR}
yanchor={YANCHOR}
[/panel]
[panel]
id={ID}-box-bottom
rect="+0,=+0,{X2},+3"
xanchor={XANCHOR}
yanchor={YANCHOR}
[/panel]
[panel]
id={ID}-box-botright
rect="+0,=+0,+3,+3"
xanchor={XANCHOR}
yanchor={YANCHOR}
[/panel]
#enddef
#define STATUS_BOX X1 Y1 X2 Y2 ID REF XANCHOR YANCHOR
[panel]
id={ID}-box-topleft
image=themes/status_box/status_box-border-topleft.png
rect="{X1},{Y1},+3,+3"
xanchor={XANCHOR}
ref={REF}
yanchor={YANCHOR}
[/panel]
[panel]
id={ID}-box-top
image=themes/status_box/status_box-border-top.png
rect="+0,=+0,{X2},+3"
xanchor={XANCHOR}
yanchor={YANCHOR}
[/panel]
[panel]
id={ID}-box-topright
image=themes/status_box/status_box-border-topright.png
rect="+0,=+0,+3,+3"
xanchor={XANCHOR}
yanchor={YANCHOR}
[/panel]
[panel]
id={ID}-box-left
image=themes/status_box/status_box-border-left.png
ref={ID}-box-topleft
rect="=+0,+0,+3,{Y2}"
xanchor={XANCHOR}
yanchor={YANCHOR}
[/panel]
[panel]
id={ID}-box-center
image=themes/status_box/status_box-background.png
rect="+0,=+0,{X2},{Y2}"
xanchor={XANCHOR}
yanchor={YANCHOR}
[/panel]
[panel]
id={ID}-box-right
image=themes/status_box/status_box-border-right.png
rect="+0,=+0,+3,{Y2}"
xanchor={XANCHOR}
yanchor={YANCHOR}
[/panel]
[panel]
id={ID}-box-botleft
image=themes/status_box/status_box-border-botleft.png
ref={ID}-box-left
rect="=+0,+0,+3,+3"
xanchor={XANCHOR}
yanchor={YANCHOR}
[/panel]
[panel]
id={ID}-box-bottom
image=themes/status_box/status_box-border-bottom.png
rect="+0,=+0,{X2},+3"
xanchor={XANCHOR}
yanchor={YANCHOR}
[/panel]
[panel]
id={ID}-box-botright
image=themes/status_box/status_box-border-botright.png
rect="+0,=+0,+3,+3"
xanchor={XANCHOR}
yanchor={YANCHOR}
[/panel]
#enddef
#define REMOVE_STATUS_BOX ID
[remove]
id={ID}-box-topleft
[/remove]
[remove]
id={ID}-box-top
[/remove]
[remove]
id={ID}-box-topright
[/remove]
[remove]
id={ID}-box-left
[/remove]
[remove]
id={ID}-box-center
[/remove]
[remove]
id={ID}-box-right
[/remove]
[remove]
id={ID}-box-botleft
[/remove]
[remove]
id={ID}-box-bottom
[/remove]
[remove]
id={ID}-box-botright
[/remove]
#enddef
#define CHANGE_STATUS_BOX X1 Y1 X2 Y2 ID REF
[change]
id={ID}-box-topleft
rect="{X1},{Y1},+3,+3"
ref={REF}
[/change]
[change]
id={ID}-box-top
rect="+0,=+0,{X2},+3"
[/change]
[change]
id={ID}-box-topright
rect="+0,=+0,+3,+3"
[/change]
[change]
id={ID}-box-left
ref={ID}-box-topleft
rect="=+0,+0,+3,{Y2}"
[/change]
[change]
id={ID}-box-center
rect="+0,=+0,{X2},{Y2}"
[/change]
[change]
id={ID}-box-right
rect="+0,=+0,+3,{Y2}"
[/change]
[change]
id={ID}-box-botleft
ref={ID}-box-left
rect="=+0,+0,+3,+3"
[/change]
[change]
id={ID}-box-bottom
rect="+0,=+0,{X2},+3"
[/change]
[change]
id={ID}-box-botright
rect="+0,=+0,+3,+3"
[/change]
#enddef
#define MINIMAP_THEME_600
# use right pane with a smaller minimap
[change]
id=minimap-panel
image=themes/classic/minimap-800.png
rect="=,=+6,+181,+170"
[/change]
# reduce size of minimap
[change]
id=mini-map
rect="=+43,=+4,=-8,+158"
[/change]
[change]
id=minimap-button-1
ref=minimap-panel
rect="=+15,=+6,+25,+25"
[/change]
[change]
id=minimap-button-2
rect="=,+1,+25,+25"
[/change]
[change]
id=minimap-button-3
rect="=,+1,+25,+25"
[/change]
[change]
id=minimap-button-4
rect="=,+1,+25,+25"
[/change]
[change]
id=minimap-button-5
rect="=,+1,+25,+25"
[/change]
[change]
id=minimap-button-6
rect="=,+1,+25,+25"
[/change]
#enddef
#define MINIMAP_THEME
[panel]
id=minimap-panel
#ref=terrain-description-box-botleft
image=themes/classic/minimap.png
rect="=,=+6,+181,+255"
xanchor=right
yanchor=fixed
[/panel]
[mini_map]
id=mini-map
ref=minimap-panel
rect="=+13,=+5,=-8,+212"
xanchor=right
yanchor=fixed
[/mini_map]
[action]
id=minimap-button-1
ref=mini-map
type=checkbox
image=button_square/button_square_25
items=zoomdefault
auto_tooltip=yes
rect="=+1,+3,+25,+25"
xanchor=right
yanchor=fixed
[/action]
[action]
id=minimap-button-2
items=minimap-draw-terrain
type=checkbox
image=button_square/button_square_25
auto_tooltip=yes
rect="+3,=,+25,+25"
xanchor=right
yanchor=fixed
[/action]
[action]
id=minimap-button-3
items=minimap-draw-units
type=checkbox
overlay=icons/action/editor-tool-unit_25
image=button_square/button_square_25
auto_tooltip=yes
rect="+1,=,+25,+25"
xanchor=right
yanchor=fixed
[/action]
[action]
id=minimap-button-4
items=minimap-draw-villages
overlay=icons/action/editor-tool-village_25
type=checkbox
image=button_square/button_square_25
tooltip_name_prepend=yes
rect="+1,=,+25,+25"
xanchor=right
yanchor=fixed
[/action]
[action]
id=minimap-button-5
items=minimap-unit-coding
type=checkbox
image=button_square/button_square_25
auto_tooltip=yes
rect="+1,=,+25,+25"
xanchor=right
yanchor=fixed
[/action]
[action]
id=minimap-button-6
type=checkbox
items=minimap-terrain-coding
image=button_square/button_square_25
auto_tooltip=yes
rect="+1,=,+25,+25"
xanchor=right
yanchor=fixed
[/action]
{STATUS_BOX =+7 +0 +165 +15 terrain-info minimap-panel right fixed}
#[label]
# id=terrain-icon
# icon=icons/terrain/terrain_type_info.png
# text= _ "terrain"
# ref=terrain-info-box-center
# rect="=-1,=-1,+20,+16"
# xanchor=right
# yanchor=fixed
#[/label]
{STATUS_BOX =+0 -2 +165 +15 terrain-description terrain-info-box-botleft right fixed}
[terrain]
id=terrain-description
ref=terrain-description-box-center
rect="=-1,=-1,+20,+16"
xanchor=right
yanchor=fixed
[/terrain]
#enddef
#define COUNTDOWN_THEME
{STATUS_BOX_BORDERLESS +3 =+0 +90 +15 timeout battery-box-topright fixed fixed}
#enddef
#define COUNTDOWN_THEME_STATUS FONT_SMALL_SIZE
[report_countdown]
id=report_countdown
font_size={FONT_SMALL_SIZE}
ref=timeout-box-center
rect="=,=-3,+80,+20"
xanchor=fixed
yanchor=fixed
[/report_countdown]
#enddef
#define REPLAY_THEME FONT_SMALL_SIZE
#arg LEFT_MARGIN
=#endarg
[replay]
[add]
[panel]
id=replay-panel
image=themes/editor/classic/toolbar.png
ref=top-panel
rect="{LEFT_MARGIN},+0,=,+41"
xanchor=left
yanchor=fixed
[/panel]
[/add]
[change]
id=main-map
rect="{LEFT_MARGIN},=+41,=,="
[/change]
[add]
[action]
id=button-playreplay
ref=replay-panel
type=image
image=button_square/button_square_30
overlay=icons/action/play_30
title= _ "replay^Play"
tooltip= _ "continuous replay"
items=playreplay
rect="=+7,=+5,+30,+30"
xanchor=fixed
yanchor=fixed
[/action]
[/add]
[add]
[action]
id=button-stopreplay
ref=button-playreplay
type=image
image=button_square/button_square_30
overlay=icons/action/pause_30
title= _ "replay^Stop"
tooltip= _ "pause after current move"
items=stopreplay
rect="+4,=+0,+30,+30"
#rect="+4,=,+23,="
xanchor=fixed
yanchor=fixed
[/action]
[/add]
[add]
[action]
id=button-resetreplay
ref=button-stopreplay
type=image
image=button_square/button_square_30
overlay=icons/action/stop_30
title= _ "replay^Reset"
tooltip= _ "reset to beginning"
items=resetreplay
#rect="+4,=,+23,="
rect="+4,=+0,+30,+30"
xanchor=fixed
yanchor=fixed
[/action]
[/add]
[add]
[action]
id=button-nextturn
ref=button-resetreplay
type=image
image=button_square/button_square_30
overlay=icons/action/play_turn_30
title= _ "Next Turn"
tooltip= _ "play turn"
items=replaynextturn
#rect="+4,=,+23,="
rect="+4,=+0,+30,+30"
xanchor=fixed
yanchor=fixed
[/action]
[/add]
[add]
[action]
id=button-nextside
ref=button-nextturn
type=image
image=button_square/button_square_30
overlay=icons/action/play_side_30
title= _ "Next Side"
tooltip= _ "play side turn"
items=replaynextside
rect="+4,=+0,+30,+30"
xanchor=fixed
yanchor=fixed
[/action]
[/add]
[add]
[action]
id=button-nextmove
ref=button-nextside
type=image
image=button_square/button_square_30
overlay=icons/action/play_move_30
title= _ "Next Move"
tooltip= _ "play single move"
items=replaynextmove
rect="+4,=+0,+30,+30"
xanchor=fixed
yanchor=fixed
[/action]
[/add]
[add]
[menu]
id=show-what
ref=button-nextmove
image=button_normal/button_H22
title= _ "Point of view"
items=replayshowteam1,replayshoweach,replayshoweverything
rect="+15,=+4,+100,+10"
xanchor=fixed
yanchor=fixed
[/menu]
[/add]
[add]
[action]
id=button-continue
ref=show-what
title= _ "Continue Play"
tooltip= _ "Exit the replay mode and continue playing normally."
items=replayexit
rect="+15,=,+100,="
xanchor=fixed
yanchor=fixed
[/action]
[/add]
[add]
[action]
id=skip-animation
ref=button-continue
type=checkbox
title= _ "Skip animation"
items=replayskipanimation
rect="+15,=+2,+80,+10"
xanchor=fixed
yanchor=fixed
[/action]
[/add]
[/replay]
#enddef
#define CLASSIC_REPLAY_THEME FONT_SMALL_SIZE
[replay]
[change]
id=main-map
ref=top-panel
rect="=,+30,+882,768"
[/change]
[add]
[panel]
id=replay-panel
image=themes/legacy/top-bg.png
ref=top-panel
rect="=,+0,+882,+30"
xanchor=left
yanchor=fixed
[/panel]
[/add]
[add]
[label]
id=replay-label
text= _ "Replay"
ref=replay-panel
rect="=+3,=+5,+60,=-4"
font_size={FONT_SMALL_SIZE}
font_rgb=160,160,160
xanchor=fixed
yanchor=fixed
[/label]
[/add]
[add]
[action]
id=button-playreplay
ref=replay-label
type=image
image=classic/play
title= _ "Play"
tooltip= _ "continuous replay"
items=playreplay
rect="+4,=-4,+23,="
xanchor=fixed
yanchor=fixed
[/action]
[/add]
[add]
[action]
id=button-stopreplay
ref=button-playreplay
type=image
image=classic/pause
title= _ "Stop"
tooltip= _ "pause"
items=stopreplay
rect="+4,=,+23,="
xanchor=fixed
yanchor=fixed
[/action]
[/add]
[add]
[action]
id=button-resetreplay
ref=button-stopreplay
type=image
image=classic/stop
title= _ "Reset"
tooltip= _ "reset to beginning"
items=resetreplay
rect="+4,=,+23,="
xanchor=fixed
yanchor=fixed
[/action]
[/add]
[add]
[action]
id=button-nextturn
ref=button-resetreplay
type=image
image=classic/play-turn
title= _ "Next Turn"
tooltip= _ "play turn"
items=replaynextturn
rect="+4,=,+23,="
xanchor=fixed
yanchor=fixed
[/action]
[/add]
[add]
[action]
id=button-nextside
ref=button-nextturn
type=image
image=classic/play-side
title= _ "Next Side"
tooltip= _ "play side turn"
items=replaynextside
rect="+4,=,+23,="
xanchor=fixed
yanchor=fixed
[/action]
[/add]
[add]
[action]
id=button-nextmove
ref=button-nextside
type=image
image=classic/play-move
title= _ "Next Move"
tooltip= _ "play single move"
items=replaynextmove
rect="+4,=,+23,="
xanchor=fixed
yanchor=fixed
[/action]
[/add]
[add]
[menu]
id=show-what
ref=button-nextmove
image=classic/lite
title= _ "Point of view"
items=replayshowteam1,replayshoweach,replayshoweverything
rect="+15,=+2,+100,+10"
xanchor=fixed
yanchor=fixed
[/menu]
[/add]
[add]
[action]
id=skip-animation
ref=show-what
type=checkbox
title= _ "Skip animation"
items=replayskipanimation
rect="+15,=+1,+80,+10"
xanchor=fixed
yanchor=fixed
[/action]
[/add]
[/replay]
#enddef