[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_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=misc/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]

	# rightside panel
	[panel]
	id=top-right-panel
	image=misc/rightside.png
	rect="+0,=+0,1024,+284"
	xanchor=right
	yanchor=fixed
	[/panel]
	[panel]
	id=middle-right-panel
	image=misc/rightside-bg.png
	rect="=,+0,=,+421"
	xanchor=right
	yanchor=top
	[/panel]
	[panel]
	id=bottom-right-panel
	image=misc/rightside-bottom.png
	rect="=,+0,=,768"
	xanchor=right
	yanchor=bottom
	[/panel]

	[menu]
	id=menu-main
	title= _ "Menu"
	image=lite
	items=objectives,statistics,unitlist,separator,statustable,save,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"
	items=endturn
	ref=bottom-right-panel
        rect="=+17,=+7,+80,+20"
	xanchor=right
	yanchor=bottom
	[/menu]

	[panel]
	id=turn-panel
	image=misc/status-bg.png
	ref=actions-menu
	rect="+5,=+1,+80,+19"
	xanchor=proportional
	yanchor=fixed
	[/panel]
	[panel]
	id=gold-panel
	image=misc/status-bg.png
	rect="+5,=,+71,="
	xanchor=proportional
	yanchor=fixed
	[/panel]
	[panel]
	id=villages-panel
	image=misc/status-bg.png
	rect="+5,=,+71,="
	xanchor=proportional
	yanchor=fixed
	[/panel]
	[panel]
	id=units-panel
	image=misc/status-bg.png
	rect="+5,=,+71,="
	xanchor=proportional
	yanchor=fixed
	[/panel]
	[panel]
	id=upkeep-panel
	image=misc/status-bg.png
	rect="+5,=,+80,="
	xanchor=proportional
	yanchor=fixed
	[/panel]
	[panel]
	id=income-panel
	image=misc/status-bg.png
	rect="+5,=,+80,="
	xanchor=proportional
	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=misc/gold.png
	text= _ "gold"
	ref=gold-panel
	rect="=+5,=+1,+17,+17"
	xanchor=proportional
	yanchor=fixed
	[/label]
	[label]
	id=villages-icon
	icon=misc/villages.png
	text= _ "villages"
	ref=villages-panel
	rect="=+5,=+1,+17,+17"
	xanchor=proportional
	yanchor=fixed
	[/label]
	[label]
	id=units-icon
	icon=misc/units.png
	text= _ "units"
	ref=units-panel
	rect="=+5,=+1,+17,+17"
	xanchor=proportional
	yanchor=fixed
	[/label]
	[label]
	id=upkeep-icon
	icon=misc/upkeep.png
	text= _ "upkeep"
	ref=upkeep-panel
	rect="=+5,=+1,+25,+17"
	xanchor=proportional
	yanchor=fixed
	[/label]
	[label]
	id=income-icon
	icon=misc/income.png
	text= _ "income"
	ref=income-panel
	rect="=+5,=+1,+25,+17"
	xanchor=proportional
	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=proportional
		yanchor=fixed
		[/side_playing]

		# the game status
		[turn]
		id=turn
		font_size={DEFAULT_FONT_SMALL}
		rect="+4,=,+55,+16"
		xanchor=proportional
		yanchor=fixed
		prefix=
		prefix_literal=""
		[/turn]
		[gold]
		id=gold
		font_size={DEFAULT_FONT_SMALL}
		ref=gold-icon
		rect="+4,=,+55,+16"
		xanchor=proportional
		yanchor=fixed
		prefix=
		prefix_literal=""
		[/gold]
		[villages]
		id=villages
		font_size={DEFAULT_FONT_SMALL}
		ref=villages-icon
		rect="+4,=,+55,+16"
		xanchor=proportional
		yanchor=fixed
		prefix=
		prefix_literal=""
		[/villages]
		[num_units]
		id=num-units
		font_size={DEFAULT_FONT_SMALL}
		ref=units-icon
		rect="+4,=,+55,+16"
		xanchor=proportional
		yanchor=fixed
		prefix=
		prefix_literal=""
		[/num_units]
		[upkeep]
		id=status-upkeep
		font_size={DEFAULT_FONT_SMALL}
		ref=upkeep-icon
		rect="+4,=,+40,+16"
		xanchor=proportional
		yanchor=fixed
		prefix=
		prefix_literal=""
		[/upkeep]
		[income]
		id=status-income
		font_size={DEFAULT_FONT_SMALL}
		ref=income-icon
		rect="+4,=,+40,+16"
		xanchor=proportional
		yanchor=fixed
		prefix=
		prefix_literal=""
		[/income]

		{COUNTDOWN_THEME_STATUS {DEFAULT_FONT_SMALL}}

		[terrain]
		id=status-terrain
		font_size={DEFAULT_FONT_SMALL}
		rect="+10,=,+115,+16"
		xanchor=proportional
		yanchor=fixed
		[/terrain]
		[position]
		id=status-position
		font_size={DEFAULT_FONT_SMALL}
		rect="+5,=,+95,+16"
		xanchor=proportional
		yanchor=fixed
		[/position]

		[observers]
		id=observers
		font_size={DEFAULT_FONT_SMALL}
		rect="+4,=-1,+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_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,=,594"
		xanchor=right
		yanchor=fixed
		[/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]


