#textdomain wesnoth # wmlscope: set export=no # some information about how theming works (especially the coordinates # defined with rect=): # http://www.wesnoth.org/forum/viewtopic.php?p=213708#213708 [theme] name=null [resolution] width=1 height=1 [/resolution] [/theme] [theme] name=Default #define DEFAULT_FONT_NORMAL 14 #enddef #define DEFAULT_FONT_SMALL 12 #enddef #define DEFAULT_FONT_TINY 10 #enddef #define DEFAULT_FONT_REALLYTINY 9 #enddef #define DEFAULT_FONT320_NORMAL 8 #enddef #define DEFAULT_FONT320_SMALL 7 #enddef #define DEFAULT_FONT320_TINY 7 #enddef {themes/macros.cfg} [resolution] id=1024x768 width=1024 height=768 [screen] # this is only useful as a ref for other rects id=screen rect="0,0,1024,768" [/screen] [panel] id=top-panel image=themes/top-bg.png ref=screen rect="=,=,=,+26" xanchor=top yanchor=fixed [/panel] [main_map] id=main-map rect="=,+0,+882,768" xanchor=left yanchor=top [/main_map] [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" 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] # rightside panel [panel] id=top-right-panel image=themes/rightside.png rect="+0,=+0,1024,+284" xanchor=right yanchor=fixed [/panel] [panel] id=middle-right-panel image=themes/rightside-bg.png rect="=,+0,=,+421" xanchor=right yanchor=top [/panel] [panel] id=bottom-right-panel image=themes/rightside-bottom.png rect="=,+0,=,768" xanchor=right yanchor=bottom [/panel] [menu] id=menu-main title= _ "Menu" image=lite items=objectives,statistics,unitlist,statustable,save,savereplay,savemap,load,preferences,chatlog,AUTOSAVES,help,quit ref=top-panel rect="=+3,=+1,+100,=-4" xanchor=fixed yanchor=fixed [/menu] [menu] id=actions-menu title= _ "Actions" image=lite items=undo,redo,cycle,speak,recruit,recall,showenemymoves,bestenemymoves,delayshroud,updateshroud,endturn rect="+2,=,+100,=" xanchor=fixed yanchor=fixed [/menu] [menu] is_context_menu=true items=wml,undo,redo,describeunit,renameunit,createunit,changeside,labelteamterrain,labelterrain,clearlabels,speak,continue,recruit,recall,delayshroud,updateshroud,cycle,endturn [/menu] [mini_map] id=mini-map ref=top-right-panel rect="=+10,=+7,=-7,+143" xanchor=right yanchor=fixed [/mini_map] [menu] id=button-endturn title= _ "End Turn" title2= _ "End Scenario" items=endturn ref=bottom-right-panel rect="=+17,=+7,+80,+20" xanchor=right yanchor=bottom [/menu] [panel] id=turn-panel image=themes/status-bg.png ref=actions-menu rect="+5,=+1,+80,+19" xanchor=fixed yanchor=fixed [/panel] [panel] id=gold-panel image=themes/status-bg.png rect="+5,=,+71,=" xanchor=fixed yanchor=fixed [/panel] [panel] id=villages-panel image=themes/status-bg.png rect="+5,=,+71,=" xanchor=fixed yanchor=fixed [/panel] [panel] id=units-panel image=themes/status-bg.png rect="+5,=,+71,=" xanchor=fixed yanchor=fixed [/panel] [panel] id=upkeep-panel image=themes/status-bg.png rect="+5,=,+80,=" xanchor=fixed yanchor=fixed [/panel] [panel] id=income-panel image=themes/status-bg.png rect="+5,=,+80,=" xanchor=fixed yanchor=fixed [/panel] {COUNTDOWN_THEME} # HP/XP [label] id=label-hp font_size={DEFAULT_FONT_TINY} text= _ "HP" ref=top-right-panel rect="=+84,=+209,+54,+12" xanchor=right yanchor=fixed [/label] [label] id=label-xp font_size={DEFAULT_FONT_TINY} text= _ "XP" # FIXME: should be ref=unit-hp rect="=,+14,=,+12" xanchor=right yanchor=fixed [/label] [label] id=gold-icon icon=themes/gold.png text= _ "gold" ref=gold-panel rect="=+5,=+1,+17,+17" xanchor=fixed yanchor=fixed [/label] [label] id=villages-icon icon=themes/villages.png text= _ "villages" ref=villages-panel rect="=+5,=+1,+17,+17" xanchor=fixed yanchor=fixed [/label] [label] id=units-icon icon=themes/units.png text= _ "units" ref=units-panel rect="=+5,=+1,+17,+17" xanchor=fixed yanchor=fixed [/label] [label] id=upkeep-icon icon=themes/upkeep.png text= _ "upkeep" ref=upkeep-panel rect="=+5,=+1,+25,+17" xanchor=fixed yanchor=fixed [/label] [label] id=income-icon icon=themes/income.png text= _ "income" ref=income-panel rect="=+5,=+1,+25,+17" xanchor=fixed yanchor=fixed [/label] [status] # the time of day image [time_of_day] id=image-tod ref=top-right-panel rect="=+10,=+159,=-7,+39" xanchor=right yanchor=fixed [/time_of_day] #put the side playing indicator next to the turn indicator [side_playing] id=icon-sideplaying ref=turn-panel rect="=+3,=+2,+25,+17" xanchor=fixed yanchor=fixed [/side_playing] # the game status [turn] id=turn font_size={DEFAULT_FONT_SMALL} rect="+4,=,+55,+16" xanchor=fixed yanchor=fixed prefix= prefix_literal="" [/turn] [gold] id=gold font_size={DEFAULT_FONT_SMALL} ref=gold-icon rect="+4,=,+55,+16" xanchor=fixed yanchor=fixed prefix= prefix_literal="" [/gold] [villages] id=villages font_size={DEFAULT_FONT_SMALL} ref=villages-icon rect="+4,=,+55,+16" xanchor=fixed yanchor=fixed prefix= prefix_literal="" [/villages] [num_units] id=num-units font_size={DEFAULT_FONT_SMALL} ref=units-icon rect="+4,=,+55,+16" xanchor=fixed yanchor=fixed prefix= prefix_literal="" [/num_units] [upkeep] id=status-upkeep font_size={DEFAULT_FONT_SMALL} ref=upkeep-icon rect="+4,=,+40,+16" xanchor=fixed yanchor=fixed prefix= prefix_literal="" [/upkeep] [income] id=status-income font_size={DEFAULT_FONT_SMALL} ref=income-icon rect="+4,=,+40,+16" xanchor=fixed yanchor=fixed prefix= prefix_literal="" [/income] {COUNTDOWN_THEME_STATUS {DEFAULT_FONT_SMALL}} # This panel encloses the location information displays and the # observer icon. This separate container is used so that we can # make the terrain name display stretch to fill all available space # so that the long strings don't get cut off as easily. [panel] id=terrain-panel rect="+0,=,1024,=" xanchor=left yanchor=fixed [/panel] # The size of these rectangles only accommodates hex coordinates # up to 99. If either is over that maximum the movement cost will # be pushed off the right end. [position] id=status-position font_size={DEFAULT_FONT_SMALL} ref=terrain-panel rect="=+15,=,+95,=" xanchor=fixed yanchor=fixed [/position] [terrain] id=status-terrain font_size={DEFAULT_FONT_SMALL} ref=terrain-panel rect="=+115,=,=-24,=" xanchor=left yanchor=fixed [/terrain] [observers] id=observers font_size={DEFAULT_FONT_SMALL} rect="+4,=,+16,+16" xanchor=right yanchor=fixed [/observers] #unit stats here [unit_image] id=unit-image ref=top-right-panel rect="=+9,=+215,+72,+72" xanchor=right yanchor=fixed [/unit_image] [unit_description] id=unit-description font_size={DEFAULT_FONT_NORMAL} ref=middle-right-panel rect="=+9,=+3,=-2,+18" xanchor=right yanchor=fixed [/unit_description] [unit_type] id=unit-type font_size={DEFAULT_FONT_SMALL} rect="=,+0,=,+16" xanchor=right yanchor=fixed [/unit_type] [unit_race] id=unit-race font_size={DEFAULT_FONT_SMALL} rect="=,+0,=,+16" xanchor=right yanchor=fixed [/unit_race] [unit_level] id=unit-level font_size={DEFAULT_FONT_SMALL} rect="=,+0,=,+16" prefix= _ "statuspanel^level" prefix_literal=" " xanchor=right yanchor=fixed [/unit_level] [unit_alignment] id=unit-alignment font_size={DEFAULT_FONT_SMALL} rect="=,+0,=,+16" xanchor=right yanchor=fixed [/unit_alignment] [unit_traits] id=unit-traits font_size={DEFAULT_FONT_SMALL} rect="=,+0,=,+16" xanchor=right yanchor=fixed [/unit_traits] [unit_abilities] id=unit-abilities font_size={DEFAULT_FONT_SMALL} rect="=,+0,=,+16" xanchor=right yanchor=fixed [/unit_abilities] [unit_moves] id=unit-moves font_size={DEFAULT_FONT_SMALL} ref=unit-abilities rect="=,+0,=+2,+16" prefix= _ "statuspanel^movement" prefix_literal=": " xanchor=right yanchor=fixed [/unit_moves] [unit_hp] id=unit-hp font_size={DEFAULT_FONT_SMALL} ref=label-hp rect="=,+0,+54,+14" #prefix=hp #prefix_literal=" " xanchor=right yanchor=fixed [/unit_hp] [unit_xp] id=unit-xp font_size={DEFAULT_FONT_SMALL} ref=label-xp rect="=,+0,+54,+14" #prefix=xp #prefix_literal=" " xanchor=right yanchor=fixed [/unit_xp] [unit_weapons] id=unit-weapons font_size={DEFAULT_FONT_SMALL} ref=unit-moves rect="=+0,+0,=,730" xanchor=right yanchor=top [/unit_weapons] [unit_status] id=unit-status font_size={DEFAULT_FONT_SMALL} ref=unit-xp rect="=+1,+3,=,+16" xanchor=right yanchor=fixed [/unit_status] [/status] {REPLAY_THEME DEFAULT_FONT_SMALL} [/resolution] # make sure not to use those if tinygui is set, otherwise it will look strange (it will look strange starting at 1024x768 this way) #ifndef TINY [partialresolution] id=800x600 inherits=1024x768 width=800 height=600 # some changes to the display to have stuff look better on 800x600 # using a right pane with a smaller minimap to achieve this # use backgound with 40px less for minimap [change] id=top-right-panel image=themes/rightside-small.png rect="+0,=+0,1024,+244" [/change] # increase size in middle panel since minimap is 40px smaller # give it additional 10px and move the end-turn button down [change] id=middle-right-panel rect="=,+0,=,+471" [/change] # reduce vertical size of minimap by 40px [change] id=mini-map rect="=+10,=+7,=-7,+103" [/change] # shift tod image up by 40px rel to 768px [change] id=image-tod rect="=+10,=+119,=-7,+39" [/change] # fixing this one fixes HP/XP/unit status [change] id=label-hp font_size={DEFAULT_FONT_TINY} rect="=+84,=+169,+54,+12" [/change] # shift unit image up by 40px rel to 768px [change] id=unit-image rect="=+9,=+175,+72,+72" [/change] [change] id=button-endturn rect="=+17,=+3,+80,+20" [/change] # adjust allowed heigth for displaying weapon stuff [change] id=unit-weapons ref=unit-moves font_size={DEFAULT_FONT_SMALL} rect="=+0,+0,=,738" [/change] # fix top pane at 800x600 [change] id=turn-panel rect="+5,=+1,+80,+19" [/change] [change] id=gold-panel rect="+5,=,+61,=" [/change] [change] id=villages-panel rect="+5,=,+61,=" [/change] [change] id=units-panel rect="+5,=,+55,=" [/change] [change] id=upkeep-panel rect="+5,=,+80,=" [/change] [change] id=income-panel rect="+5,=,+55,=" [/change] [change] id=turn rect="+4,=,+55,+16" font_size={DEFAULT_FONT_TINY} [/change] [change] id=gold rect="+4,=,+45,+16" font_size={DEFAULT_FONT_TINY} [/change] [change] id=villages rect="+4,=,+45,+16" font_size={DEFAULT_FONT_TINY} [/change] [change] id=num-units rect="+4,=,+45,+16" font_size={DEFAULT_FONT_TINY} [/change] [change] id=status-upkeep rect="+4,=,+40,+16" font_size={DEFAULT_FONT_TINY} [/change] [change] id=status-income rect="+4,=,+30,+16" font_size={DEFAULT_FONT_TINY} [/change] [change] id=timeout-panel rect="+5,=,+55,=" [/change] [change] id=report_timeout font_size={DEFAULT_FONT_TINY} rect="+0,=,+35,+20" [/change] [change] id=status-position rect="=+5,=,+80,=" font_size={DEFAULT_FONT_TINY} [/change] [/partialresolution] [partialresolution] id=800x480 inherits=800x600 width=800 height=480 [remove] id=unit-race [/remove] # use smaller fonts to display things correctly when using a vertical resolution smaller than 600px [change] id=unit-description font_size={DEFAULT_FONT_SMALL} rect="=+9,=+3,=-2,+16" [/change] [change] id=unit-type font_size={DEFAULT_FONT_REALLYTINY} rect="=,+0,=,+11" [/change] # placing the unit level right of the alignment # doing it the other way around leads to a strange problem sometimes having the alingment not being displayed # this does not happen with this order [change] id=unit-level font_size={DEFAULT_FONT_REALLYTINY} rect="=+72,+0,=,+11" [/change] [change] id=unit-alignment font_size={DEFAULT_FONT_REALLYTINY} rect="=-72,=,=,+11" [/change] [change] id=unit-traits font_size={DEFAULT_FONT_REALLYTINY} rect="=,+0,=,+11" [/change] [change] id=unit-abilities font_size={DEFAULT_FONT_REALLYTINY} rect="=,+0,=,+11" [/change] [change] id=unit-moves font_size={DEFAULT_FONT_REALLYTINY} rect="=,+0,=,+11" [/change] [change] id=unit-weapons font_size={DEFAULT_FONT_REALLYTINY} rect="=,+0,=,455" [/change] [/partialresolution] #endif # Everything below is only relevant if tinygui is activated at compile time. Putting it into a #ifdef so that there is nothing to choke about if that is not the case #ifdef TINY [partialresolution] id=400x300 width=400 height=300 inherits=1024x768 [change] id=top-panel rect="=,=,=,+15" [/change] [change] id=main-map rect="=,+0,+953,768" [/change] [change] id=top-right-panel rect="+0,=-1,1024,+125" [/change] [change] id=middle-right-panel rect="=,+0,=,+610" [/change] [change] id=menu-main rect="=,=,+5,=-2" [/change] [change] id=actions-menu rect="=+30,=,+5,=" [/change] [change] id=mini-map rect="=+5,=+3,=-4,+64" [/change] [add] [menu] id=zoom-in title="+" font_size={DEFAULT_FONT320_SMALL} items=zoomin ref=top-panel rect="997,=,5,=" xanchor=right yanchor=top [/menu] [menu] id=zoom-out title="-" font_size={DEFAULT_FONT320_SMALL} items=zoomout rect="=+15,=,5,=" xanchor=right yanchor=top [/menu] [/add] [change] id=button-endturn title= _ "End Turn" title2= _ "End Scenario" items=endturn ref=bottom-right-panel rect="=+14,=+3,+300,+14" [/change] [change] id=turn-panel ref=top-panel rect="=+175,=+1,+80,=-1" [/change] [change] id=gold-panel rect="+3,=,+90,=" [/change] [change] id=villages-panel rect="+3,=,+80,=" [/change] [change] id=units-panel rect="+3,=,+80,=" [/change] [change] id=upkeep-panel rect="+3,=,+90,=" [/change] [change] id=income-panel rect="+3,=,+80,=" [/change] [change] id=label-hp font_size={DEFAULT_FONT320_TINY} rect="=+42,=+93,+12,+8" [/change] [change] id=label-xp font_size={DEFAULT_FONT320_TINY} rect="=,+8,=,+8" [/change] [change] id=gold-icon rect="=+3,=+1,+16,+8" [/change] [change] id=villages-icon rect="=+4,=+1,+16,+8" [/change] [change] id=units-icon rect="=+3,=+1,+16,+8" [/change] [change] id=upkeep-icon rect="=+3,=+1,+16,+8" [/change] [change] id=income-icon rect="=+3,=+1,+16,+8" [/change] [change] id=image-tod rect="=+5,=+71,=-0,+17" [/change] [change] id=icon-sideplaying rect="=+3,=+1,+20,+8" [/change] # timer panel too big... [change] id=timeout-panel rect="+5,=,+90,=" [/change] [change] id=report_timeout font_size={DEFAULT_FONT320_SMALL} rect="+0,=,+62,+16" [/change] [change] id=time-icon rect="=+3,=+1,+16,+8" [/change] # replay panel not wide enough, for the dirty hacks used see data/themes/macros.cfg # adjust top bar [change] id=turn font_size={DEFAULT_FONT320_SMALL} rect="+4,=,+58,+8" [/change] [change] id=gold font_size={DEFAULT_FONT320_SMALL} rect="+10,=,+58,+8" [/change] [change] id=villages font_size={DEFAULT_FONT320_SMALL} rect="+10,=,+58,+8" [/change] [change] id=num-units font_size={DEFAULT_FONT320_SMALL} rect="+10,=,+58,+8" [/change] [change] id=status-upkeep font_size={DEFAULT_FONT320_SMALL} rect="+10,=,+58,+8" [/change] [change] id=status-income font_size={DEFAULT_FONT320_SMALL} rect="+10,=,+58,+8" [/change] [remove] id=status-terrain [/remove] [change] id=status-position font_size={DEFAULT_FONT320_SMALL} rect="+10,=,+170,+12" [/change] [remove] id=observers rect="+5,=,+8,+8" [/remove] # adjust right pane [change] id=unit-image rect="=+5,=+92,+36,+36" [/change] [change] id=unit-description font_size={DEFAULT_FONT320_NORMAL} rect="=+6,=+2,=-2,+10" [/change] [change] id=unit-type font_size={DEFAULT_FONT320_SMALL} rect="=,+0,=,+8" [/change] [remove] id=unit-race [/remove] [change] id=unit-level font_size={DEFAULT_FONT320_SMALL} rect="=,+0,=,+8" [/change] [change] id=unit-alignment font_size={DEFAULT_FONT320_SMALL} rect="=,+0,=,+8" [/change] [change] id=unit-traits font_size={DEFAULT_FONT320_SMALL} rect="=,+0,=,+8" [/change] [change] id=unit-abilities font_size={DEFAULT_FONT320_SMALL} rect="=,+0,=,+8" [/change] [change] id=unit-moves font_size={DEFAULT_FONT320_SMALL} rect="=,+0,=,+8" [/change] [change] id=unit-hp font_size={DEFAULT_FONT320_SMALL} ref=label-hp rect="=,+0,+54,+8" [/change] [change] id=unit-xp font_size={DEFAULT_FONT320_SMALL} ref=label-xp rect="=,+0,+54,+8" [/change] [change] id=unit-weapons font_size={DEFAULT_FONT320_SMALL} rect="=,+0,=,768" [/change] [change] id=unit-status font_size={DEFAULT_FONT320_SMALL} ref=unit-level rect="=+36,=,=+36,+10" [/change] [/partialresolution] [partialresolution] id=320x240 width=320 height=240 inherits=400x300 [change] id=top-right-panel rect="+0,=-1,1024,+125" [/change] [change] id=middle-right-panel rect="=,+0,=,768" [/change] [remove] id=bottom-right-panel [/remove] [change] id=actions-menu title= _ "Act." rect="=+30,=,+5,=" [/change] [remove] id=status-position [/remove] [change] id=zoom-in rect="982,=,5,=" [/change] [change] id=zoom-out rect="=+15,=,5,=" [/change] # replace endturn button at the buttom right with a tiny one at the top right [remove] id=button-endturn title= _ "short end-turn^E." ref=top-panel rect="1008,=,=-2,=" yanchor=top [/remove] [add] [menu] id=button-endturn2 title= _ "short end-turn^E." title2= _ "End Scenario" items=endturn ref=top-panel rect="1008,=,=-2,=" xanchor=right yanchor=top [/menu] [/add] [/partialresolution] #endif [/theme]