2 <!-- gui/data/menu.xml -->
3 <xuni-resource xuni-version="0.3.0" type="gui-data">
4 <widget type="panel" name="main menu">
10 <handler file="src/test/test.so">
11 <init>init_menu</init>
12 <start>start_menu</start>
13 <event>menu_event</event>
14 <perform-click>menu_perform_click</perform-click>
15 <paint>paint_menu</paint>
16 <free>free_main_menu</free>
20 <name>orion background</name>
25 <path>../background/orion.jpg</path>
30 <name>moon background</name>
35 <path>../background/moon.jpg</path>
40 <widget type="image tile">
41 <name>parallax background 0</name>
48 <path>../background/back0.png</path>
53 <widget type="image tile">
54 <name>parallax background 1</name>
61 <path>../background/back1.png</path>
66 <widget type="image tile">
67 <name>parallax background 2</name>
74 <path>../background/back1.png</path>
79 <widget type="image tile">
80 <name>parallax background 3</name>
87 <path>../background/back1.png</path>
93 <name>version label</name>
101 <widget type="button">
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>
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>
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>
130 <widget type="button">
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>
139 <widget type="button">
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>
149 <widget type="button">
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>
158 <widget type="image">
160 <xpos>(100.0 - 100.0 / 1.5) / 2</xpos>
162 <width>100.0 / 1.5</width>
163 <height>100.0 / 1.5</height>
164 <!--<width>100</width>
165 <height>100</height>-->
167 <path>../title.png</path>
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>
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>
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>
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>
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>
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>
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>
246 <!--<widget type="box">
251 <height>10.0</height>