Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/gui/layouts/GraphicsMenu.layout @ 8142

Last change on this file since 8142 was 8079, checked in by landauf, 14 years ago

merged usability branch back to trunk

incomplete summary of the changes in this branch:

  • enhanced keyboard navigation in GUIs
  • implemented new graphics menu and changeable window size at runtime
  • added developer mode
  • HUD shows if game is paused, game pauses if ingame menu is opened
  • removed a few obsolete commands and hid some that are more for internal use
  • numpad works in console and gui
  • faster loading of level info
  • enhanced usage of compositors (Shader class)
  • improved camera handling, configurable FOV and aspect ratio
  • Property svn:eol-style set to native
File size: 15.6 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.15,0},{0.75,0},{0.6375,0}}" />
18            <Window Type="MenuWidgets/TabControl" Name="orxonox/GraphicsTabControl" >
19                <Property Name="TabHeight" Value="{0,26.4388}" />
20                <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
21                <Property Name="TabPanePosition" Value="Top" />
22                <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.1,0},{0.95,0},{0.925,0}}" />
23                <Window Type="DefaultWindow" Name="orxonox/Display" >
24                    <Property Name="Text" Value="Display" />
25                    <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
26                    <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
27                    <Window Type="MenuWidgets/StaticText" Name="orxonox/Display/Resolution" >
28                        <Property Name="Text" Value="Resolution" />
29                        <Property Name="HorzFormatting" Value="HorzCentred" />
30                        <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
31                        <Property Name="VertFormatting" Value="TopAligned" />
32                        <Property Name="UnifiedAreaRect" Value="{{0.025,0},{0.035,0},{0.4875,0},{0.96,0}}" />
33                        <Window Type="MenuWidgets/Checkbox" Name="orxonox/Display/Resolution/Fullscreen" >
34                            <Property Name="Text" Value="Fullscreen" />
35                            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
36                            <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.15,0},{0.95,0},{0.27,0}}" />
37                            <Event Name="CheckStateChanged" Function="GraphicsMenu.callback_FullscreenCheckbox_CheckStateChanged" />
38                        </Window>
39                        <Window Type="MenuWidgets/Combobox" Name="orxonox/Display/Resolution/Combobox" >
40                            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
41                            <Property Name="ClippedByParent" Value="False" />
42                            <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.3,0},{0.95,0},{1.2,0}}" />
43                            <Property Name="MaxEditTextLength" Value="1073741823" />
44                            <Event Name="ListSelectionAccepted" Function="GraphicsMenu.callback_ResolutionCombobox_ListSelectionAccepted" />
45                        </Window>
46                        <Window Type="MenuWidgets/Editbox" Name="orxonox/Display/Resolution/EditboxWidth" >
47                            <Property Name="MaxTextLength" Value="1073741823" />
48                            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
49                            <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.45,0},{0.45,0},{0.57,0}}" />
50                            <Event Name="TextChanged" Function="GraphicsMenu.callback_ResolutionEditboxWidth_TextChanged" />
51                        </Window>
52                        <Window Type="MenuWidgets/Editbox" Name="orxonox/Display/Resolution/EditboxHeight" >
53                            <Property Name="MaxTextLength" Value="1073741823" />
54                            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
55                            <Property Name="UnifiedAreaRect" Value="{{0.55,0},{0.45,0},{0.95,0},{0.57,0}}" />
56                            <Event Name="TextChanged" Function="GraphicsMenu.callback_ResolutionEditboxHeight_TextChanged" />
57                        </Window>
58                        <Window Type="MenuWidgets/StaticText" Name="orxonox/Display/Resolution/x" >
59                            <Property Name="Text" Value="x" />
60                            <Property Name="FrameEnabled" Value="False" />
61                            <Property Name="HorzFormatting" Value="HorzCentred" />
62                            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
63                            <Property Name="UnifiedAreaRect" Value="{{0.45,0},{0.45,0},{0.55,0},{0.57,0}}" />
64                            <Property Name="BackgroundEnabled" Value="False" />
65                        </Window>
66                        <Window Type="MenuWidgets/Button" Name="orxonox/Display/Resolution/Apply" >
67                            <Property Name="Text" Value="Apply" />
68                            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
69                            <Property Name="UnifiedAreaRect" Value="{{0.25,0},{0.61,0},{0.75,0},{0.73,0}}" />
70                            <Event Name="Clicked" Function="GraphicsMenu.callback_Apply_Clicked" />
71                        </Window>
72                        <Window Type="MenuWidgets/StaticText" Name="orxonox/Display/Resolution/AspectRatioLabel" >
73                            <Property Name="Text" Value="Aspect Ratio" />
74                            <Property Name="FrameEnabled" Value="False" />
75                            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
76                            <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.825,0},{0.6,0},{0.95,0}}" />
77                            <Property Name="BackgroundEnabled" Value="False" />
78                        </Window>
79                        <Window Type="MenuWidgets/Editbox" Name="orxonox/Display/Resolution/AspectRatio" >
80                            <Property Name="Text" Value="1" />
81                            <Property Name="MaxTextLength" Value="1073741823" />
82                            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
83                            <Property Name="UnifiedAreaRect" Value="{{0.65,0},{0.825,0},{0.95,0},{0.95,0}}" />
84                        </Window>
85                    </Window>
86                    <Window Type="MenuWidgets/StaticText" Name="orxonox/Display/Theme" >
87                        <Property Name="Text" Value="Theme" />
88                        <Property Name="HorzFormatting" Value="HorzCentred" />
89                        <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
90                        <Property Name="VertFormatting" Value="TopAligned" />
91                        <Property Name="UnifiedAreaRect" Value="{{0.5125,0},{0.035,0},{0.975,0},{0.32,0}}" />
92                        <Window Type="MenuWidgets/Combobox" Name="orxonox/Display/Theme/Combobox" >
93                            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
94                            <Property Name="ClippedByParent" Value="False" />
95                            <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.5,0},{0.95,0},{1.6,0}}" />
96                            <Property Name="MaxEditTextLength" Value="1073741823" />
97                            <Event Name="ListSelectionAccepted" Function="GraphicsMenu.callback_ThemeCombobox_ListSelectionAccepted" />
98                        </Window>
99                    </Window>
100                    <Window Type="MenuWidgets/StaticText" Name="orxonox/Display/More" >
101                        <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
102                        <Property Name="UnifiedAreaRect" Value="{{0.5125,0},{0.37,0},{0.975,0},{0.7,0}}" />
103                        <Window Type="MenuWidgets/Checkbox" Name="orxonox/Display/More/VSync" >
104                            <Property Name="Text" Value="VSync" />
105                            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
106                            <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.1,0},{0.95,0},{0.45,0}}" />
107                            <Event Name="CheckStateChanged" Function="GraphicsMenu.callback_VSyncCheckbox_CheckStateChanged" />
108                        </Window>
109                        <Window Type="MenuWidgets/StaticText" Name="orxonox/Display/More/FSAALabel" >
110                            <Property Name="Text" Value="FSAA" />
111                            <Property Name="FrameEnabled" Value="False" />
112                            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
113                            <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.55,0},{0.3,0},{0.9,0}}" />
114                            <Property Name="BackgroundEnabled" Value="False" />
115                        </Window>
116                        <Window Type="MenuWidgets/Combobox" Name="orxonox/Display/More/FSAA" >
117                            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
118                            <Property Name="ClippedByParent" Value="False" />
119                            <Property Name="UnifiedAreaRect" Value="{{0.3,0},{0.55,0},{0.95,0},{2.1,0}}" />
120                            <Property Name="MaxEditTextLength" Value="1073741823" />
121                            <Event Name="ListSelectionAccepted" Function="GraphicsMenu.callback_FSAACombobox_ListSelectionAccepted" />
122                        </Window>
123                    </Window>
124                    <Window Type="MenuWidgets/StaticText" Name="orxonox/Display/Notice" >
125                        <Property Name="Font" Value="BlueHighway-12" />
126                        <Property Name="Text" >Changing the theme, FSAA,
127or VSync requires a restart</Property>
128                        <Property Name="HorzFormatting" Value="HorzCentred" />
129                        <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
130                        <Property Name="UnifiedAreaRect" Value="{{0.5125,0},{0.75,0},{0.975,0},{0.96,0}}" />
131                    </Window>
132                    <Window Type="MenuWidgets/StaticText" Name="orxonox/Display/NoticeRed" >
133                        <Property Name="Font" Value="BlueHighway-12" />
134                        <Property Name="Text" >Restart required</Property>
135                        <Property Name="TextColours" Value="tl:FFFF0000 tr:FFFF8888 bl:FFFF8888 br:FFFFFFFF" />
136                        <Property Name="HorzFormatting" Value="HorzCentred" />
137                        <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
138                        <Property Name="UnifiedAreaRect" Value="{{0.5125,0},{0.75,0},{0.975,0},{0.96,0}}" />
139                    </Window>
140                </Window>
141                <Window Type="DefaultWindow" Name="orxonox/Settings" >
142                    <Property Name="Text" Value="Settings" />
143                    <Property Name="Visible" Value="False" />
144                    <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
145                    <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
146                    <Window Type="MenuWidgets/StaticText" Name="orxonox/Settings/FovLabel" >
147                        <Property Name="Text" Value="Vertical field of view (FOV)" />
148                        <Property Name="FrameEnabled" Value="False" />
149                        <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
150                        <Property Name="UnifiedAreaRect" Value="{{0.035,0},{0.05,0},{0.5,0},{0.12,0}}" />
151                        <Property Name="BackgroundEnabled" Value="False" />
152                    </Window>
153                    <Window Type="MenuWidgets/StaticText" Name="orxonox/Settings/FpsLimitLabel" >
154                        <Property Name="Text" Value="Maximal frame rate" />
155                        <Property Name="FrameEnabled" Value="False" />
156                        <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
157                        <Property Name="UnifiedAreaRect" Value="{{0.035,0},{0.18,0},{0.5,0},{0.25,0}}" />
158                        <Property Name="BackgroundEnabled" Value="False" />
159                    </Window>
160                    <Window Type="MenuWidgets/StaticText" Name="orxonox/Settings/ParticleLodLabel" >
161                        <Property Name="Text" Value="Particle detail level" />
162                        <Property Name="FrameEnabled" Value="False" />
163                        <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
164                        <Property Name="UnifiedAreaRect" Value="{{0.035,0},{0.31,0},{0.5,0},{0.38,0}}" />
165                        <Property Name="BackgroundEnabled" Value="False" />
166                    </Window>
167                    <Window Type="MenuWidgets/Editbox" Name="orxonox/Settings/Fov" >
168                        <Property Name="MaxTextLength" Value="1073741823" />
169                        <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
170                        <Property Name="UnifiedAreaRect" Value="{{0.5,0},{0.03,0},{0.65,0},{0.14,0}}" />
171                    </Window>
172                    <Window Type="MenuWidgets/Editbox" Name="orxonox/Settings/FpsLimit" >
173                        <Property Name="MaxTextLength" Value="1073741823" />
174                        <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
175                        <Property Name="UnifiedAreaRect" Value="{{0.5,0},{0.16,0},{0.65,0},{0.27,0}}" />
176                    </Window>
177                    <Window Type="MenuWidgets/Combobox" Name="orxonox/Settings/ParticleLodCombobox" >
178                        <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
179                        <Property Name="ClippedByParent" Value="False" />
180                        <Property Name="UnifiedAreaRect" Value="{{0.5,0},{0.29,0},{0.7,0},{0.725,0}}" />
181                        <Property Name="MaxEditTextLength" Value="1073741823" />
182                    </Window>
183                    <Window Type="MenuWidgets/Checkbox" Name="orxonox/Settings/MeshLodCheckbox" >
184                        <Property Name="Text" Value="Enable mesh LOD" />
185                        <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
186                        <Property Name="UnifiedAreaRect" Value="{{0.035,0},{0.44,0},{0.5,0},{0.51,0}}" />
187                    </Window>
188                    <Window Type="MenuWidgets/Checkbox" Name="orxonox/Settings/MotionBlurCheckbox" >
189                        <Property Name="Text" Value="Enable motion blur" />
190                        <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
191                        <Property Name="UnifiedAreaRect" Value="{{0.035,0},{0.57,0},{0.5,0},{0.64,0}}" />
192                    </Window>
193                </Window>
194            </Window>
195        </Window>
196        <Window Type="MenuWidgets/Button" Name="orxonox/GraphicsOkButton" >
197            <Property Name="Text" Value="OK" />
198            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
199            <Property Name="UnifiedAreaRect" Value="{{0.2875,0},{0.6625,0},{0.4875,0},{0.7125,0}}" />
200            <Event Name="Clicked" Function="GraphicsMenu.callback_Ok_Clicked" />
201        </Window>
202        <Window Type="MenuWidgets/Button" Name="orxonox/GraphicsCancelButton" >
203            <Property Name="Text" Value="Cancel" />
204            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
205            <Property Name="UnifiedAreaRect" Value="{{0.5125,0},{0.6625,0},{0.7125,0},{0.7125,0}}" />
206            <Event Name="Clicked" Function="GraphicsMenu.callback_Cancel_Clicked" />
207        </Window>
208    </Window>
209</GUILayout>
Note: See TracBrowser for help on using the repository browser.