Minor syntactical changes for readability.
[xuni.git] / gui / data / options.xml
blob44546c1f7c8ff120c5789b8e0cb1c9f415ec110e
1 <?xml version="1.0"?>
2 <!-- gui/data/options.xml -->
3 <xuni-resource xuni-version="0.3.0" type="gui-data">
4     <widget type="panel" name="options">
5         <width>100</width>
6         <height>100</height>
7         <visible>0</visible>
8         
9         <handler file="src/test/libtest.so">
10             <init>options_init</init>
11             <start>options_start</start>
12             <event>options_event</event>
13             <click>options_click</click>
14             <paint>options_paint</paint>
15             <free>options_free</free>
16         </handler>
17         
18         <widget type="image">
19             <name>background 1</name>
20             <xpos>0</xpos>
21             <ypos>0</ypos>
22             <width>100</width>
23             <height>100</height>
24             <path>../background/carina.jpg</path>
25             <selable>0</selable>
26         </widget>
27         
28         <widget type="button">
29             <name>graphics</name>
30             <xpos>(100.0 - 100.0 / 3) / 2</xpos>
31             <ypos>100.0 / 8</ypos>
32             <width>100.0 / 3</width>
33             <height>100.0 / 15</height>
34             <text>Graphics</text>
35         </widget>
36         
37         <widget type="button">
38             <name>theme</name>
39             <xpos>(100.0 - 100.0 / 3) / 2</xpos>
40             <ypos>100.0 / 8 + 100.0 / 15 * 1.3</ypos>
41             <width>100.0 / 3</width>
42             <height>100.0 / 15</height>
43             <text>Theme</text>
44         </widget>
45         
46         <widget type="button">
47             <name>back</name>
48             <xpos>(100.0 - 100.0 / 3) / 2</xpos>
49             <ypos>100.0 / 8 + 100.0 / 15 * 1.3 * 2</ypos>
50             <width>100.0 / 3</width>
51             <height>100.0 / 15</height>
52             <text>Return to menu</text>
53         </widget>
54         
55         <widget type="listbox">
56             <name>main menu background</name>
57             <xpos>(100.0 - 100.0 / 3) / 2</xpos>
58             <ypos>100.0 / 8 + 100.0 / 15 * 1.3 * 3</ypos>
59             <width>100.0 / 3</width>
60             <height>100.0 / 15 * 4</height>
61             <scrollbar-force>both</scrollbar-force>
62         </widget>
63     </widget>
64     
65     <widget type="panel" name="options graphics">
66         <width>100</width>
67         <height>100</height>
68         <visible>0</visible>
69         
70         <handler file="src/test/libtest.so">
71             <start>options_start</start>
72             <event>options_event</event>
73             <click>options_click</click>
74             <deactivate>options_graphics_deactivate</deactivate>
75             <paint>options_paint</paint>
76         </handler>
77         
78         <widget type="image">
79             <name>background 1</name>
80             <xpos>0</xpos>
81             <ypos>0</ypos>
82             <width>100</width>
83             <height>100</height>
84             <path>../background/m78.jpg</path>
85             <selable>0</selable>
86         </widget>
87         
88         <widget type="button">
89             <name>back</name>
90             <xpos>(100.0 - 100.0 / 4) / 2</xpos>
91             <ypos>100.0 / 8 + 100.0 / 15 * 1.3</ypos>
92             <width>100.0 / 4</width>
93             <height>100.0 / 15</height>
94             <text>Return to options</text>
95         </widget>
96         
97         <widget type="checkbox">
98             <name>fullscreen</name>
99             <xpos>(100.0 - 100.0 / 4) / 2</xpos>
100             <ypos>100.0 / 8 + 100.0 / 15 * 1.3 * 2</ypos>
101             <width>100.0 / 3</width>
102             <height>100.0 / 15</height>
103             <text>Fullscreen</text>
104         </widget>
105         
106         <widget type="checkbox">
107             <name>restrictfocus</name>
108             <xpos>(100.0 - 100.0 / 4) / 2</xpos>
109             <ypos>100.0 / 8 + 100.0 / 15 * 1.3 * 3</ypos>
110             <width>100.0 / 3</width>
111             <height>100.0 / 15</height>
112             <text>Restrict focus</text>
113         </widget>
114         
115         <widget type="textbox">
116             <name>textscreenmode</name>
117             <xpos>(100.0 - 100.0 / 4) / 2</xpos>
118             <ypos>100.0 / 8 + 100.0 / 15 * 1.3 * 4</ypos>
119             <width>100.0 / 3</width>
120             <height>100.0 / 15</height>
121         </widget>
122         
123         <widget type="listbox">
124             <name>listscreenmode</name>
125             <xpos>(100.0 - 100.0 / 4) / 2</xpos>
126             <ypos>100.0 / 8 + 100.0 / 15 * 1.3 * 5</ypos>
127             <width>100.0 / 4</width>
128             <height>100.0 / 15 * 3</height>
129         </widget>
130         
131         <widget type="combobox">
132             <name>combo screen mode</name>
133             <xpos>5</xpos>
134             <ypos>5</ypos>
135             <width>100.0 / 4</width>
136             <height>100.0 / 15 * 3</height>
137         </widget>
138     </widget>
139     
140     <widget type="panel" name="options theme">
141         <width>100</width>
142         <height>100</height>
143         <visible>0</visible>
144         
145         <handler file="src/test/libtest.so">
146             <start>options_start</start>
147             <event>options_event</event>
148             <click>options_click</click>
149             <deactivate>options_theme_deactivate</deactivate>
150             <paint>options_paint</paint>
151         </handler>
152         
153         <widget type="image">
154             <name>background 1</name>
155             <xpos>0</xpos>
156             <ypos>0</ypos>
157             <width>100</width>
158             <height>100</height>
159             <path>../background/flame.jpg</path>
160             <selable>0</selable>
161         </widget>
162         
163         <widget type="button">
164             <name>back</name>
165             <xpos>(100.0 - 100.0 / 4) / 2</xpos>
166             <ypos>100.0 / 8 + 100.0 / 15 * 1.3</ypos>
167             <width>100.0 / 4</width>
168             <height>100.0 / 15</height>
169             <text>Return to options</text>
170         </widget>
171         
172         <widget type="textbox">
173             <name>font filename</name>
174             <xpos>(100.0 - 100.0 / 4) / 2</xpos>
175             <ypos>100.0 / 8 + 100.0 / 15 * 1.3 * 2</ypos>
176             <width>100.0 / 4</width>
177             <height>100.0 / 15</height>
178             <text>gui/FreeSans.ttf</text>
179         </widget>
180         
181         <widget type="textbox">
182             <name>theme name</name>
183             <xpos>100 / 16</xpos>
184             <ypos>100.0 / 8 + 100.0 / 15 * 1.3 * 3</ypos>
185             <width>100.0 / 4</width>
186             <height>100.0 / 15</height>
187             <text>alienglow</text>
188         </widget>
189         
190         <widget type="textbox">
191             <name>theme roundness</name>
192             <xpos>100 / 16</xpos>
193             <ypos>100.0 / 8 + 100.0 / 15 * 1.3 * 4</ypos>
194             <width>100.0 / 4</width>
195             <height>100.0 / 15</height>
196             <font>mono</font>
197             <text>30</text>
198         </widget>
199         
200         <widget type="listbox">
201             <name>theme list</name>
202             <xpos>100 / 16</xpos>
203             <ypos>100.0 / 8 + 100.0 / 15 * 1.3 * 5</ypos>
204             <width>100.0 / 4</width>
205             <height>100.0 / 15 * 3</height>
206         </widget>
207         
208         <!--<widget type="checkbox">
209             <name>build-in font</name>
210             <xpos>100 - 100 / 16 - 100.0 / 4</xpos>
211             <ypos>100.0 / 8 + 100.0 / 15 * 1.3</ypos>
212             <width>100.0 / 4</width>
213             <height>100.0 / 15</height>
214             <text>Built-in font</text>
215         </widget>-->
216         
217         <widget type="combobox">
218             <name>font combo</name>
219             <xpos>100 - 100 / 16 - 100.0 / 4</xpos>
220             <ypos>100.0 / 8 + 100.0 / 15 * 1.3 * 2</ypos>
221             <width>100.0 / 4</width>
222             <height>100.0 / 15 * 4</height>
223         </widget>
224         
225         <widget type="label">
226             <name>fontsample text 1</name>
227             <xpos>100.0 / 3</xpos>
228             <ypos>100.0 / 8 + 100.0 / 15 * (4.0/3.0) * 4</ypos>
229             <text>1234567890</text>
230         </widget>
231         
232         <widget type="label">
233             <name>fontsample text 2</name>
234             <xpos>100.0 / 3</xpos>
235             <ypos>100.0 / 8 + 100.0 / 15 * (4.0/3.0) * 4
236                 + 100.0 / 25.0</ypos>
237             <text>abcdefghijklmnopqrstuvwxyz</text>
238         </widget>
239         
240         <widget type="label">
241             <name>fontsample text 3</name>
242             <xpos>100.0 / 3</xpos>
243             <ypos>100.0 / 8 + 100.0 / 15 * (4.0/3.0) * 4
244                 + 100.0 / 25.0 * 2</ypos>
245             <text>ABCDEFGHIJKLMNOPQRSTUVWXYZ</text>
246             <red>0</red>
247             <green>0</green>
248             <blue>255</blue>
249         </widget>
250         
251         <widget type="label">
252             <name>fontsample text 4</name>
253             <xpos>100.0 / 3</xpos>
254             <ypos>100.0 / 8 + 100.0 / 15 * (4.0/3.0) * 4
255                 + 100.0 / 25.0 * 3</ypos>
256             <text>!@#$%^&amp;*()`~-_=+[{]}\\|;:'",&lt;.&gt;/?</text>
257         </widget>
258         
259         <widget type="label">
260             <name>fontsample text 5</name>
261             <xpos>100.0 / 3</xpos>
262             <ypos>100.0 / 8 + 100.0 / 15 * (4.0/3.0) * 4
263                 + 100.0 / 25.0 * 4</ypos>
264             <text>How quickly daft jumping zebras vex.</text>
265         </widget>
266         
267         <widget type="listbox">
268             <name>fontsample listbox</name>
269             <xpos>100.0 / 3</xpos>
270             <ypos>100.0 / 8 + 100.0 / 15 * (4.0/3.0) * 4
271                 + 100.0 / 25.0 * 7</ypos>
272             <width>100.0 / 3</width>
273             <height>100.0 / 15 * 3</height>
274             <scrollbar-force>both</scrollbar-force>
275         </widget>
276         
277         <widget type="textarea">
278             <name>textarea</name>
279             <xpos>100 - 100 / 16 - 100 / 4</xpos>
280             <ypos>100.0 / 8 + 100.0 / 15 * 1.3 * 7</ypos>
281             <width>100.0 / 4</width>
282             <height>100.0 / 15 * 4</height>
283         </widget>
284         
285         <widget type="textbox">
286             <name>test</name>
287             <xpos>100.0 / 3</xpos>
288             <ypos>100.0 / 8 + 100.0 / 15 * (4.0/3.0) * 4
289                 + 100.0 / 25.0 * 5</ypos>
290             <width>100.0 / 3</width>
291             <height>100.0 / 15</height>
292             <text>Test current font here.</text>
293         </widget>
294         
295         <!--<widget type="label">
296             <name>fontsample</name>
297             <xpos>20.0</xpos>
298             <ypos>80.0</ypos>
299             <width>10.0</width>
300             <height>10.0</height>
301             <text>1234567890
302                 abcdefghijklmnopqrstuvwxyz
303                 ABCDEFGHIJKLMNOPQRSTUVWXYZ
304                 How quickly daft jumping zebras vex.
305                 !@#$%^&amp;*()`~-_=+[{]}\\|;:'",&lt;.&gt;/?</text>
306         </widget>-->
307     </widget>
308 </xuni-resource>