Created common signature for panel event handling functions.
[xuni.git] / gui / data / menu.xml
blob8db81f778d33f3cba390967d7bf36ff88e46277e
1 <?xml version="1.0"?>
2 <!-- gui/data/menu.xml -->
3 <xuni-resource xuni-version="0.3.0" type="gui-data">
4     <widget type="panel" name="main menu">
5         <width>100</width>
6         <height>100</height>
7         <visible>0</visible>
8         <selable>0</selable>
9         
10         <handler file="src/test/test.so">
11             <init>menu_init</init>
12             <start>menu_start</start>
13             <event>menu_event</event>
14             <click>menu_click</click>
15             <paint>menu_paint</paint>
16             <free>menu_free</free>
17         </handler>
18         
19         <widget type="image">
20             <name>orion background</name>
21             <xpos>0</xpos>
22             <ypos>0</ypos>
23             <width>100</width>
24             <height>100</height>
25             <path>../background/orion.jpg</path>
26             <selable>0</selable>
27         </widget>
28         
29         <widget type="image">
30             <name>moon background</name>
31             <xpos>0</xpos>
32             <ypos>0</ypos>
33             <width>100</width>
34             <height>100</height>
35             <path>../background/moon.jpg</path>
36             <selable>0</selable>
37             <visible>0</visible>
38         </widget>
39         
40         <widget type="image tile">
41             <name>parallax background 0</name>
42             <xpos>0</xpos>
43             <ypos>0</ypos>
44             <width>100</width>
45             <height>100</height>
46             <xinc>3</xinc>
47             <yinc>1.8</yinc>
48             <path>../background/back0.png</path>
49             <selable>0</selable>
50             <visible>0</visible>
51         </widget>
52         
53         <widget type="image tile">
54             <name>parallax background 1</name>
55             <xpos>0</xpos>
56             <ypos>0</ypos>
57             <width>100</width>
58             <height>100</height>
59             <xinc>4</xinc>
60             <yinc>-1.2</yinc>
61             <path>../background/back1.png</path>
62             <selable>0</selable>
63             <visible>0</visible>
64         </widget>
65         
66         <widget type="image tile">
67             <name>parallax background 2</name>
68             <xpos>0</xpos>
69             <ypos>0</ypos>
70             <width>100</width>
71             <height>100</height>
72             <xinc>3</xinc>
73             <yinc>2</yinc>
74             <path>../background/back1.png</path>
75             <selable>0</selable>
76             <visible>0</visible>
77         </widget>
78         
79         <widget type="image tile">
80             <name>parallax background 3</name>
81             <xpos>0</xpos>
82             <ypos>0</ypos>
83             <width>100</width>
84             <height>100</height>
85             <xinc>4.2</xinc>
86             <yinc>0.8</yinc>
87             <path>../background/back1.png</path>
88             <selable>0</selable>
89             <visible>0</visible>
90         </widget>
91         
92         <widget type="label">
93             <name>version label</name>
94             <xpos>1</xpos>
95             <ypos>98</ypos>
96             <width>100</width>
97             <height>0</height>
98             <text>xuni</text>
99         </widget>
100         
101         <widget type="button">
102             <name>newgame</name>
103             <xpos>100.0 / 16</xpos>
104             <ypos>100.0 * .7</ypos>
105             <width>100.0 / 3</width>
106             <height>100.0 / 15</height>
107             <text>Create new game</text>
108         </widget>
109         
110         <widget type="button">
111             <name>multiplayer</name>
112             <xpos>100.0 / 16</xpos>
113             <ypos>100.0 * .7 + 100.0 / 12</ypos>
114             <width>100.0 / 3</width>
115             <height>100.0 / 15</height>
116             <text>Join multi-player game</text>
117             <enabled>0</enabled>
118         </widget>
119         
120         <widget type="button">
121             <name>loadgame</name>
122             <xpos>100.0 / 16</xpos>
123             <ypos>100.0 * .7 + 100.0 / 12 * 2</ypos>
124             <width>100.0 / 3</width>
125             <height>100.0 / 15</height>
126             <text>Load saved game</text>
127             <enabled>0</enabled>
128         </widget>
129         
130         <widget type="button">
131             <name>options</name>
132             <xpos>100.0 - 100.0 / 3 - 100.0 / 16</xpos>
133             <ypos>100.0 * .7</ypos>
134             <width>100.0 / 3</width>
135             <height>100.0 / 15</height>
136             <text>Options and preferences</text>
137         </widget>
138         
139         <widget type="button">
140             <name>help</name>
141             <xpos>100.0 - 100.0 / 3 - 100.0 / 16</xpos>
142             <ypos>100.0 * .7 + 100.0 / 12</ypos>
143             <width>100.0 / 3</width>
144             <height>100.0 / 15</height>
145             <text>Help and information</text>
146             <enabled>0</enabled>
147         </widget>
148         
149         <widget type="button">
150             <name>quit</name>
151             <xpos>100.0 - 100.0 / 3 - 100.0 / 16</xpos>
152             <ypos>100.0 * .7 + 100.0 / 12 * 2</ypos>
153             <width>100.0 / 3</width>
154             <height>100.0 / 15</height>
155             <text>Quit</text>
156         </widget>
157         
158         <widget type="image">
159             <name>title</name>
160             <xpos>(100.0 - 100.0 / 1.5) / 2</xpos>
161             <ypos>0</ypos>
162             <width>100.0 / 1.5</width>
163             <height>100.0 / 1.5</height>
164             <!--<width>100</width>
165             <height>100</height>-->
166             <selable>0</selable>
167             <path>../title.png</path>
168         </widget>
169         
170         <widget type="image">
171             <name>back image</name>
172             <xpos>(100.0 - 100.0 / 5.0) / 2</xpos>
173             <ypos>100.0 * .69</ypos>
174             <width>100.0 / 5.0</width>
175             <height>100.0 / 3.75</height>
176             <path>../menuhover/back.png</path>
177             <selable>0</selable>
178         </widget>
179         
180         <widget type="image">
181             <name>newgame image</name>
182             <xpos>(100.0 - 100.0 / 5.0) / 2</xpos>
183             <ypos>100.0 * .69</ypos>
184             <width>100.0 / 5.0</width>
185             <height>100.0 / 3.75</height>
186             <path>../menuhover/0.png</path>
187             <visible>0</visible>
188             <selable>0</selable>
189         </widget>
190         
191         <widget type="image">
192             <name>multiplayer image</name>
193             <xpos>(100.0 - 100.0 / 5.0) / 2</xpos>
194             <ypos>100.0 * .69</ypos>
195             <width>100.0 / 5.0</width>
196             <height>100.0 / 3.75</height>
197             <path>../menuhover/1.png</path>
198             <visible>0</visible>
199             <selable>0</selable>
200         </widget>
201         
202         <widget type="image">
203             <name>loadgame image</name>
204             <xpos>(100.0 - 100.0 / 5.0) / 2</xpos>
205             <ypos>100.0 * .69</ypos>
206             <width>100.0 / 5.0</width>
207             <height>100.0 / 3.75</height>
208             <path>../menuhover/2.png</path>
209             <visible>0</visible>
210             <selable>0</selable>
211         </widget>
212         
213         <widget type="image">
214             <name>options image</name>
215             <xpos>(100.0 - 100.0 / 5.0) / 2</xpos>
216             <ypos>100.0 * .69</ypos>
217             <width>100.0 / 5.0</width>
218             <height>100.0 / 3.75</height>
219             <path>../menuhover/3.png</path>
220             <visible>0</visible>
221             <selable>0</selable>
222         </widget>
223         
224         <widget type="image">
225             <name>help image</name>
226             <xpos>(100.0 - 100.0 / 5.0) / 2</xpos>
227             <ypos>100.0 * .69</ypos>
228             <width>100.0 / 5.0</width>
229             <height>100.0 / 3.75</height>
230             <path>../menuhover/4.png</path>
231             <visible>0</visible>
232             <selable>0</selable>
233         </widget>
234         
235         <widget type="image">
236             <name>quit image</name>
237             <xpos>(100.0 - 100.0 / 5.0) / 2</xpos>
238             <ypos>100.0 * .69</ypos>
239             <width>100.0 / 5.0</width>
240             <height>100.0 / 3.75</height>
241             <path>../menuhover/5.png</path>
242             <visible>0</visible>
243             <selable>0</selable>
244         </widget>
245         
246         <!--<widget type="box">
247             <name>testbox</name>
248             <xpos>10.0</xpos>
249             <ypos>10.0</ypos>
250             <width>10.0</width>
251             <height>10.0</height>
252         </widget>-->
253     </widget>
254 </xuni-resource>