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 * 4</height>
61 <scrollbar-force>both</scrollbar-force>
65 <widget type="panel" name="options graphics">
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>
79 <name>background 1</name>
84 <path>../background/m78.jpg</path>
88 <widget type="button">
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>
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>
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>
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>
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>
131 <widget type="combobox">
132 <name>combo screen mode</name>
135 <width>100.0 / 4</width>
136 <height>100.0 / 15 * 3</height>
140 <widget type="panel" name="options theme">
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>
153 <widget type="image">
154 <name>background 1</name>
159 <path>../background/flame.jpg</path>
163 <widget type="button">
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>!@#$%^&*()`~-_=+[{]}\\|;:'",<.>/?</text>
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>
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>
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>
285 <widget type="textbox">
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>
295 <!--<widget type="label">
296 <name>fontsample</name>
300 <height>10.0</height>
302 abcdefghijklmnopqrstuvwxyz
303 ABCDEFGHIJKLMNOPQRSTUVWXYZ
304 How quickly daft jumping zebras vex.
305 !@#$%^&*()`~-_=+[{]}\\|;:'",<.>/?</text>