1
0
forked from 0ad/0ad

no message

This was SVN commit r132.
This commit is contained in:
Gee 2003-12-01 07:59:17 +00:00
parent d082065d71
commit 250f9009bc
5 changed files with 165 additions and 9 deletions

View File

@ -4,12 +4,40 @@
<objects>
<object name="Child" type="button" size="100%-50 100%-50 100%-5 100%-5" z="22"> 100
<object
name="Child1"
type="button"
style="button"
size="100%-140 10 100%-10 140"
z="200"
/>
</object>
<object
name="Child2"
type="button"
style="button"
size="10 10 140 40"
z="200"
/>
<object name="Child2" type="button" size="50% + 20 50% + 20 50% + 100 50% + 100" z="200" />
<object
name="Child3"
type="button"
style="button"
size="150 10 280 40"
z="200"
/>
<object
name="Child4"
type="button"
sprite="sprite1"
sprite-over="sprite1-over"
sprite-pressed="sprite1-pressed"
size="290 10 420 40"
z="200"
/>
<object name="a1" type="button" size="50% 0 100% 50" z="20">
<object name="a2" type="button" size="-100 10 11 40" z="22" absolute="false"/>

View File

@ -4,6 +4,86 @@
<sprites>
<sprite name="sprite1">
<image texture="t1" />
<!-- Starting with top left corner continuing in a clockwise manner -->
<image backcolor="255 250 204" size="0 0 2 2" />
<image backcolor="236 207 130" size="2 0 100%-2 2" />
<image backcolor="176 150 72" size="100%-2 0 100% 2" />
<image backcolor="126 107 52" size="100%-2 2 100% 100%-2" />
<image backcolor="87 74 36" size="100%-2 100%-2 100% 100%" />
<image backcolor="126 107 52" size="2 100%-2 100%-2 100%" />
<image backcolor="176 150 72" size="0 100%-2 2 100%" />
<image backcolor="236 207 130" size="0 2 2 100%-2" />
<!-- middle -->
<image backcolor="176 150 72" size="2 2 100%-2 100%-2" />
</sprite>
<sprite name="sprite1-pressed">
<!-- Starting with top left corner continuing in a clockwise manner -->
<image backcolor="52 9 9" size="0 0 2 2" />
<image backcolor="109 18 18" size="2 0 100%-2 2" />
<image backcolor="176 37 37" size="100%-2 0 100% 2" />
<image backcolor="255 54 54" size="100%-2 2 100% 100%-2" />
<image backcolor="255 105 105" size="100%-2 100%-2 100% 100%" />
<image backcolor="255 54 54" size="2 100%-2 100%-2 100%" />
<image backcolor="176 37 37" size="0 100%-2 2 100%" />
<image backcolor="109 18 18" size="0 2 2 100%-2" />
<!-- middle -->
<image backcolor="176 37 37" size="2 2 100%-2 100%-2" />
</sprite>
<sprite name="sprite1-over">
<!-- Starting with top left corner continuing in a clockwise manner -->
<image backcolor="255 105 105" size="0 0 2 2" />
<image backcolor="255 54 54" size="2 0 100%-2 2" />
<image backcolor="176 37 37" size="100%-2 0 100% 2" />
<image backcolor="109 18 18" size="100%-2 2 100% 100%-2" />
<image backcolor="52 9 9" size="100%-2 100%-2 100% 100%" />
<image backcolor="109 18 18" size="2 100%-2 100%-2 100%" />
<image backcolor="176 37 37" size="0 100%-2 2 100%" />
<image backcolor="255 54 54" size="0 2 2 100%-2" />
<!-- middle -->
<image backcolor="176 37 37" size="2 2 100%-2 100%-2" />
</sprite>
<sprite name="sprite2">
<!-- Starting with top left corner continuing in a counter-clockwise manner -->
<image backcolor="255 0 0" size="0 0 20 20" />
<image backcolor="0 255 0" size="20 0 100%-20 20" />
<image backcolor="0 0 255" size="100%-20 0 100% 20" />
<image backcolor="255 255 0" size="100%-20 20 100% 100%-20" />
<image backcolor="255 0 255" size="100%-20 100%-20 100% 100%" />
<image backcolor="0 255 255" size="20 100%-20 100%-20 100%" />
<image backcolor="128 128 0" size="0 100%-20 20 100%" />
<image backcolor="0 0 128" size="0 20 20 100%-20" />
<!-- middle -->
<image backcolor="255 255 255" size="20 20 100%-20 100%-20" />
</sprite>
<sprite name="sprite2-over">
<!-- Starting with top left corner continuing in a counter-clockwise manner -->
<image backcolor="128 0 0" size="0 0 20 20" />
<image backcolor="0 128 0" size="20 0 100%-20 20" />
<image backcolor="0 0 128" size="100%-20 0 100% 20" />
<image backcolor="128 128 0" size="100%-20 20 100% 100%-20" />
<image backcolor="128 0 128" size="100%-20 100%-20 100% 100%" />
<image backcolor="0 128 128" size="20 100%-20 100%-20 100%" />
<image backcolor="64 64 0" size="0 100%-20 20 100%" />
<image backcolor="0 0 64" size="0 20 20 100%-20" />
<!-- middle -->
<image backcolor="255 255 255" size="20 20 100%-20 100%-20" />
</sprite>
<sprite name="sprite2-pressed">
<!-- Starting with top left corner continuing in a counter-clockwise manner -->
<image backcolor="128 0 0" size="0 0 20 20" />
<image backcolor="0 128 0" size="20 0 100%-20 20" />
<image backcolor="0 0 128" size="100%-20 0 100% 20" />
<image backcolor="128 128 0" size="100%-20 20 100% 100%-20" />
<image backcolor="128 0 128" size="100%-20 100%-20 100% 100%" />
<image backcolor="0 128 128" size="20 100%-20 100%-20 100%" />
<image backcolor="64 64 0" size="0 100%-20 20 100%" />
<image backcolor="0 0 64" size="0 20 20 100%-20" />
<!-- middle -->
<image backcolor="255 0 0" size="20 20 100%-20 100%-20" />
</sprite>
</sprites>