[partialresolution]
id=1000x600
inherits=1024x768
width=1000
height=600
[/partialresolution]

[partialresolution]
id=800x600
inherits=1024x768
width=800
height=600

	[change]
	id=menu-main
	items=objectives,statistics,unitlist,statustable,save,load,preferences,chatlog,help,quit
	[/change]

	[change]
	id=turn-panel
	rect="+65,=+1,+100,+19"
	[/change]

	[change]
	id=upkeep-panel
	rect="+5,=,+100,="
	[/change]
	[change]
	id=income-panel
	rect="+5,=,+89,="
	[/change]

	[change]
	id=status-upkeep
	rect="+4,=,+55,+17"
	[/change]
	[change]
	id=status-income
	rect="+3,=,+45,+17"
	[/change]

	[remove]
	id=status-terrain
	[/remove]

	[change]
	id=status-position
	rect="+3,=,+125,+16"
	[/change]

	[change]
	id=observers
	rect="+6,=-1,+16,+16"
	[/change]

[/partialresolution]

[partialresolution]
width=320
height=240
inherits=800x600

	[change]
	id=top-panel
	rect="=,=,=,+15"
	[/change]

	[change]
	id=main-map
	rect="=,+0,+946,768"
	[/change]

	[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=menu-main
	rect="=,=,+5,=-2"
	[/change]

	[change]
	id=actions-menu
	title= _ "Act."
	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="982,=,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= _ "short end-turn^E."
	ref=top-panel
	rect="1008,=,=-2,="
	yanchor=top
	[/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="=+45,=+93,+12,+8"
	[/change]
	[change]
	id=label-xp
	font_size={DEFAULT_FONT320_TINY}
	ref=label-hp
	rect="=,+0,=,+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="=+9,=+71,=-0,+17"
	[/change]

	[change]
	id=icon-sideplaying
	rect="=+3,=+1,+8,+8"
	[/change]

	[change]
		id=turn
		font_size={DEFAULT_FONT320_SMALL}
		rect="+15,=,+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-position
		font_size={DEFAULT_FONT320_SMALL}
		rect="+15,=,+130,+8"
	[/remove]
	[remove]
		id=observers
		rect="+5,=,+8,+8"
	[/remove]
	[change]
		id=unit-image
		rect="=+12,=+100,+20,+20"
	[/change]
	[change]
		id=unit-description
		font_size={DEFAULT_FONT320_NORMAL}
		rect="=+6,=,=-2,+10"
	[/change]
	[change]
		id=unit-type
		font_size={DEFAULT_FONT320_SMALL}
		rect="=,+0,=,+8"
	[/change]
	[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,=,1022,+8"
	[/change]
	[change]
		id=unit-xp
		font_size={DEFAULT_FONT320_SMALL}
		ref=label-xp
		rect="+0,=,1022,+8"
	[/change]
	[change]
		id=unit-weapons
		font_size={DEFAULT_FONT320_SMALL}
		rect="=+8,+0,=,768"
	[/change]
	[change]
		id=unit-status
		font_size={DEFAULT_FONT320_SMALL}
		ref=label-xp
		rect="=+8,+2,=,+8"
	[/change]

[/partialresolution]

[/theme]
