Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/gamestate/data/gui/layouts/InGameMenu.layout @ 7004

Last change on this file since 7004 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.1 KB
RevLine 
[6363]1<?xml version="1.0" encoding="UTF-8"?>
2
3<GUILayout >
4    <Window Type="DefaultWindow" Name="orxonox/InGameMenu_RootWindow" >
5        <Property Name="InheritsAlpha" Value="False" />
6        <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
7        <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
[6564]8        <Window Type="MenuWidgets/Button" Name="orxonox/InGameMenu_ReturnButton" >
[6363]9            <Property Name="Text" Value="Return to Game" />
10            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
11            <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.3625,0},{0.6,0},{0.4125,0}}" />
12            <Property Name="Alpha" Value="0.7" />
13            <Event Name="Clicked" Function="InGameMenu.button_return_clicked"/>
14        </Window>
[6564]15        <Window Type="MenuWidgets/Button" Name="orxonox/InGameMenu_MainMenuButton" >
[6363]16            <Property Name="Text" Value="Main Menu" />
17            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
18            <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.4625,0},{0.6,0},{0.5125,0}}" />
19            <Property Name="Alpha" Value="0.7" />
20            <Event Name="Clicked" Function="InGameMenu.button_mainmenu_clicked"/>
21        </Window>
[6564]22        <Window Type="MenuWidgets/Button" Name="orxonox/InGameMenu_SettingsButton" >
[6363]23            <Property Name="Text" Value="Settings" />
24            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
25            <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.5625,0},{0.6,0},{0.6125,0}}" />
26            <Property Name="Alpha" Value="0.7" />
27            <Event Name="Clicked" Function="InGameMenu.button_settings_clicked"/>
28        </Window>
[6564]29        <Window Type="MenuWidgets/Button" Name="orxonox/InGameMenu_QuitButton" >
[6363]30            <Property Name="Text" Value="Quit" />
31            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
32            <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.6625,0},{0.6,0},{0.7125,0}}" />
33            <Property Name="Alpha" Value="0.7" />
34            <Event Name="Clicked" Function="InGameMenu.button_quit_clicked"/>
35        </Window>
36    </Window>
37</GUILayout>
Note: See TracBrowser for help on using the repository browser.