<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE themes PUBLIC "-//www.matthiasmann.de//TWL-Theme//EN" "http://hg.l33tlabs.org/twl/raw-file/tip/src/de/matthiasmann/twl/theme/theme.dtd">
<themes>
    <images file="buttonbackgroundhl.png">
        <area name="-button.background.highlight" xywh="*"/>
    </images>

    <images file="buttonbackground.png" format="RGBA">
        <select name="button.background">
            <alias ref="-button.background.highlight" if="armed ^ selected"/>
            <area xywh="*"/>
        </select>
    </images>

    <images file="hbuttonbg.png" format="RGBA">
        <area name="-hbutton.background.highlight" xywh="*"/>
    </images>

    <images file="hbuttonbgb.png" format="RGBA">
        <select name="hbutton.background">
            <alias ref="-hbutton.background.highlight" if="armed ^ selected"/>
            <area xywh="*"/>
        </select>
    </images>

    <images file="basher.png" format="RGBA">
        <area name="-basher-0" xywh="0,32,32,32"/>

        <animation name="-basher-anim" timeSource="hover">
            <frame ref="-basher-0" duration="100"/>
            <frames count="11" offsetx="32" duration="100" xywh="32,32,32,32"/>
        </animation>

        <select name="button.basher.overlay" center="true">
            <alias ref="-basher-anim" if="hover | pressed"/>
            <alias ref="-basher-0"/>
        </select>
    </images>

    <images file="bomber.png" format="RGBA">
        <area name="-bomber-0" xywh="0,0,32,32"/>

        <animation name="-bomber-anim" timeSource="hover">
            <frame ref="-bomber-0" duration="100"/>
            <frames count="11" offsetx="32" duration="100" xywh="32,0,32,32"/>
        </animation>

        <select name="button.bomber.overlay" center="true">
            <alias ref="-bomber-anim" if="hover | pressed"/>
            <alias ref="-bomber-0"/>
        </select>
    </images>

    <images file="bridger.png" format="RGBA">
        <area name="-bridger-0" xywh="0,32,32,32"/>
        
        <animation name="-bridger-anim" timeSource="hover">
            <frame ref="-bridger-0" duration="100"/>
            <frames count="11" offsetx="32" duration="100" xywh="32,32,32,32"/>
        </animation>

        <select name="button.bridger.overlay" center="true">
            <alias ref="-bridger-anim" if="hover | pressed"/>
            <alias ref="-bridger-0"/>
        </select>
    </images>

    <images file="climber.png" format="RGBA">
        <area name="-climber-0" xywh="0,32,32,32"/>

        <animation name="-climber-anim" timeSource="hover">
            <frame ref="-climber-0" duration="100"/>
            <frames count="7" offsetx="32" duration="100" xywh="32,32,32,32"/>
        </animation>

        <select name="button.climber.overlay" center="true">
            <alias ref="-climber-anim" if="hover | pressed"/>
            <alias ref="-climber-0"/>
        </select>
    </images>

    <images file="miner.png" format="RGBA">
        <area name="-miner-0" xywh="0,32,32,32"/>

        <animation name="-miner-anim" timeSource="hover">
            <frame ref="-miner-0" duration="100"/>
            <frames count="11" offsetx="32" duration="100" xywh="32,32,32,32"/>
        </animation>

        <select name="button.miner.overlay" center="true">
            <alias ref="-miner-anim" if="hover | pressed"/>
            <alias ref="-miner-0"/>
        </select>
    </images>

    <images file="digger.png" format="RGBA">
        <area name="-digger-0" xywh="0,0,32,32"/>

        <animation name="-digger-anim" timeSource="hover">
            <frame ref="-digger-0" duration="100"/>
            <frames count="13" offsetx="32" duration="100" xywh="32,0,32,32"/>
        </animation>

        <select name="button.digger.overlay" center="true">
            <alias ref="-digger-anim" if="hover | pressed"/>
            <alias ref="-digger-0"/>
        </select>
    </images>

    <images file="floater.png" format="RGBA">
        <area name="-floater-0" xywh="0,0,32,32"/>

        <animation name="-floater-anim" timeSource="hover">
            <frame ref="-floater-0" duration="100"/>
            <frames count="7" offsetx="32" duration="100" xywh="32,0,32,32"/>
        </animation>

        <select name="button.floater.overlay" center="true">
            <alias ref="-floater-anim" if="hover | pressed"/>
            <alias ref="-floater-0"/>
        </select>
    </images>

    <images file="blocker.png" format="RGBA">
        <area name="-blocker-0" xywh="0,0,32,32"/>

        <animation name="-blocker-anim" timeSource="hover">
            <frame ref="-blocker-0" duration="150"/>
            <frames count="5" offsetx="32" duration="150" xywh="32,0,32,32"/>
        </animation>

        <select name="button.blocker.overlay" center="true">
            <alias ref="-blocker-anim" if="hover | pressed"/>
            <alias ref="-blocker-0"/>
        </select>
    </images>

    <images file="pause.png" format="RGBA">
        <area name="button.pause.overlay" center="true" xywh="*"/>
    </images>

    <images file="armageddon_anim.png" format="RGBA">
        <area name="-armageddon-0" xywh="0,0,36,57"/>

        <animation name="-armageddon-anim" timeSource="hover">
            <frame ref="-armageddon-0" duration="100"/>
            <frames count="13" offsetx="36" duration="100" xywh="36,0,36,57"/>
        </animation>

        <select name="button.armageddon.overlay" center="true">
            <alias ref="-armageddon-anim" if="hover | pressed"/>
            <alias ref="-armageddon-0"/>
        </select>
    </images>

    <images file="../test/simple.png" format="RGBA">
        <area name="-borderG" border="3" xywh="60,0,9,9" splitx="L3,R3" splity="T3,B3"/>
        <area name="white" xywh="23,3,1,1"/>
    </images>

    <images file="../test/chaos_sphere_blue_800x600.png" format="RGB" filter="linear">
        <area name="background-image" xywh="*"/>
    </images>
    <images file="icon-gold-star-small.png">
        <area name="-gold-star" xywh="1,2,32,32"/>
        <select name="gold-star">
            <alias ref="-gold-star" if="hover"/>
            <alias ref="-gold-star" tint="#7F7F7F"/>
        </select>
    
        <alias name="radialpopupmenu.background" ref="white" tint="#803F3F3F"/>
    </images>
    
    <images file="wheel.png">
        <area name="wheel.background" xywh="0,0,5,3" splitx="L2,R2" border="2,0"/>
        <area name="wheel.overlay" xywh="1,5,1,26"/>
        <area name="wheel.selectedOverlay" xywh="5,5,1,26" splity="T1,B1"/>
    </images>


    <fontDef name="normal" filename="../test/font.fnt" color="white">
        <fontParam if="error" color="red"/>
        <fontParam if="disabled" color="gray"/>
        <fontParam if="textSelection" color="blue"/>
    </fontDef>
    
    <fontDef name="wheel" filename="../textarea/bigfont.fnt" color="#000000"/>

    <inputMapDef name="-defaultInputMap">
        <action name="selectAll">ctrl A</action>
        <action name="cut">ctrl X</action>
        <action name="copy">ctrl C</action>
        <action name="paste">ctrl V</action>
    </inputMapDef>

    <theme name="-defaults">
        <param name="background"><image>none</image></param>
        <param name="overlay"><image>none</image></param>
        <param name="font"><font>normal</font></param>
        <param name="textAlignment"><enum type="alignment">left</enum></param>
        <param name="minWidth"><int>0</int></param>
        <param name="minHeight"><int>0</int></param>
        <param name="maxWidth"><int>0</int></param>
        <param name="maxHeight"><int>0</int></param>
        <param name="inputMap"><inputMap>-defaultInputMap</inputMap></param>
    </theme>

    <theme name="button" ref="-defaults" allowWildcard="true">
        <param name=""><image>button.*</image></param>
        <param name="border"><border>background.border</border></param>
        <param name="textAlignment"><enum type="alignment">center</enum></param>
    </theme>

    <theme name="hbutton" ref="button" allowWildcard="true">
        <param name=""><image>hbutton.*</image></param>
        <param name="border"><border>background.border</border></param>
    </theme>

    <theme name="label" ref="-defaults" allowWildcard="true">
    </theme>

    <theme name="tooltipwindow" ref="-defaults">
        <param name="background"><image>-borderG</image></param>
        <param name="border"><border>background.border</border></param>
        <param name="fadeInTime"><int>0</int></param>
        <theme name="label" ref="label">
            <param name="font"><fontDef filename="../test/font.fnt" color="black"/></param>
        </theme>
    </theme>

    <theme name="radialpopupmenu" ref="-defaults">
        <theme name="star" ref="-defaults">
            <param name="background"><image>gold-star</image></param>
        </theme>
        <param name="background"><image>radialpopupmenu.background</image></param>
        <param name="buttonRadius"><int>16</int></param>
        <param name="radius"><int>55</int></param>
        <param name="border"><border>5</border></param>
    </theme>

    <theme name="wheelwidget" ref="-defaults">
        <param name=""><image>wheel.*</image></param>
        <param name="border"><border>background.border</border></param>
        <theme name="stringitemrenderer" ref="label">
            <param name="font"><font>wheel</font></param>
        </theme>
        <param name="itemHeight"><int>stringitemrenderer.font.lineHeight</int></param>
        <param name="visibleItems"><int>4</int></param>
    </theme>
    
    <theme name="gameuidemo" ref="-defaults">
        <param name="background"><image>background-image</image></param>
        
        <theme name="pingu-basher" ref="button">
            <param name=""><image>button.basher.*</image></param>
            <param name="border"><border>background.border</border></param>
            <param name="tooltip"><string>Basher</string></param>
        </theme>
        <theme name="pingu-bomber" ref="button">
            <param name=""><image>button.bomber.*</image></param>
            <param name="border"><border>background.border</border></param>
            <param name="tooltip"><string>al-Qaida?</string></param>
        </theme>
        <theme name="pingu-bridger" ref="button">
            <param name=""><image>button.bridger.*</image></param>
            <param name="border"><border>background.border</border></param>
            <param name="tooltip"><string>Bridger</string></param>
        </theme>
        <theme name="pingu-climber" ref="button">
            <param name=""><image>button.climber.*</image></param>
            <param name="border"><border>background.border</border></param>
            <param name="tooltip"><string>Climber</string></param>
        </theme>
        <theme name="pingu-floater" ref="button">
            <param name=""><image>button.floater.*</image></param>
            <param name="border"><border>background.border</border></param>
            <param name="tooltip"><string>Floater</string></param>
        </theme>
        <theme name="pingu-blocker" ref="button">
            <param name=""><image>button.blocker.*</image></param>
            <param name="border"><border>background.border</border></param>
            <param name="tooltip"><string>Blocker</string></param>
        </theme>
        <theme name="pingu-digger" ref="button">
            <param name=""><image>button.digger.*</image></param>
            <param name="border"><border>background.border</border></param>
            <param name="tooltip"><string>Digger</string></param>
        </theme>
        <theme name="pingu-miner" ref="button">
            <param name=""><image>button.miner.*</image></param>
            <param name="border"><border>background.border</border></param>
            <param name="tooltip"><string>Miner</string></param>
        </theme>
        <theme name="pause" ref="hbutton">
            <param name=""><image>button.pause.*</image></param>
            <param name="border"><border>background.border</border></param>
            <param name="tooltip"><string>Pause the game</string></param>
        </theme>
        <theme name="armageddon" ref="hbutton">
            <param name=""><image>button.armageddon.*</image></param>
            <param name="border"><border>background.border</border></param>
            <param name="tooltip"><string>ARMAGEDDON !!</string></param>
        </theme>
        <theme name="fpscounter" ref="label"/>
        <theme name="" ref="*"/>
    </theme>

    <theme name="gameuidemo2" ref="gameuidemo">
        <param name="defaultGap"><dimension>5,5</dimension></param>
        <param name="smallGap"><dimension>5,5</dimension></param>
        <param name="mediumGap"><dimension>10,10</dimension></param>
        <param name="largeGap"><dimension>15,15</dimension></param>
        <param name="namedGaps"><map>
            <param name="actionButtonsLeft"><gap>10</gap></param>
            <param name="actionButtonsTop"><gap>40</gap></param>
            <param name="gameCtrlRight"><gap>15</gap></param>
            <param name="gameCtrlTop"><gap>10</gap></param>
            <param name="statusRight"><gap>0</gap></param>
            <param name="statusBottom"><gap>0</gap></param>
        </map></param>
    </theme>
</themes>

