Created basic CMake files.
[xuni.git] / gui / data / options.xml
blob8900d21bfb8df6f4682da56d2d006438dbcc43a2
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 * 3</height>
61         </widget>
62     </widget>
63     
64     <widget type="panel" name="options graphics">
65         <width>100</width>
66         <height>100</height>
67         <visible>0</visible>
68         
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>
75         </handler>
76         
77         <widget type="image">
78             <name>background 1</name>
79             <xpos>0</xpos>
80             <ypos>0</ypos>
81             <width>100</width>
82             <height>100</height>
83             <path>../background/m78.jpg</path>
84             <selable>0</selable>
85         </widget>
86         
87         <widget type="button">
88             <name>back</name>
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>
94         </widget>
95         
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>
103         </widget>
104         
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>
112         </widget>
113         
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>
120         </widget>
121         
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>
128         </widget>
129         
130         <widget type="combobox">
131             <name>combo screen mode</name>
132             <xpos>5</xpos>
133             <ypos>5</ypos>
134             <width>100.0 / 4</width>
135             <height>100.0 / 15 * 3</height>
136         </widget>
137     </widget>
138     
139     <widget type="panel" name="options theme">
140         <width>100</width>
141         <height>100</height>
142         <visible>0</visible>
143         
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>
150         </handler>
151         
152         <widget type="image">
153             <name>background 1</name>
154             <xpos>0</xpos>
155             <ypos>0</ypos>
156             <width>100</width>
157             <height>100</height>
158             <path>../background/flame.jpg</path>
159             <selable>0</selable>
160         </widget>
161         
162         <widget type="button">
163             <name>back</name>
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>
169         </widget>
170         
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>
178         </widget>
179         
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>
187         </widget>
188         
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>
195             <font>mono</font>
196             <text>30</text>
197         </widget>
198         
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>
205         </widget>
206         
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>
214         </widget>-->
215         
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>
222         </widget>
223         
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>
229         </widget>
230         
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>
237         </widget>
238         
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>
245             <red>0</red>
246             <green>0</green>
247             <blue>255</blue>
248         </widget>
249         
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>!@#$%^&amp;*()`~-_=+[{]}\\|;:'",&lt;.&gt;/?</text>
256         </widget>
257         
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>
264         </widget>
265         
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>
274         </widget>
275         
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>
282         </widget>
283         
284         <widget type="textbox">
285             <name>test</name>
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>
292         </widget>
293         
294         <!--<widget type="label">
295             <name>fontsample</name>
296             <xpos>20.0</xpos>
297             <ypos>80.0</ypos>
298             <width>10.0</width>
299             <height>10.0</height>
300             <text>1234567890
301                 abcdefghijklmnopqrstuvwxyz
302                 ABCDEFGHIJKLMNOPQRSTUVWXYZ
303                 How quickly daft jumping zebras vex.
304                 !@#$%^&amp;*()`~-_=+[{]}\\|;:'",&lt;.&gt;/?</text>
305         </widget>-->
306     </widget>
307 </xuni-resource>