Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/gamestate/data/gui/layouts/MainMenu.layout @ 7008

Last change on this file since 7008 was 6564, checked in by rgrieder, 15 years ago

Changed use of CEGUI widgets: Instead of addressing a type with "TaharezLook/Button" I changed it to "MenuWidgets/MyWidget".
That allows to define multiple skins for the menu and simply load the one we like.
Furthermore the idea is to use "HUDWidgets/MyWidget" for HUD elements. But I haven't added that.

  • Property svn:eol-style set to native
File size: 2.8 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2
3<GUILayout >
4    <Window Type="MenuWidgets/StaticImage" Name="orxonox/MainMenuBackground" >
5        <Property Name="FrameEnabled" Value="False" />
6        <Property Name="InheritsAlpha" Value="False" />
7        <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
8        <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1.0,0},{1.0,0}}" />
9        <Property Name="BackgroundEnabled" Value="False" />
10        <Window Type="MenuWidgets/Button" Name="orxonox/QuickGameTestButton" >
11            <Property Name="Text" Value="Quickstart" />
12            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
13            <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.2875,0},{0.6,0},{0.3375,0}}" />
14            <Event Name="Clicked" Function="MainMenu.QuickGameTestButton_clicked"/>
15        </Window>
16        <Window Type="MenuWidgets/Button" Name="orxonox/SingleplayerButton" >
17            <Property Name="Text" Value="Singleplayer" />
18            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
19            <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.3625,0},{0.6,0},{0.4125,0}}" />
20            <Event Name="Clicked" Function="MainMenu.SingleplayerButton_clicked"/>
21        </Window>
22        <Window Type="MenuWidgets/Button" Name="orxonox/MultiplayerButton" >
23            <Property Name="Text" Value="Multiplayer" />
24            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
25            <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.4375,0},{0.6,0},{0.4875,0}}" />
26            <Event Name="Clicked" Function="MainMenu.MultiplayerButton_clicked"/>
27        </Window>
28        <Window Type="MenuWidgets/Button" Name="orxonox/SettingsButton" >
29            <Property Name="Text" Value="Settings" />
30            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
31            <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.5125,0},{0.6,0},{0.5625,0}}" />
32            <Event Name="Clicked" Function="MainMenu.SettingsButton_clicked"/>
33        </Window>
34        <Window Type="MenuWidgets/Button" Name="orxonox/CreditsButton" >
35            <Property Name="Text" Value="Credits" />
36            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
37            <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.5875,0},{0.6,0},{0.6375,0}}" />
38            <Event Name="Clicked" Function="MainMenu.CreditsButton_clicked"/>
39        </Window>
40        <Window Type="MenuWidgets/Button" Name="orxonox/ExitButton" >
41            <Property Name="Text" Value="Exit" />
42            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
43            <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.6625,0},{0.6,0},{0.7125,0}}" />
44            <Event Name="Clicked" Function="MainMenu.ExitButton_clicked"/>
45        </Window>
46    </Window>
47</GUILayout>
Note: See TracBrowser for help on using the repository browser.