[Orxonox-commit 1506] r6224 - in code/branches/presentation2/data/gui: layouts scripts
scheusso at orxonox.net
scheusso at orxonox.net
Thu Dec 3 11:26:04 CET 2009
Author: scheusso
Date: 2009-12-03 11:26:04 +0100 (Thu, 03 Dec 2009)
New Revision: 6224
Added:
code/branches/presentation2/data/gui/layouts/KeyBindMenu.layout
code/branches/presentation2/data/gui/scripts/KeyBindMenu.lua
Log:
adding keybind menu files
Added: code/branches/presentation2/data/gui/layouts/KeyBindMenu.layout
===================================================================
--- code/branches/presentation2/data/gui/layouts/KeyBindMenu.layout (rev 0)
+++ code/branches/presentation2/data/gui/layouts/KeyBindMenu.layout 2009-12-03 10:26:04 UTC (rev 6224)
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<GUILayout >
+ <Window Type="DefaultWindow" Name="orxonox/KeyBindBackground" >
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
+ <Window Type="TaharezLook/StaticText" Name="orxonox/KeyBindWindow" >
+ <Property Name="Text" Value="KeyBindings" />
+ <Property Name="Alpha" Value="0.8" />
+ <Property Name="InheritsAlpha" Value="False" />
+ <Property Name="HorzFormatting" Value="HorzCentred" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="VertFormatting" Value="TopAligned" />
+ <Property Name="UnifiedAreaRect" Value="{{0.25,0},{0.325,0},{0.75,0},{0.6,0}}" />
+ <Window Type="TaharezLook/ScrollablePane" Name="orxonox/KeyBindPane/" >
+ <Property Name="ContentArea" Value="l:0 t:0 r:0 b:0" />
+ <Property Name="HorzStepSize" Value="0.1" />
+ <Property Name="VertStepSize" Value="0.1" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="HorzOverlapSize" Value="0.01" />
+ <Property Name="UnifiedAreaRect" Value="{{0.025,0},{0.15,0},{0.984379,0},{0.95303,0}}" />
+ <Property Name="VertOverlapSize" Value="0.01" />
+ <Property Name="HorzScrollPosition" Value="0" />
+ <Property Name="VertScrollPosition" Value="0" />
+ <AutoWindow NameSuffix="__auto_container__" >
+ <Property Name="ContentArea" Value="l:0 t:0 r:0 b:0" />
+ <Property Name="ChildExtentsArea" Value="l:0 t:0 r:0 b:0" />
+ </AutoWindow>
+ </Window>
+ </Window>
+ <Window Type="TaharezLook/Button" Name="orxonox/KeyBindBackButton" >
+ <Property Name="Text" Value="Back" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.625,0},{0.6,0},{0.675,0}}" />
+ </Window>
+ </Window>
+</GUILayout>
Property changes on: code/branches/presentation2/data/gui/layouts/KeyBindMenu.layout
___________________________________________________________________
Added: svn:executable
+ *
Added: code/branches/presentation2/data/gui/scripts/KeyBindMenu.lua
===================================================================
--- code/branches/presentation2/data/gui/scripts/KeyBindMenu.lua (rev 0)
+++ code/branches/presentation2/data/gui/scripts/KeyBindMenu.lua 2009-12-03 10:26:04 UTC (rev 6224)
@@ -0,0 +1,20 @@
+-- NewMouseControlsMenu.lua
+
+BasicGUI = require("BasicGUI")
+local P = BasicGUI:new() --inherit everything from the gui package
+if _REQUIREDNAME == nil then
+ NewMouseControlsMenu = P
+else
+ _G[_REQUIREDNAME] = P
+end
+
+P.filename = "NewMouseControlsMenu"
+P.layoutString = "NewMouseControlsMenu.layout"
+
+function P.KeyBindBackButton_clicked(e)
+ hideGUI("NewMouseControlsMenu")
+ debug("event: back")
+end
+
+return P
+
Property changes on: code/branches/presentation2/data/gui/scripts/KeyBindMenu.lua
___________________________________________________________________
Added: svn:executable
+ *
More information about the Orxonox-commit
mailing list