Drastic modifications:
[xuni.git] / gui / data.xml
blob18bc626e77468d9fe7bd9b89173ec80b40d513b5
1 <?xml version="1.0"?>
2 <!-- gui/data.xml -->
3 <xuni-resource xuni-version="1.0.0" type="gui-data">
4     <widget type="panel" name="main menu">
5         <widget type="button">
6             <name>newgame</name>
7             <xpos>100.0 / 16</xpos>
8             <ypos>100.0 * .7</ypos>
9             <width>100.0 / 3</width>
10             <height>100.0 / 15</height>
11             <text>Create new game</text>
12         </widget>
13         
14         <widget type="button">
15             <name>multiplayer</name>
16             <xpos>100.0 / 16</xpos>
17             <ypos>100.0 * .7 + 100.0 / 12</ypos>
18             <width>100.0 / 3</width>
19             <height>100.0 / 15</height>
20             <text>Join multi-player game</text>
21             <enabled>0</enabled>
22         </widget>
23         
24         <widget type="button">
25             <name>loadgame</name>
26             <xpos>100.0 / 16</xpos>
27             <ypos>100.0 * .7 + 100.0 / 12 * 2</ypos>
28             <width>100.0 / 3</width>
29             <height>100.0 / 15</height>
30             <text>Load saved game</text>
31             <enabled>0</enabled>
32         </widget>
33         
34         <widget type="button">
35             <name>options</name>
36             <xpos>100.0 - 100.0 / 3 - 100.0 / 16</xpos>
37             <ypos>100.0 * .7</ypos>
38             <width>100.0 / 3</width>
39             <height>100.0 / 15</height>
40             <text>Options and preferences</text>
41         </widget>
42         
43         <widget type="button">
44             <name>help</name>
45             <xpos>100.0 - 100.0 / 3 - 100.0 / 16</xpos>
46             <ypos>100.0 * .7 + 100.0 / 12</ypos>
47             <width>100.0 / 3</width>
48             <height>100.0 / 15</height>
49             <text>Help and information</text>
50             <enabled>0</enabled>
51         </widget>
52         
53         <widget type="button">
54             <name>quit</name>
55             <xpos>100.0 - 100.0 / 3 - 100.0 / 16</xpos>
56             <ypos>100.0 * .7 + 100.0 / 12 * 2</ypos>
57             <width>100.0 / 3</width>
58             <height>100.0 / 15</height>
59             <text>Quit</text>
60         </widget>
61     </widget>
62     
63     <widget type="panel" name="game">
64         <widget type="button">
65             <name>menu</name>
66             <xpos>100.0 - 100.0 / 8</xpos>
67             <ypos>0</ypos>
68             <width>100.0 / 8</width>
69             <height>100.0 / 15</height>
70             <text>Menu</text>
71         </widget>
72     </widget>
73     
74     <widget type="panel" name="game menu">
75         <widget type="button">
76             <name>back</name>
77             <xpos>(100.0 - 100.0 / 3) / 2</xpos>
78             <ypos>100.0 / 8</ypos>
79             <width>100.0 / 3</width>
80             <height>100.0 / 15</height>
81             <text>Return to game</text>
82         </widget>
83         
84         <widget type="button">
85             <name>exit</name>
86             <xpos>(100.0 - 100.0 / 3) / 2</xpos>
87             <ypos>100.0 / 8 + 100.0 / 15 * 1.3</ypos>
88             <width>100.0 / 3</width>
89             <height>100.0 / 15</height>
90             <text>Exit to main menu</text>
91         </widget>
92     </widget>
93     
94     <widget type="panel" name="options">
95         <widget type="button">
96             <name>graphics</name>
97             <xpos>(100.0 - 100.0 / 3) / 2</xpos>
98             <ypos>100.0 / 8</ypos>
99             <width>100.0 / 3</width>
100             <height>100.0 / 15</height>
101             <text>Graphics</text>
102         </widget>
103         
104         <widget type="button">
105             <name>theme</name>
106             <xpos>(100.0 - 100.0 / 3) / 2</xpos>
107             <ypos>100.0 / 8 + 100.0 / 15 * 1.3</ypos>
108             <width>100.0 / 3</width>
109             <height>100.0 / 15</height>
110             <text>Theme</text>
111         </widget>
112         
113         <widget type="button">
114             <name>back</name>
115             <xpos>(100.0 - 100.0 / 3) / 2</xpos>
116             <ypos>100.0 / 8 + 100.0 / 15 * 1.3 * 2</ypos>
117             <width>100.0 / 3</width>
118             <height>100.0 / 15</height>
119             <text>Return to menu</text>
120         </widget>
121     </widget>
122     
123     <widget type="panel" name="options graphics">
124         <widget type="button">
125             <name>back</name>
126             <xpos>(100.0 - 100.0 / 4) / 2</xpos>
127             <ypos>100.0 / 8 + 100.0 / 15 * 1.3</ypos>
128             <width>100.0 / 4</width>
129             <height>100.0 / 15</height>
130             <text>Return to options</text>
131         </widget>
132         
133         <widget type="checkbox">
134             <name>fullscreen</name>
135             <xpos>(100.0 - 100.0 / 4) / 2</xpos>
136             <ypos>100.0 / 8 + 100.0 / 15 * 1.3 * 2</ypos>
137             <width>100.0 / 3</width>
138             <height>100.0 / 15</height>
139             <text>Fullscreen</text>
140             <buttonwidth>(100.0 - 100.0 / 4) / 2</buttonwidth>
141         </widget>
142         
143         <widget type="checkbox">
144             <name>restrictfocus</name>
145             <xpos>(100.0 - 100.0 / 4) / 2</xpos>
146             <ypos>100.0 / 8 + 100.0 / 15 * 1.3 * 3</ypos>
147             <width>100.0 / 3</width>
148             <height>100.0 / 15</height>
149             <text>Restrict focus</text>
150             <buttonwidth>(100.0 - 100.0 / 4) / 2</buttonwidth>
151         </widget>
152         
153         <widget type="textbox">
154             <name>textscreenmode</name>
155             <xpos>(100.0 - 100.0 / 4) / 2</xpos>
156             <ypos>100.0 / 8 + 100.0 / 15 * 1.3 * 4</ypos>
157             <width>100.0 / 3</width>
158             <height>100.0 / 15</height>
159         </widget>
160         
161         <widget type="listbox">
162             <name>listscreenmode</name>
163             <xpos>(100.0 - 100.0 / 4) / 2</xpos>
164             <ypos>100.0 / 8 + 100.0 / 15 * 1.3 * 5</ypos>
165             <width>100.0 / 4</width>
166             <height>100.0 / 15 * 3</height>
167         </widget>
168     </widget>
169     
170     <widget type="panel" name="options theme">
171         <widget type="button">
172             <name>back</name>
173             <xpos>(100.0 - 100.0 / 4) / 2</xpos>
174             <ypos>100.0 / 8 + 100.0 / 15 * 1.3</ypos>
175             <width>100.0 / 4</width>
176             <height>100.0 / 15</height>
177             <text>Return to options</text>
178         </widget>
179         
180         <widget type="label">
181             <name>fontsample</name>
182             <xpos>30.0</xpos>
183             <ypos>100.0 / 8 + 100.0 / 15 * (4.0/3.0) * 4</ypos>
184             <text>1234567890</text>
185         </widget>
186         
187         <widget type="label">
188             <name>fontsample</name>
189             <xpos>30.0</xpos>
190             <ypos>100.0 / 8 + 100.0 / 15 * (4.0/3.0) * 4
191                 + 100.0 / 25.0</ypos>
192             <text>abcdefghijklmnopqrstuvwxyz</text>
193         </widget>
194         
195         <widget type="label">
196             <name>fontsample</name>
197             <xpos>30.0</xpos>
198             <ypos>100.0 / 8 + 100.0 / 15 * (4.0/3.0) * 4
199                 + 100.0 / 25.0 * 2</ypos>
200             <text>ABCDEFGHIJKLMNOPQRSTUVWXYZ</text>
201         </widget>
202         
203         <widget type="label">
204             <name>fontsample</name>
205             <xpos>30.0</xpos>
206             <ypos>100.0 / 8 + 100.0 / 15 * (4.0/3.0) * 4
207                 + 100.0 / 25.0 * 3</ypos>
208             <text>How quickly daft jumping zebras vex.</text>
209         </widget>
210         
211         <widget type="label">
212             <name>fontsample</name>
213             <xpos>30.0</xpos>
214             <ypos>100.0 / 8 + 100.0 / 15 * (4.0/3.0) * 4
215                 + 100.0 / 25.0 * 4</ypos>
216             <text>!@#$%^&amp;*()`~-_=+[{]}\\|;:'",&lt;.&gt;/?</text>
217         </widget>
218         
219         <!--<widget type="label">
220             <name>fontsample</name>
221             <xpos>20.0</xpos>
222             <ypos>80.0</ypos>
223             <width>10.0</width>
224             <height>10.0</height>
225             <text>1234567890
226 abcdefghijklmnopqrstuvwxyz
227 ABCDEFGHIJKLMNOPQRSTUVWXYZ
228 How quickly daft jumping zebras vex.
229 !@#$%^&amp;*()`~-_=+[{]}\\|;:'",&lt;.&gt;/?</text>
230         </widget>-->
231     </widget>
232 </xuni-resource>