2 <!-- gui/data/game.xml -->
3 <xuni-resource xuni-version="0.3.0" type="gui-data">
4 <widget type="panel" name="game">
9 <handler file="src/test/test.so">
10 <init>init_game</init>
11 <start>start_game</start>
12 <event>game_event</event>
13 <perform-click>game_perform_click</perform-click>
14 <paint>paint_game</paint>
15 <free>free_game</free>
19 <name>background 1</name>
24 <path>../background/m31.jpg</path>
28 <widget type="button">
30 <xpos>100.0 - 100.0 / 8</xpos>
32 <width>100.0 / 8</width>
33 <height>100.0 / 15</height>
35 <accelerator>lshift f10</accelerator>
38 <widget type="button">
47 <widget type="button">
56 <widget type="button">
65 <widget type="button">
74 <!--<widget type="button">
75 <name>big button</name>
80 <text>One big button</text>
83 <widget type="button">
84 <name>pretty big button</name>
89 <text>One pretty big button</text>
93 <widget type="panel" name="game menu">
98 <handler file="src/test/test.so">
99 <start>start_game</start>
100 <event>game_event</event>
101 <perform-click>game_perform_click</perform-click>
102 <paint>paint_game</paint>
105 <widget type="button">
107 <xpos>(100.0 - 100.0 / 3) / 2</xpos>
108 <ypos>100.0 / 8</ypos>
109 <width>100.0 / 3</width>
110 <height>100.0 / 15</height>
111 <text>Return to game</text>
114 <widget type="button">
116 <xpos>(100.0 - 100.0 / 3) / 2</xpos>
117 <ypos>100.0 / 8 + 100.0 / 15 * 1.3</ypos>
118 <width>100.0 / 3</width>
119 <height>100.0 / 15</height>
120 <text>Exit to main menu</text>