Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/gamestate/data/gui/layouts/InfoPopup.layout @ 6698

Last change on this file since 6698 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: 1.7 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2
3<GUILayout >
4    <Window Type="DefaultWindow" Name="orxonox/InfoPopup_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}}" />
8        <Window Type="MenuWidgets/StaticImage" Name="orxonox/InfoPopup_Background" >
9            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
10            <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
11            <Property Name="Alpha" Value="0.7" />
12            <Window Type="MenuWidgets/Button" Name="orxonox/InfoPopup_close" >
13                <Property Name="Text" Value="Close" />
14                <Property Name="Alpha" Value="0.7" />
15                <Property Name="InheritsAlpha" Value="False" />
16                <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
17                <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.5,0},{0.6,0},{0.55,0}}" />
18                <Event Name="Clicked" Function="InfoPopup.close"/>
19            </Window>
20            <Window Type="MenuWidgets/StaticText" Name="orxonox/InfoPopup_text" >
21                <Property Name="Text" Value="Template text" />
22                <Property Name="TextColours" Value="FF4444FF" />
23                <Property Name="HorzFormatting" Value="WordWrapCentred" />
24                <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
25                <Property Name="UnifiedAreaRect" Value="{{0.25,0},{0.375,0},{0.75,0},{0.475,0}}" />
26                <Property Name="InheritsAlpha" Value="False" />
27               <Property Name="Alpha" Value="0.8" />
28            </Window>
29        </Window>
30    </Window>
31</GUILayout>
Note: See TracBrowser for help on using the repository browser.