#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 ommit the 'terrain/' prefix # and the '.png' suffix tile_image = "off-map/alpha.png" corner_image_top_left = "terrain/off-map/fade_corner_top_left.png" corner_image_bottom_left = "terrain/off-map/fade_corner_bottom_left.png" # odd means the corner is on a tile with an odd x value, # the tile is the ingame tile not the odd in C++ corner_image_top_right_odd = "terrain/off-map/fade_corner_top_right_odd.png" corner_image_top_right_even = "terrain/off-map/fade_corner_top_right_even.png" corner_image_bottom_right_odd = "terrain/off-map/fade_corner_bottom_right_odd.png" corner_image_bottom_right_even = "terrain/off-map/fade_corner_bottom_right_even.png" border_image_left = "terrain/off-map/fade_border_left.png" border_image_right = "terrain/off-map/fade_border_right.png" border_image_top_odd = "terrain/off-map/fade_border_top_odd.png" border_image_top_even = "terrain/off-map/fade_border_top_even.png" border_image_bottom_odd = "terrain/off-map/fade_border_bottom_odd.png" border_image_bottom_even = "terrain/off-map/fade_border_bottom_even.png" [/main_map_border] #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="842,=+6,+181,+177" [/change] # reduce size of minimap [change] id=mini-map rect="=+45,=+4,=-8,+165" [/change] [remove] id=map-zoom-slider [/remove] [remove] id=zoom-level [/remove] [change] id=minimap-button-1 ref=minimap-panel rect="=+15,=+7,+25,+25" [/change] [change] id=minimap-button-2 rect="=,+3,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,+265" 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,+13,+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] [slider] image=buttons/sliders/slider_arrow_gold id=map-zoom-slider black_line=yes ref=mini-map rect="=+38,+2,+119,+8" xanchor=right yanchor=fixed [/slider] {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 +3 =+0 +90 +15 timeout income-box-topright fixed fixed} [label] id=time-icon #icon=themes/units.png icon=themes/sand-clock.png ref=timeout-box-center rect="=+1,=-1,+17,+17" xanchor=fixed 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,=,+65,+20" xanchor=fixed yanchor=fixed [/report_countdown] #enddef #define REPLAY_THEME FONT_SMALL_SIZE [replay] [add] [panel] id=replay-panel image=themes/editor/classic/toolbar.png ref=top-panel rect="=,+0,+842,+41" xanchor=left yanchor=fixed [/panel] [/add] [change] id=main-map ref=top-panel rect="=,+41,+842,768" [/change] [add] # Note, when I try to remove this, even updating the refs and the rect offsets in the logical way causes the buttons to be placed way to the right, so I'm just leaving this as a blank item. If someone can figure out the right way to get rid of this please do so. [label] id=replay-label text= "" ref=replay-panel rect="=+3,=+10,0,=-4" #font_size={FONT_NORMAL_SIZE} font_rgb=160,160,160 xanchor=fixed yanchor=fixed [/label] [/add] [add] [action] id=button-playreplay ref=replay-label type=image image=button_square/button_square_30 overlay=icons/action/play_30 title= _ "Play" tooltip= _ "continuous replay" items=playreplay rect="+4,=-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= _ "Stop" tooltip= _ "pause at end of turn" 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= _ "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,=,+23,=" xanchor=fixed yanchor=fixed [/action] [/add] [add] [menu] id=show-what ref=button-nextside 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=skip-animation ref=show-what 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 at end of turn" 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