1
0
forked from 0ad/0ad

Updates, hello.xml still empty

This was SVN commit r286.
This commit is contained in:
Gee 2004-05-29 03:35:47 +00:00
parent 72454bab64
commit 4ef1ff86f3
5 changed files with 247 additions and 118 deletions

View File

@ -1,27 +1,36 @@
<!--
Types
-->
<!ENTITY % bool "(true|false)">
<!ENTITY % align "(left|center|right)">
<!ENTITY % valign "(top|center|bottom)">
<!--
Defines
-->
<!ENTITY % unique_settings
"name CDATA #IMPLIED
type CDATA #IMPLIED
type CDATA 'empty'
style CDATA #IMPLIED"
>
<!ENTITY % base_settings
"absolute (true|false) #IMPLIED
enabled (true|false) #IMPLIED
ghost (true|false) #IMPLIED
hidden (true|false) #IMPLIED
"absolute %bool; #IMPLIED
enabled %bool; #IMPLIED
ghost %bool; #IMPLIED
hidden %bool; #IMPLIED
size CDATA #IMPLIED
z CDATA #IMPLIED"
>
<!-- Defaults are not put in here, because it ruins the concept of styles -->
<!ENTITY % ex_settings
"font CDATA #IMPLIED
input-initvalue-destroyed-at-focus (true|false) #IMPLIED
"checked %bool; #IMPLIED
font CDATA #IMPLIED
input-initvalue-destroyed-at-focus %bool; #IMPLIED
rectcolor-selected CDATA #IMPLIED
scrollbar (true|false) #IMPLIED
scrollbar %bool; #IMPLIED
scrollbar-style CDATA #IMPLIED
sprite CDATA #IMPLIED
sprite2 CDATA #IMPLIED
@ -30,18 +39,20 @@
sprite-over CDATA #IMPLIED
sprite2-over CDATA #IMPLIED
sprite-pressed CDATA #IMPLIED
sprite2-pressed CDATA #IMPLIED
square-side CDATA #IMPLIED
textalign (left|center|right) #IMPLIED
textalign %align; #IMPLIED
textcolor CDATA #IMPLIED
textcolor-disabled CDATA #IMPLIED
textcolor-over CDATA #IMPLIED
textcolor-pressed CDATA #IMPLIED
textcolor-selected CDATA #IMPLIED
textvalign (top|center|bottom) #IMPLIED
textvalign %valign; #IMPLIED
tooltip CDATA #IMPLIED
tooltip-style CDATA #IMPLIED"
>
<!--
<objects>
-->
@ -57,7 +68,7 @@
<styles>
-->
<!ELEMENT styles (style*)>
<!ELEMENT style (#PCDATA)>
<!ELEMENT style EMPTY>
<!ATTLIST style
name CDATA #REQUIRED
%base_settings;
@ -67,26 +78,33 @@
<!--
<setup>
-->
<!ELEMENT setup (icon*,scrollbar*,tooltip*)>
<!ELEMENT scrollbar (#PCDATA)>
<!ELEMENT icon (#PCDATA)>
<!ELEMENT tooltip (#PCDATA)>
<!ELEMENT setup (icon|scrollbar|tooltip)*>
<!ELEMENT scrollbar EMPTY>
<!ELEMENT icon EMPTY>
<!ELEMENT tooltip EMPTY>
<!--
<scrollbar>
-->
<!ATTLIST
scrollbar name CDATA #REQUIRED
<!ATTLIST scrollbar
name CDATA #REQUIRED
width CDATA #IMPLIED
scroll-wheel CDATA #IMPLIED
alwaysshown CDATA #IMPLIED
scroll-wheel %bool; #IMPLIED
alwaysshown %bool; #IMPLIED
scroll-speed CDATA #IMPLIED
sprite-button-top CDATA #IMPLIED
sprite-button-top-pressed CDATA #IMPLIED
sprite-button-top-disabled CDATA #IMPLIED
sprite-button-top-over CDATA #IMPLIED
sprite-button-bottom CDATA #IMPLIED
sprite-button-bottom-pressed CDATA #IMPLIED
sprite-button-bottom-disabled CDATA #IMPLIED
sprite-button-bottom-over CDATA #IMPLIED
sprite-bar-vertical CDATA #IMPLIED
sprite-bar-vertical-over CDATA #IMPLIED
sprite-bar-vertical-pressed CDATA #IMPLIED
sprite-back-vertical CDATA #IMPLIED
minimum-bar-size CDATA #IMPLIED
>
<!--
@ -94,7 +112,7 @@
-->
<!ELEMENT sprites (sprite*)>
<!ELEMENT sprite (image+)>
<!ELEMENT image (#PCDATA)>
<!ELEMENT image EMPTY>
<!ATTLIST sprite
name CDATA #REQUIRED
@ -106,5 +124,6 @@
texture_size CDATA #IMPLIED
backcolor CDATA #IMPLIED
bordercolor CDATA #IMPLIED
border (true|false) #IMPLIED
border %bool; #IMPLIED
z-level CDATA #IMPLIED
>

View File

@ -3,12 +3,53 @@
<!DOCTYPE objects SYSTEM "gui.dtd">
<objects>
<object
name="backdrop3"
type="button"
sprite="sprite1"
size="0 0 600 300"
z="100"
/>
<object
type="button"
sprite="white-border"
size="320 320 460 350"
z="10"
textcolor="230 230 230"
textcolor-over="0 230 230"
textcolor-pressed="0 0 0"
textcolor-disabled="230 230 230"
>This is a button</object>
<object
name="backdrop43"
type="text"
sprite="white-border"
size="500 400 900 700"
z="10"
textcolor="230 230 230"
scrollbar="true"
>[font=Verdana25.fnt]Ragnarok [icon][/font]
In[imgleft] Norse [color="255 0 0"]mythology[/color], Ragnarok ("doom of the powers" or "destruction of the powers", where "powers" means [imgright]"gods") is the battle at the end of the world. It[icon] will be waged between th[icon]e gods (the Aesir, led by Odin) and the evils (the fire giants, the Jotuns and various monsters, led by Loki). Not only will the gods, giants and monsters perish in this apocalyptic conflagration, but almost everything in the universe will be torn asunder.
[color="255 255 0"][imgleft=tredje]- Dr Monkey[/color]</object>
<!-- <object
name="backdrop"
type="text"
sprite="sprite1-disabled"
size="200 150 320 700"
sprite="grey"
size="200 450 320 700"
scrollbar-style="sb"
z="100"
/>
@ -20,15 +61,17 @@
size="600 300 920 500"
scrollbar-style="sb"
z="100"
hidden="true"
/>
-->
<object
name="Child1"
type="button"
style="button"
size="100%-140 10 100%-10 140"
z="200"
/>
textcolor="0 0 0"
>Child1</object>
<object
@ -37,30 +80,69 @@
style="button"
size="10 10 140 40"
z="200"
>
textcolor="0 0 0"
>Child2</object>
<object>
<object
name="Child3"
type="radiobutton"
style="button"
size="150 10 280 40"
z="200"
square-side="20"
/>
<object
name="Child5"
type="radiobutton"
style="button"
size="150 50 280 80"
z="200"
square-side="20"
checked="true"
/>
<object
name="Child6"
type="radiobutton"
style="button"
size="150 90 280 120"
z="200"
square-side="20"
checked="true"
/>
</object>
<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"
style="button"
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"/>
<object
type="button"
style="button"
size="290 50 420 80"
z="200"
/>
<object
type="button"
style="button"
size="290 90 420 120"
z="200"
/>
<object
type="button"
style="button"
size="290 130 420 160"
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"/>
<object name="a3" type="button" size="100%-200 10 100%-110 40" z="22" />
<object name="a4" type="button" size="100%-300 10 100%-210 40" z="22" />
</object>

View File

@ -3,5 +3,29 @@
<!DOCTYPE setup SYSTEM "gui.dtd">
<setup>
<scrollbar name="sb" width="25" />
<scrollbar name="sb" width="18" minimum-bar-size="5"
sprite-button-top="sprite2"
sprite-button-top-over="null"
sprite-button-bottom="sprite2"
sprite-button-bottom-over="null"
sprite-back-vertical="grey"
sprite-bar-vertical="sprite2"
sprite-bar-vertical-over="null"
sprite-bar-vertical-pressed="null"
sprite-button-bottom-pressed="sprite2-pressed"
sprite-button-top-pressed="sprite2-pressed"
/>
<scrollbar name="sb2" width="37" minimum-bar-size="5"
sprite-button-top="scroll"
sprite-button-top-over="null"
sprite-button-bottom="scroll"
sprite-button-bottom-over="null"
sprite-back-vertical="null"
sprite-bar-vertical="scroll-bar"
sprite-bar-vertical-over="null"
sprite-bar-vertical-pressed="null"
sprite-button-bottom-pressed="scroll"
sprite-button-top-pressed="scroll"
/>
</setup>

View File

@ -5,100 +5,101 @@
<sprites>
<sprite name="sprite1">
<!-- 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" />
<image backcolor="255 255 255" size="0 1 1 100%-1" />
<image backcolor="255 255 255" size="0 0 100%-1 1" />
<image backcolor="64 64 64" size="100%-1 0 100% 100%" />
<image backcolor="64 64 64" size="0 100%-1 100%-1 100%" />
<image backcolor="128 128 128" size="100%-2 1 100%-1 100%-1" />
<image backcolor="128 128 128" size="1 100%-2 100%-1 100%-1" />
<!-- middle -->
<image backcolor="176 150 72" size="2 2 100%-2 100%-2" />
<image backcolor="212 208 200" size="1 1 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 name="sprite4">
<image backcolor="50 50 50" size="0 0 100% 100%" />
</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" />
<image backcolor="255 255 255" size="0 1 1 100%-1" />
<image backcolor="255 255 255" size="0 0 100%-1 1" />
<image backcolor="64 64 64" size="100%-1 0 100% 100%" />
<image backcolor="64 64 64" size="0 100%-1 100%-1 100%" />
<image backcolor="128 128 128" size="100%-2 1 100%-1 100%-1" />
<image backcolor="128 128 128" size="1 100%-2 100%-1 100%-1" />
<!-- middle -->
<image backcolor="176 37 37" size="2 2 100%-2 100%-2" />
<image backcolor="200 0 0" size="1 1 100%-2 100%-2" />
<image backcolor="212 208 200" size="2 2 100%-3 100%-3" />
</sprite>
<sprite name="sprite1-disabled">
<image backcolor="128 0 128" size="0 0 100% 100%" />
<sprite name="sprite1-ch">
<!-- Starting with top left corner continuing in a clockwise manner -->
<image backcolor="255 255 255" size="0 1 1 100%-1" />
<image backcolor="255 255 255" size="0 0 100%-1 1" />
<image backcolor="64 64 64" size="100%-1 0 100% 100%" />
<image backcolor="64 64 64" size="0 100%-1 100%-1 100%" />
<image backcolor="128 128 128" size="100%-2 1 100%-1 100%-1" />
<image backcolor="128 128 128" size="1 100%-2 100%-1 100%-1" />
<!-- middle -->
<image backcolor="212 208 200" size="4 4 100%-5 100%-5" z-level="1" />
<image backcolor="128 0 0" size="4 4 100%-5 100%-5" z-level="1" />
</sprite>
<sprite name="grey">
<image backcolor="128 128 128" size="0 0 100% 100%" />
<sprite name="sprite1-pressed">
<image backcolor="64 64 64" size="0 0 100% 100%" />
<image backcolor="128 128 128" size="1 1 100%-1 100%-1" z-level="1" />
<image backcolor="212 208 200" size="2 2 100%-2 100%-2" z-level="2" />
</sprite>
<sprite name="blue">
<image backcolor="128 0 0" size="0 0 100% 100%" />
</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" />
<!-- Starting with top left corner continuing in a clockwise manner -->
<image backcolor="212 208 200" size="0 1 1 100%-1" />
<image backcolor="212 208 200" size="0 0 100%-1 1" />
<image backcolor="255 255 255" size="1 2 1 100%-2" />
<image backcolor="255 255 255" size="1 1 100%-2 2" />
<image backcolor="64 64 64" size="100%-1 0 100% 100%" />
<image backcolor="64 64 64" size="0 100%-1 100%-1 100%" />
<image backcolor="128 128 128" size="100%-2 1 100%-1 100%-1" />
<image backcolor="128 128 128" size="1 100%-2 100%-1 100%-1" />
<!-- 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" />
<image backcolor="212 208 200" size="2 2 100%-2 100%-2" />
</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" />
<image backcolor="128 128 128" size="0 0 100% 100%" />
<image backcolor="212 208 200" size="1 1 100%-1 100%-1" z-level="1" />
</sprite>
<sprite name="sprite1">
<!-- Starting with top left corner continuing in a clockwise manner -->
<image backcolor="255 255 255" size="0 1 1 100%-1" />
<image backcolor="255 255 255" size="0 0 100%-1 1" />
<image backcolor="64 64 64" size="100%-1 0 100% 100%" />
<image backcolor="64 64 64" size="0 100%-1 100%-1 100%" />
<image backcolor="128 128 128" size="100%-2 1 100%-1 100%-1" />
<image backcolor="128 128 128" size="1 100%-2 100%-1 100%-1" />
<!-- middle -->
<image backcolor="255 0 0" size="20 20 100%-20 100%-20" />
<image backcolor="212 208 200" size="1 1 100%-2 100%-2" />
</sprite>
<sprite name="grey">
<image backcolor="243 242 240" size="0 0 100% 100%" />
</sprite>
<sprite name="white-border">
<image backcolor="100 70 120" size="0 0 100% 100%" />
<image backcolor="255 255 255" size="-1 -1 100%+1 0" />
<image backcolor="255 255 255" size="-1 100% 100%+1 100%+1" />
<image backcolor="255 255 255" size="-1 0 0 100%" />
<image backcolor="255 255 255" size="100% 0 100%+1 100%" />
</sprite>
<sprite name="scroll">
<!--<image backcolor="128 128 128" size="0 0 100% 100%" />-->
<image backcolor="150 105 180" size="2 2 100%-2 100%-2" z-level="1" />
</sprite>
<sprite name="scroll-bar">
<!--<image backcolor="128 128 128" size="0 0 100% 100%" />-->
<image backcolor="150 105 180" size="2 0 100%-2 100%" z-level="1" />
</sprite>
</sprites>

View File

@ -9,13 +9,16 @@
enabled="true"
z="0"
absolute="true"
scrollbar-style="sb2"
/>
<style name="button"
sprite="sprite1"
sprite-over="sprite1-over"
sprite-pressed="sprite1-pressed"
sprite2="hejsan"
sprite-disabled="sprite1-disabled"
sprite-over="sprite1-over"
sprite2="sprite1-ch"
sprite2-pressed="sprite2-pressed"
sprite2-disabled="sprite2-disabled"
/>
</styles>