Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/gamestate/data/gui/layouts/SettingsMenu.layout @ 6950

Last change on this file since 6950 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: 4.1 KB
RevLine 
[6363]1<?xml version="1.0" encoding="UTF-8"?>
2
3<GUILayout >
[6564]4    <Window Type="MenuWidgets/StaticImage" Name="orxonox/SettingsBackground" >
[6363]5        <Property Name="InheritsAlpha" Value="False" />
6        <Property Name="FrameEnabled" Value="False" />
7        <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
8        <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
9        <Property Name="BackgroundEnabled" Value="False" />
[6564]10        <Window Type="MenuWidgets/StaticText" Name="orxonox/SettingsWindow" >
[6363]11            <Property Name="Text" Value="Settings" />
12            <Property Name="Alpha" Value="0.8" />
13            <Property Name="InheritsAlpha" Value="False" />
14            <Property Name="HorzFormatting" Value="HorzCentred" />
15            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
16            <Property Name="VertFormatting" Value="TopAligned" />
17            <Property Name="UnifiedAreaRect" Value="{{0.25,0},{0.3625,0},{0.75,0},{0.6375,0}}" />
[6564]18            <Window Type="MenuWidgets/Button" Name="orxonox/GameplayButton" >
[6363]19                <Property Name="Text" Value="Gameplay" />
20                <Property Name="Disabled" Value="True" />
21                <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
22                <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.181818,0},{0.45,0},{0.363636,0}}" />
23                <Event Name="Clicked" Function="SettingsMenu.SettingsGameplayButton_clicked"/>
24            </Window>
[6564]25            <Window Type="MenuWidgets/Button" Name="orxonox/MultiplayerOptionsButton" >
[6363]26                <Property Name="Text" Value="Multiplayer options" />
27                <Property Name="Disabled" Value="True" />
28                <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
29                <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.454545,0},{0.45,0},{0.636363,0}}" />
30                <Event Name="Clicked" Function="SettingsMenu.SettingsMultiplayerOptionsButton_clicked"/>
31            </Window>
[6564]32            <Window Type="MenuWidgets/Button" Name="orxonox/ControlsButton" >
[6363]33                <Property Name="Text" Value="Controls" />
34                <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
35                <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.727272,0},{0.45,0},{0.909090,0}}" />
36                <Event Name="Clicked" Function="SettingsMenu.SettingsControlsButton_clicked"/>
37            </Window>
[6564]38            <Window Type="MenuWidgets/Button" Name="orxonox/GraphicsButton" >
[6363]39                <Property Name="Text" Value="Graphics" />
40                <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
41                <Property Name="UnifiedAreaRect" Value="{{0.55,0},{0.181818,0},{0.95,0},{0.363636,0}}" />
42                <Event Name="Clicked" Function="SettingsMenu.SettingsGraphicsButton_clicked"/>
43            </Window>
[6564]44            <Window Type="MenuWidgets/Button" Name="orxonox/AudioButton" >
[6363]45                <Property Name="Text" Value="Audio" />
46                <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
47                <Property Name="UnifiedAreaRect" Value="{{0.55,0},{0.454545,0},{0.95,0},{0.636363,0}}" />
48                <Event Name="Clicked" Function="SettingsMenu.SettingsAudioButton_clicked"/>
49            </Window>
[6564]50            <Window Type="MenuWidgets/Button" Name="orxonox/ResetSettingsButton" >
[6363]51                <Property Name="Text" Value="Reset settings" />
52                <Property Name="Disabled" Value="True" />
53                <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
54                <Property Name="UnifiedAreaRect" Value="{{0.55,0},{0.727272,0},{0.95,0},{0.909090,0}}" />
55                <Event Name="Clicked" Function="SettingsMenu.SettingsResetSettingsButton_clicked"/>
56            </Window>
57        </Window>
[6564]58        <Window Type="MenuWidgets/Button" Name="orxonox/SettingsBackButton" >
[6363]59            <Property Name="Text" Value="Back" />
60            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
61            <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.6625,0},{0.6,0},{0.7125,0}}" />
62            <Event Name="Clicked" Function="SettingsMenu.SettingsBackButton_clicked"/>
63        </Window>
64    </Window>
65</GUILayout>
Note: See TracBrowser for help on using the repository browser.