editor2 theme update

This commit is contained in:
Tomasz Śniatowski 2008-07-13 17:07:20 +01:00
parent e7f4b2d7f3
commit e2f894b844

View file

@ -171,6 +171,11 @@
is_context_menu=true
items=editor-cut,editor-copy,editor-paste,editor-selection-rotate,editor-selection-flip,editor-selection-generate,editor-selection-randomize
[/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
@ -190,26 +195,11 @@
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,="
ref=menu-editor-help
rect="+5,=+1,+71,+19"
xanchor=fixed
yanchor=fixed
[/panel]
@ -220,52 +210,9 @@
xanchor=fixed
yanchor=fixed
[/panel]
[panel]
id=upkeep-panel
image=themes/status-bg.png
rect="+5,=,+90,="
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
@ -284,24 +231,6 @@
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
@ -313,35 +242,6 @@
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}
@ -362,26 +262,6 @@
prefix=
prefix_literal=""
[/num_units]
[upkeep]
id=status-upkeep
font_size={DEFAULT_FONT_SMALL}
ref=upkeep-icon
rect="+4,=,+50,+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}}
@ -493,26 +373,6 @@
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]
# current position not usable, overlays with the status indication (like slow)
# please find a better place (yes, I know that this is barely possible...)
# [unit_side]
@ -531,545 +391,8 @@
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]
# 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=1000x620
inherits=1024x768
width=1000
height=620
# adjust allowed heigth for displaying weapon stuff, otherwise the weapon names might appear on top of the end turn button
[change]
id=unit-weapons
ref=unit-moves
font_size={DEFAULT_FONT_SMALL}
rect="=,+0,=,585"
[/change]
[/partialresolution]
[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,=,575"
[/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]