2 <!-- gui/data/options.xml -->
3 <xuni-resource xuni-version="0.3.0" type="gui-data">
4 <widget type="panel" name="options">
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>
19 <name>background 1</name>
24 <path>../background/carina.jpg</path>
28 <widget type="button">
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>
37 <widget type="button">
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>
46 <widget type="button">
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>
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 * 3</height>
64 <widget type="panel" name="options graphics">
69 <handler file="src/test/libtest.so">
70 <start>options_start</start>
71 <event>options_event</event>
72 <click>options_click</click>
73 <deactivate>options_graphics_deactivate</deactivate>
74 <paint>options_paint</paint>
78 <name>background 1</name>
83 <path>../background/m78.jpg</path>
87 <widget type="button">
89 <xpos>(100.0 - 100.0 / 4) / 2</xpos>
90 <ypos>100.0 / 8 + 100.0 / 15 * 1.3</ypos>
91 <width>100.0 / 4</width>
92 <height>100.0 / 15</height>
93 <text>Return to options</text>
96 <widget type="checkbox">
97 <name>fullscreen</name>
98 <xpos>(100.0 - 100.0 / 4) / 2</xpos>
99 <ypos>100.0 / 8 + 100.0 / 15 * 1.3 * 2</ypos>
100 <width>100.0 / 3</width>
101 <height>100.0 / 15</height>
102 <text>Fullscreen</text>
105 <widget type="checkbox">
106 <name>restrictfocus</name>
107 <xpos>(100.0 - 100.0 / 4) / 2</xpos>
108 <ypos>100.0 / 8 + 100.0 / 15 * 1.3 * 3</ypos>
109 <width>100.0 / 3</width>
110 <height>100.0 / 15</height>
111 <text>Restrict focus</text>
114 <widget type="textbox">
115 <name>textscreenmode</name>
116 <xpos>(100.0 - 100.0 / 4) / 2</xpos>
117 <ypos>100.0 / 8 + 100.0 / 15 * 1.3 * 4</ypos>
118 <width>100.0 / 3</width>
119 <height>100.0 / 15</height>
122 <widget type="listbox">
123 <name>listscreenmode</name>
124 <xpos>(100.0 - 100.0 / 4) / 2</xpos>
125 <ypos>100.0 / 8 + 100.0 / 15 * 1.3 * 5</ypos>
126 <width>100.0 / 4</width>
127 <height>100.0 / 15 * 3</height>
130 <widget type="combobox">
131 <name>combo screen mode</name>
134 <width>100.0 / 4</width>
135 <height>100.0 / 15 * 3</height>
139 <widget type="panel" name="options theme">
144 <handler file="src/test/libtest.so">
145 <start>options_start</start>
146 <event>options_event</event>
147 <click>options_click</click>
148 <deactivate>options_theme_deactivate</deactivate>
149 <paint>options_paint</paint>
152 <widget type="image">
153 <name>background 1</name>
158 <path>../background/flame.jpg</path>
162 <widget type="button">
164 <xpos>(100.0 - 100.0 / 4) / 2</xpos>
165 <ypos>100.0 / 8 + 100.0 / 15 * 1.3</ypos>
166 <width>100.0 / 4</width>
167 <height>100.0 / 15</height>
168 <text>Return to options</text>
171 <widget type="textbox">
172 <name>font filename</name>
173 <xpos>(100.0 - 100.0 / 4) / 2</xpos>
174 <ypos>100.0 / 8 + 100.0 / 15 * 1.3 * 2</ypos>
175 <width>100.0 / 4</width>
176 <height>100.0 / 15</height>
177 <text>gui/FreeSans.ttf</text>
180 <widget type="textbox">
181 <name>theme name</name>
182 <xpos>100 / 16</xpos>
183 <ypos>100.0 / 8 + 100.0 / 15 * 1.3 * 3</ypos>
184 <width>100.0 / 4</width>
185 <height>100.0 / 15</height>
186 <text>alienglow</text>
189 <widget type="textbox">
190 <name>theme roundness</name>
191 <xpos>100 / 16</xpos>
192 <ypos>100.0 / 8 + 100.0 / 15 * 1.3 * 4</ypos>
193 <width>100.0 / 4</width>
194 <height>100.0 / 15</height>
199 <widget type="listbox">
200 <name>theme list</name>
201 <xpos>100 / 16</xpos>
202 <ypos>100.0 / 8 + 100.0 / 15 * 1.3 * 5</ypos>
203 <width>100.0 / 4</width>
204 <height>100.0 / 15 * 3</height>
207 <!--<widget type="checkbox">
208 <name>build-in font</name>
209 <xpos>100 - 100 / 16 - 100.0 / 4</xpos>
210 <ypos>100.0 / 8 + 100.0 / 15 * 1.3</ypos>
211 <width>100.0 / 4</width>
212 <height>100.0 / 15</height>
213 <text>Built-in font</text>
216 <widget type="combobox">
217 <name>font combo</name>
218 <xpos>100 - 100 / 16 - 100.0 / 4</xpos>
219 <ypos>100.0 / 8 + 100.0 / 15 * 1.3 * 2</ypos>
220 <width>100.0 / 4</width>
221 <height>100.0 / 15 * 4</height>
224 <widget type="label">
225 <name>fontsample text 1</name>
226 <xpos>100.0 / 3</xpos>
227 <ypos>100.0 / 8 + 100.0 / 15 * (4.0/3.0) * 4</ypos>
228 <text>1234567890</text>
231 <widget type="label">
232 <name>fontsample text 2</name>
233 <xpos>100.0 / 3</xpos>
234 <ypos>100.0 / 8 + 100.0 / 15 * (4.0/3.0) * 4
235 + 100.0 / 25.0</ypos>
236 <text>abcdefghijklmnopqrstuvwxyz</text>
239 <widget type="label">
240 <name>fontsample text 3</name>
241 <xpos>100.0 / 3</xpos>
242 <ypos>100.0 / 8 + 100.0 / 15 * (4.0/3.0) * 4
243 + 100.0 / 25.0 * 2</ypos>
244 <text>ABCDEFGHIJKLMNOPQRSTUVWXYZ</text>
250 <widget type="label">
251 <name>fontsample text 4</name>
252 <xpos>100.0 / 3</xpos>
253 <ypos>100.0 / 8 + 100.0 / 15 * (4.0/3.0) * 4
254 + 100.0 / 25.0 * 3</ypos>
255 <text>!@#$%^&*()`~-_=+[{]}\\|;:'",<.>/?</text>
258 <widget type="label">
259 <name>fontsample text 5</name>
260 <xpos>100.0 / 3</xpos>
261 <ypos>100.0 / 8 + 100.0 / 15 * (4.0/3.0) * 4
262 + 100.0 / 25.0 * 4</ypos>
263 <text>How quickly daft jumping zebras vex.</text>
266 <widget type="listbox">
267 <name>fontsample listbox</name>
268 <xpos>100.0 / 3</xpos>
269 <ypos>100.0 / 8 + 100.0 / 15 * (4.0/3.0) * 4
270 + 100.0 / 25.0 * 7</ypos>
271 <width>100.0 / 3</width>
272 <height>100.0 / 15 * 3</height>
273 <scrollbar-force>both</scrollbar-force>
276 <widget type="textarea">
277 <name>textarea</name>
278 <xpos>100 - 100 / 16 - 100 / 4</xpos>
279 <ypos>100.0 / 8 + 100.0 / 15 * 1.3 * 7</ypos>
280 <width>100.0 / 4</width>
281 <height>100.0 / 15 * 4</height>
284 <widget type="textbox">
286 <xpos>100.0 / 3</xpos>
287 <ypos>100.0 / 8 + 100.0 / 15 * (4.0/3.0) * 4
288 + 100.0 / 25.0 * 5</ypos>
289 <width>100.0 / 3</width>
290 <height>100.0 / 15</height>
291 <text>Test current font here.</text>
294 <!--<widget type="label">
295 <name>fontsample</name>
299 <height>10.0</height>
301 abcdefghijklmnopqrstuvwxyz
302 ABCDEFGHIJKLMNOPQRSTUVWXYZ
303 How quickly daft jumping zebras vex.
304 !@#$%^&*()`~-_=+[{]}\\|;:'",<.>/?</text>