Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7006


Ignore:
Timestamp:
May 29, 2010, 5:09:58 PM (14 years ago)
Author:
dafrick
Message:

Added Menu to display and edit config values.
But the list of available config values has still to be populated and editing doesn't work yet.

Location:
code/branches/presentation3/data/gui
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation3/data/gui/layouts/SettingsMenu.layout

    r6746 r7006  
    22
    33<GUILayout >
    4     <Window Type="MenuWidgets/StaticImage" Name="orxonox/SettingsBackground" >
     4    <Window Type="MenuWidgets/StaticImage" Name="orxonox/SettingsMenu/Background" >
    55        <Property Name="InheritsAlpha" Value="False" />
    66        <Property Name="FrameEnabled" Value="False" />
     
    88        <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
    99        <Property Name="BackgroundEnabled" Value="False" />
    10         <Window Type="MenuWidgets/StaticText" Name="orxonox/SettingsWindow" >
     10        <Window Type="MenuWidgets/StaticText" Name="orxonox/SettingsMenu/SettingsWindow" >
    1111            <Property Name="Text" Value="Settings" />
    1212            <Property Name="Alpha" Value="0.8" />
     
    1616            <Property Name="VertFormatting" Value="TopAligned" />
    1717            <Property Name="UnifiedAreaRect" Value="{{0.25,0},{0.3625,0},{0.75,0},{0.6375,0}}" />
    18             <Window Type="MenuWidgets/Button" Name="orxonox/GameplayButton" >
     18            <Window Type="MenuWidgets/Button" Name="orxonox/SettingsMenu/GameplayButton" >
    1919                <Property Name="Text" Value="Gameplay" />
    2020                <Property Name="Disabled" Value="True" />
     
    2323                <Event Name="Clicked" Function="SettingsMenu.SettingsGameplayButton_clicked"/>
    2424            </Window>
    25             <Window Type="MenuWidgets/Button" Name="orxonox/MultiplayerOptionsButton" >
     25            <Window Type="MenuWidgets/Button" Name="orxonox/SettingsMenu/MultiplayerOptionsButton" >
    2626                <Property Name="Text" Value="Multiplayer options" />
    2727                <Property Name="Disabled" Value="True" />
     
    3030                <Event Name="Clicked" Function="SettingsMenu.SettingsMultiplayerOptionsButton_clicked"/>
    3131            </Window>
    32             <Window Type="MenuWidgets/Button" Name="orxonox/ControlsButton" >
     32            <Window Type="MenuWidgets/Button" Name="orxonox/SettingsMenu/ControlsButton" >
    3333                <Property Name="Text" Value="Controls" />
    3434                <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
     
    3636                <Event Name="Clicked" Function="SettingsMenu.SettingsControlsButton_clicked"/>
    3737            </Window>
    38             <Window Type="MenuWidgets/Button" Name="orxonox/GraphicsButton" >
     38            <Window Type="MenuWidgets/Button" Name="orxonox/SettingsMenu/GraphicsButton" >
    3939                <Property Name="Text" Value="Graphics" />
    4040                <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
     
    4242                <Event Name="Clicked" Function="SettingsMenu.SettingsGraphicsButton_clicked"/>
    4343            </Window>
    44             <Window Type="MenuWidgets/Button" Name="orxonox/AudioButton" >
     44            <Window Type="MenuWidgets/Button" Name="orxonox/SettingsMenu/AudioButton" >
    4545                <Property Name="Text" Value="Audio" />
    4646                <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
     
    4848                <Event Name="Clicked" Function="SettingsMenu.SettingsAudioButton_clicked"/>
    4949            </Window>
    50             <Window Type="MenuWidgets/Button" Name="orxonox/ResetSettingsButton" >
    51                 <Property Name="Text" Value="Reset settings" />
     50            <Window Type="MenuWidgets/Button" Name="orxonox/SettingsMenu/MiscellaneousButton" >
     51                <Property Name="Text" Value="Miscellaneous" />
    5252                <Property Name="Disabled" Value="True" />
    5353                <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
    5454                <Property Name="UnifiedAreaRect" Value="{{0.55,0},{0.727272,0},{0.95,0},{0.909090,0}}" />
    55                 <Event Name="Clicked" Function="SettingsMenu.SettingsResetSettingsButton_clicked"/>
     55                <Event Name="Clicked" Function="SettingsMenu.SettingsMiscellaneousButton_clicked"/>
    5656            </Window>
    5757        </Window>
    58         <Window Type="MenuWidgets/Button" Name="orxonox/SettingsBackButton" >
     58        <Window Type="MenuWidgets/Button" Name="orxonox/SettingsMenu/SettingsBackButton" >
    5959            <Property Name="Text" Value="Back" />
    6060            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
  • code/branches/presentation3/data/gui/scripts/SettingsMenu.lua

    r6748 r7006  
    2424end
    2525
    26 function P.SettingsResetSettingsButton_clicked(e)
    27     -- reset settings
    28     logMessage(0, "event: reset settings")
     26function P.SettingsMiscellaneousButton_clicked(e)
     27    showMenuSheet("MiscConfigMenu", true)
    2928end
    3029
Note: See TracChangeset for help on using the changeset viewer.