Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/gamestate/data/gui/layouts/DecisionPopup.layout @ 6699

Last change on this file since 6699 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.2 KB
RevLine 
[6145]1<?xml version="1.0" encoding="UTF-8"?>
2
[6335]3<GUILayout >
4    <Window Type="DefaultWindow" Name="orxonox/DecisionPopup_RootWindow" >
5        <Property Name="InheritsAlpha" Value="False" />
6        <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
[6145]7        <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
[6564]8        <Window Type="MenuWidgets/StaticImage" Name="orxonox/DecisionPopup_Background" >
[6339]9            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
[6335]10            <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
11            <Property Name="Alpha" Value="0.6" />
[6564]12            <Window Type="MenuWidgets/Button" Name="orxonox/DecisionPopup_button_yes" >
[6335]13                <Property Name="Text" Value="Yes" />
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.2875,0},{0.5625,0},{0.4875,0},{0.6125,0}}" />
18                <Event Name="Clicked" Function="DecisionPopup.button_yes"/>
19            </Window>
[6564]20            <Window Type="MenuWidgets/Button" Name="orxonox/DecisionPopup_button_no" >
[6145]21                <Property Name="Text" Value="No" />
[6335]22                <Property Name="Alpha" Value="0.8" />
23                <Property Name="InheritsAlpha" Value="False" />
[6145]24                <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
[6335]25                <Property Name="UnifiedAreaRect" Value="{{0.5125,0},{0.5625,0},{0.7125,0},{0.6125,0}}" />
26                <Event Name="Clicked" Function="DecisionPopup.button_no"/>
[6145]27            </Window>
[6564]28            <Window Type="MenuWidgets/StaticText" Name="orxonox/DecisionPopup_text" >
[6335]29                <Property Name="Text" Value="Template text" />
30                <Property Name="HorzFormatting" Value="WordWrapCentred" />
[6145]31                <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
[6335]32                <Property Name="UnifiedAreaRect" Value="{{0.25,0},{0.4375,0},{0.75,0},{0.5375,0}}" />
33                <Property Name="InheritsAlpha" Value="False" />
34                <Property Name="Alpha" Value="0.8" />
35            </Window>
36        </Window>
37    </Window>
[6145]38</GUILayout>
Note: See TracBrowser for help on using the repository browser.