Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/gamestate/data/gui/layouts/GraphicsMenu.layout @ 7047

Last change on this file since 7047 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.9 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2
3<GUILayout >
4    <Window Type="MenuWidgets/StaticImage" Name="orxonox/GraphicsBackground" >
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},{1,0}}" />
9        <Property Name="BackgroundEnabled" Value="False" />
10        <Window Type="MenuWidgets/StaticText" Name="orxonox/GraphicsWindow" >
11            <Property Name="Text" Value="Graphics" />
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.2875,0},{0.75,0},{0.6375,0}}" />
18            <Window Type="MenuWidgets/StaticText" Name="orxonox/Resolution" >
19                <Property Name="Text" Value="Resolution" />
20                <Property Name="InheritsAlpha" Value="False" />
21                <Property Name="HorzFormatting" Value="HorzCentred" />
22                <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
23                <Property Name="VertFormatting" Value="TopAligned" />
24                <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.15,0},{0.475,0},{0.92,0}}" />
25                <Window Type="MenuWidgets/Listbox" Name="orxonox/ResolutionListbox" >
26                    <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
27                    <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.15,0},{0.95,0},{0.95,0}}" />
28                    <Event Name="ItemSelectionChanged" Function="GraphicsMenu.GraphicsResolutionListbox_changed"/>
29                </Window>
30            </Window>
31            <Window Type="MenuWidgets/StaticText" Name="orxonox/Brightness" >
32                <Property Name="Text" Value="Brightness" />
33                <Property Name="InheritsAlpha" Value="False" />
34                <Property Name="HorzFormatting" Value="HorzCentred" />
35                <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
36                <Property Name="VertFormatting" Value="TopAligned" />
37                <Property Name="UnifiedAreaRect" Value="{{0.525,0},{0.15,0},{0.95,0},{0.35,0}}" />
38                <Window Type="MenuWidgets/HorizontalScrollbar" Name="orxonox/BrightnessScrollbar" >
39                    <Property Name="Disabled" Value="true" />
40                    <Property Name="PageSize" Value="0" />
41                    <Property Name="StepSize" Value="0.1" />
42                    <Property Name="OverlapSize" Value="0" />
43                    <Property Name="DocumentSize" Value="1" />
44                    <Property Name="ScrollPosition" Value="0" />
45                    <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
46                    <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.6,0},{0.95,0},{0.8,0}}" />
47                    <Event Name="ThumbTrackStarted" Function="GraphicsMenu.GraphicsBrightnessScrollbar_started" />
48                    <Event Name="ThumbTrackEnded" Function="GraphicsMenu.GraphicsBrightnessScrollbar_ended" />
49                    <Event Name="ScrollPosChanged" Function="GraphicsMenu.GraphicsBrightnessScrollbar_changed" />
50                </Window>
51            </Window>
52            <Window Type="MenuWidgets/Checkbox" Name="orxonox/FullscreenCheckbox" >
53                <Property Name="Text" Value="Fullscreen" />
54                <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
55                <Property Name="UnifiedAreaRect" Value="{{0.65,0},{0.4,0},{0.85,0},{0.475,0}}" />
56                <Event Name="CheckStateChanged" Function="GraphicsMenu.GraphicsFullscreenCheckbox_clicked"/>
57            </Window>
58            <Window Type="MenuWidgets/StaticText" Name="orxonox/GraphicsInfo" >
59                <Property Name="Text" >
60Changes in graphics
61settings require
62a game restart.</Property>
63                <Property Name="TextColours" Value="FF4444FF" />
64                <Property Name="InheritsAlpha" Value="False" />
65                <Property Name="HorzFormatting" Value="HorzCentred" />
66                <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
67                <Property Name="VertFormatting" Value="TopAligned" />
68                <Property Name="UnifiedAreaRect" Value="{{0.525,0},{0.525,0},{0.95,0},{0.92,0}}" />
69            </Window>
70        </Window>
71        <Window Type="MenuWidgets/Button" Name="orxonox/GraphicsBackButton" >
72            <Property Name="Text" Value="Back" />
73            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
74            <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.6625,0},{0.6,0},{0.7125,0}}" />
75            <Event Name="Clicked" Function="GraphicsMenu.GraphicsBackButton_clicked"/>
76        </Window>
77    </Window>
78</GUILayout>
Note: See TracBrowser for help on using the repository browser.