View File

@ -19,10 +19,8 @@
<image>
-->
<!ATTLIST image texture CDATA #IMPLIED>
<!ATTLIST image pixel CDATA #IMPLIED>
<!ATTLIST image percent CDATA #IMPLIED>
<!ATTLIST image t_pixel CDATA #IMPLIED>
<!ATTLIST image t_percent CDATA #IMPLIED>
<!ATTLIST image size CDATA #IMPLIED>
<!ATTLIST image texture_size CDATA #IMPLIED>
<!ATTLIST image backcolor CDATA #IMPLIED>
<!ATTLIST image bordercolor CDATA #IMPLIED>
<!ATTLIST image bordersize CDATA #IMPLIED>
<!ATTLIST image border (true|false) #IMPLIED>

38
binaries/data/gui/styles.dtd Executable file
View File

@ -0,0 +1,38 @@
<!--
GUI XML Files DTD
Root Element: <styles>
Version:
-->
<!ELEMENT styles (style*)>
<!ELEMENT style (#PCDATA)>
<!ATTLIST style name CDATA #REQUIRED>
<!--
Setting Pool
-->
<!ATTLIST style font CDATA #IMPLIED>
<!ATTLIST style input-initvalue-destroyed-at-focus (true|false) #IMPLIED>
<!ATTLIST style rectcolor-selected CDATA #IMPLIED>
<!ATTLIST style scrollbar (true|false) #IMPLIED>
<!ATTLIST style scrollbar-style CDATA #IMPLIED>
<!ATTLIST style sprite CDATA #IMPLIED>
<!ATTLIST style sprite2 CDATA #IMPLIED>
<!ATTLIST style sprite-disabled CDATA #IMPLIED>
<!ATTLIST style sprite2-disabled CDATA #IMPLIED>
<!ATTLIST style sprite-over CDATA #IMPLIED>
<!ATTLIST style sprite2-over CDATA #IMPLIED>
<!ATTLIST style sprite-pressed CDATA #IMPLIED>
<!ATTLIST style square-side CDATA #IMPLIED>
<!ATTLIST style textalign (left|center|right) #IMPLIED>
<!ATTLIST style textcolor CDATA #IMPLIED>
<!ATTLIST style textcolor-disabled CDATA #IMPLIED>
<!ATTLIST style textcolor-over CDATA #IMPLIED>
<!ATTLIST style textcolor-pressed CDATA #IMPLIED>
<!ATTLIST style textcolor-selected CDATA #IMPLIED>
<!ATTLIST style textvalign (top|center|bottom) #IMPLIED>
<!ATTLIST style tooltip CDATA #IMPLIED>
<!ATTLIST style tooltip-style CDATA #IMPLIED>

12
binaries/data/gui/styles.xml Executable file
View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE styles SYSTEM "styles.dtd">
<styles>
<style name="button"
sprite="sprite1"
sprite-over="sprite1-over"
sprite-pressed="sprite1-pressed"
sprite2="hejsan"
/>
</styles>