src/inventory/inventory.xml
author Matthias Mann
Sat Feb 11 13:27:12 2012 +0100 (3 months ago)
changeset 262 f896aec65113
parent 233 4b99c5e5bd83
permissions -rw-r--r--
allow mouse input for scrolling, don't update text area model when nothing has changed
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <!DOCTYPE themes PUBLIC "-//www.matthiasmann.de//TWL-Theme//EN" "http://hg.l33tlabs.org/twl/raw-file/tip/src/de/matthiasmann/twl/theme/theme.dtd">
     3 <themes>
     4 
     5     <images file="../chat/chat.png" format="RGBA" filter="linear">
     6         <area name="white" xywh="1,1,1,1"/>
     7         <area name="tooltip.background" border="3" xywh="1,24,7,7" splitx="L3,R3" splity="T3,B3"/>
     8         <area name="evilframe.background" border="27,10,10,10" xywh="40,1,20,29" splitx="L5,R5" splity="T19,B5"/>
     9         
    10         <area name="-innerframe.background" splitx="2,3" splity="2,3" xywh="17,1,5,5"/>
    11         <select name="innerframe.background" border="2">
    12             <alias ref="-innerframe.background" if="disabled" tint="#888"/>
    13             <alias ref="-innerframe.background"/>
    14         </select>
    15         
    16         <composed name="itemslot.background" border="5" sizeOverwriteH="40" sizeOverwriteV="40">
    17             <alias ref="-innerframe.background"/>
    18             <alias ref="white" if="dropOk" tint="#80FFFFFF"/>
    19             <alias ref="white" if="dropBlocked" tint="#80FF0000"/>
    20         </composed>
    21     </images>
    22 
    23     <images file="../test/chaos_sphere_blue_800x600.png" format="RGB" filter="linear">
    24         <area name="background-image" xywh="0,0,800,600"/>
    25     </images>
    26     <images file="diamond.png">
    27         <area name="icon.green" xywh="3,0,28,31" center="true"/>
    28         <area name="icon.red" xywh="34,0,29,31" center="true"/>
    29         <area name="icon.blue" xywh="65,0,29,31" center="true"/>
    30         <area name="icon.yellow" xywh="97,0,28,31" center="true"/>
    31     </images>
    32 
    33     <include filename="../test/cursors.xml"/>
    34 
    35     <fontDef name="normal" filename="../test/font.fnt" color="white">
    36         <fontParam if="error" color="red"/>
    37         <fontParam if="disabled" color="gray"/>
    38         <fontParam if="textSelection" color="blue"/>
    39     </fontDef>
    40     <fontDef name="black" filename="../test/font.fnt" color="black"/>
    41 
    42     <fontDef name="button" filename="../test/font.fnt" color="white">
    43         <fontParam if="disabled" color="gray"/>
    44         <fontParam if="pressed" offsetX="1" offsetY="1"/>
    45     </fontDef>
    46     
    47     <inputMapDef name="-defaultInputMap">
    48         <action name="selectAll">ctrl A</action>
    49         <action name="cut">ctrl X</action>
    50         <action name="copy">ctrl C</action>
    51         <action name="paste">ctrl V</action>
    52     </inputMapDef>
    53 
    54     <theme name="-defaults">
    55         <param name="background"><image>none</image></param>
    56         <param name="overlay"><image>none</image></param>
    57         <param name="font"><font>normal</font></param>
    58         <param name="textAlignment"><enum type="alignment">left</enum></param>
    59         <param name="minWidth"><int>0</int></param>
    60         <param name="minHeight"><int>0</int></param>
    61         <param name="maxWidth"><int>0</int></param>
    62         <param name="maxHeight"><int>0</int></param>
    63         <param name="inputMap"><inputMap>-defaultInputMap</inputMap></param>
    64         <!-- a wildcard in the base theme allows to make a flat theme -->
    65         <theme name="" ref="*"/>
    66     </theme>
    67 
    68     <theme name="fpscounter" ref="-defaults" allowWildcard="true">
    69         <param name="tooltip"><string>Current FPS</string></param>
    70     </theme>
    71 
    72     <theme name="label" ref="-defaults" allowWildcard="true"/>
    73     
    74     <theme name="button" ref="-defaults" allowWildcard="true">
    75         <param name="background"><image>innerframe.background</image></param>
    76         <param name="border"><border>background.border</border></param>
    77         <param name="font"><font>button</font></param>
    78     </theme>
    79     
    80     <theme name="tooltipwindow" ref="-defaults">
    81         <param name="background"><image>tooltip.background</image></param>
    82         <param name="border"><border>5</border></param>
    83         <param name="fadeInTime"><int>0</int></param>
    84         <theme name="label" ref="-defaults">
    85             <param name="font"><font>black</font></param>
    86         </theme>
    87     </theme>
    88 
    89     <theme name="resizableframe" ref="-defaults" allowWildcard="true">
    90         <param name="background"><image>evilframe.background</image></param>
    91         <param name="border"><border>background.border</border></param>
    92         <param name="titleAreaTop"><int>1</int></param>
    93         <param name="titleAreaLeft"><int>8</int></param>
    94         <param name="titleAreaRight"><int>-8</int></param>
    95         <param name="titleAreaBottom"><int>15</int></param>
    96         <param name="hasCloseButton"><bool>false</bool></param>
    97         <param name="closeButtonX"><int>0</int></param>
    98         <param name="closeButtonY"><int>0</int></param>
    99         <param name="hasResizeHandle"><bool>false</bool></param>
   100         <param name="resizeHandleX"><int>0</int></param>
   101         <param name="resizeHandleY"><int>0</int></param>
   102         <param name="fadeColorInactive"><color>white</color></param>
   103         <param name="fadeDurationActivate"><int>0</int></param>
   104         <param name="fadeDurationDeactivate"><int>0</int></param>
   105         <param name="fadeDurationShow"><int>0</int></param>
   106         <param name="fadeDurationHide"><int>0</int></param>
   107         <param name="mouseCursor"><cursor>arrow.*</cursor></param>
   108         <theme name="title" ref="-defaults">
   109             <param name="textAlignment"><enum type="alignment">left</enum></param>
   110             <param name="font"><font>black</font></param>
   111         </theme>
   112         <theme name="closeButton" ref="-defaults"/>
   113         <theme name="resizeHandle" ref="-defaults"/>
   114     </theme>
   115     
   116     <theme name="inventorydemo" ref="-defaults">
   117         <param name="background"><image>background-image</image></param>
   118     </theme>
   119 
   120     <theme name="inventorypanel" ref="-defaults" allowWildcard="true">
   121         <param name="slotSpacing"><int>5</int></param>
   122     </theme>
   123     
   124     <theme name="itemslot" ref="-defaults" allowWildcard="true">
   125         <param name="background"><image>itemslot.background</image></param>
   126         <param name="border"><border>background.border</border></param>
   127         <param name="icons"><map>
   128             <param name=""><image>icon.*</image></param>
   129         </map></param>
   130     </theme>
   131     
   132 </themes>