Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/resource2/data/gui/layouts/MainMenu.layout @ 5838

Last change on this file since 5838 was 5661, checked in by rgrieder, 15 years ago

Cleaned out the lua script files for the GUI.
Also replaced "require" function to support resources.
Fixed a problem with the return value of doFile, includeFile and require being discarded because the tolua binding is for a C++ function returning void.

File size: 2.7 KB
Line 
1<?xml version="1.0" ?>
2<GUILayout>
3    <Window Type="TaharezLook/StaticImage" Name="orxonox/Background">
4    <Property Name="UnifiedSize" Value="{{1.0,0},{1.0,0}}"/>
5    <Property Name="Image" Value="set:MainMenuBackground image:Background"/>
6    <Property Name="FrameEnabled" Value="set:true"/>
7    <Property Name="BackgroundEnabled" Value="set:false"/>
8 
9        <Window Type="TaharezLook/Button" Name="orxonox/StandaloneButton">
10            <Property Name="UnifiedPosition" Value="{{0.11,0},{0.3,0}}"/>
11            <Property Name="UnifiedSize" Value="{{0.15,0},{0.05,0}}"/>
12            <Property Name="Text" Value="Standalone"/>
13            <Property Name="Disabled" Value="true"/>
14            <Event Name="Clicked" Function="MainMenu.button_standalone_clicked"/>
15        </Window>
16       
17        <Window Type="TaharezLook/Listbox" Name="orxonox/LevelListbox">
18            <Property Name="UnifiedPosition" Value="{{0.4,0},{0.3,0}}"/>
19            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
20            <Property Name="UnifiedSize" Value="{{0.35,0},{0.33,0}}" />
21            <Property Name="Tooltip" Value="Available Levels." />
22            <Event Name="ItemSelectionChanged" Function="MainMenu.listbox_level_selectionchanged" />
23        </Window>
24       
25        <Window Type="TaharezLook/Button" Name="orxonox/DedicatedButton">
26            <Property Name="UnifiedPosition" Value="{{0.11,0},{0.376,0}}"/>
27            <Property Name="UnifiedSize" Value="{{0.15,0},{0.05,0}}"/>
28            <Property Name="Text" Value="Dedicated"/>
29            <Event Name="Clicked" Function="MainMenu.button_dedicated_clicked"/>
30        </Window>
31       
32        <Window Type="TaharezLook/Button" Name="orxonox/ServerButton">
33            <Property Name="UnifiedPosition" Value="{{0.11,0},{0.452,0}}"/>
34            <Property Name="UnifiedSize" Value="{{0.15,0},{0.05,0}}"/>
35            <Property Name="Text" Value="Server"/>
36            <Event Name="Clicked" Function="MainMenu.button_server_clicked"/>
37        </Window>
38       
39        <Window Type="TaharezLook/Button" Name="orxonox/ClientButton">
40            <Property Name="UnifiedPosition" Value="{{0.11,0},{0.528,0}}"/>
41            <Property Name="UnifiedSize" Value="{{0.15,0},{0.05,0}}"/>
42            <Property Name="Text" Value="Client"/>
43            <Event Name="Clicked" Function="MainMenu.button_client_clicked"/>
44        </Window>
45       
46        <Window Type="TaharezLook/Button" Name="orxonox/QuitButton">
47            <Property Name="UnifiedPosition" Value="{{0.11,0},{0.604,0}}"/>
48            <Property Name="UnifiedSize" Value="{{0.15,0},{0.05,0}}"/>
49            <Property Name="Text" Value="Quit"/>
50            <Event Name="Clicked" Function="MainMenu.button_quit_clicked"/>
51        </Window>
52    </Window>
53</GUILayout>
Note: See TracBrowser for help on using the repository browser.