Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 6699 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
RevLine 
[6417]1<?xml version="1.0" encoding="UTF-8"?>
2
3<GUILayout >
[6564]4    <Window Type="MenuWidgets/StaticImage" Name="orxonox/MainMenuBackground" >
[6417]5        <Property Name="FrameEnabled" Value="False" />
6        <Property Name="InheritsAlpha" Value="False" />
7        <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
[6564]8        <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1.0,0},{1.0,0}}" />
[6417]9        <Property Name="BackgroundEnabled" Value="False" />
[6564]10        <Window Type="MenuWidgets/Button" Name="orxonox/QuickGameTestButton" >
[6417]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"/>
[5491]15        </Window>
[6564]16        <Window Type="MenuWidgets/Button" Name="orxonox/SingleplayerButton" >
[6417]17            <Property Name="Text" Value="Singleplayer" />
[5700]18            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
[6417]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"/>
[5527]21        </Window>
[6564]22        <Window Type="MenuWidgets/Button" Name="orxonox/MultiplayerButton" >
[6417]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"/>
[5491]27        </Window>
[6564]28        <Window Type="MenuWidgets/Button" Name="orxonox/SettingsButton" >
[6417]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"/>
[5491]33        </Window>
[6564]34        <Window Type="MenuWidgets/Button" Name="orxonox/CreditsButton" >
[6417]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"/>
[5491]39        </Window>
[6564]40        <Window Type="MenuWidgets/Button" Name="orxonox/ExitButton" >
[6417]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"/>
[5491]45        </Window>
46    </Window>
47</GUILayout>
Note: See TracBrowser for help on using the repository browser.