[Orxonox-commit 1883] r6600 - in code/branches/hudelements/data/gui: layouts scripts
sfluecki at orxonox.net
sfluecki at orxonox.net
Mon Mar 22 16:27:29 CET 2010
Author: sfluecki
Date: 2010-03-22 16:27:28 +0100 (Mon, 22 Mar 2010)
New Revision: 6600
Added:
code/branches/hudelements/data/gui/layouts/InGamePickupHUD.layout
code/branches/hudelements/data/gui/scripts/InGamePickupHUD.lua
Log:
2. Update
Added: code/branches/hudelements/data/gui/layouts/InGamePickupHUD.layout
===================================================================
--- code/branches/hudelements/data/gui/layouts/InGamePickupHUD.layout (rev 0)
+++ code/branches/hudelements/data/gui/layouts/InGamePickupHUD.layout 2010-03-22 15:27:28 UTC (rev 6600)
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<GUILayout >
+ <Window Type="DefaultWindow" Name="orxonox/InGamePickupHUD_RootWindow" >
+ <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/StaticImage" Name="orxonox/InGamePickupHUD_Overview" >
+ <Property Name="Font" Value="BlueHighway-12" />
+ <Property Name="Text" Value="Pickup List" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0,5},{0.15,0},{0.2,0},{0.45,0}}" />
+ <Property Name="Alpha" Value="0.3" />
+ <!--Event Name="Clicked" Function="InGameMenu.button_return_clicked"/-->
+ <Window Type="TaharezLook/StaticText" Name="orxonox/InGamePickupHUD_PickupTitle" >
+ <Property Name="Text" Value="Pickup List" />
+ <Property Name="Font" Value="BlueHighway-10" />
+ <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
+ <Property Name="UnifiedAreaRect" Value="{{0,5},{0,5},{1,-5},{0,30}}" />
+ </Window>
+ </Window>
+
+
+ </Window>
+
+</GUILayout >
Added: code/branches/hudelements/data/gui/scripts/InGamePickupHUD.lua
===================================================================
--- code/branches/hudelements/data/gui/scripts/InGamePickupHUD.lua (rev 0)
+++ code/branches/hudelements/data/gui/scripts/InGamePickupHUD.lua 2010-03-22 15:27:28 UTC (rev 6600)
@@ -0,0 +1,29 @@
+-- InGamePickupHUD.lua
+
+BasicGUI = require("BasicGUI")
+local P = BasicGUI:new() --inherit everything from the gui package
+if _REQUIREDNAME == nil then
+ InGamePickupHUD = P
+else
+ _G[_REQUIREDNAME] = P
+end
+
+P.filename = "InGamePickupHUD"
+P.layoutString = "InGamePickupHUD.layout"
+
+function P:init()
+end
+
+
+-- events for ingamemenu
+
+
+function P.button_Pickup_clicked(e)
+ orxonox.Game:getInstance():popState()
+ orxonox.Game:getInstance():popState()
+ orxonox.Game:getInstance():requestState("mainmenu")
+ hideGUI("InGameMenu")
+end
+
+return P
+
More information about the Orxonox-commit
mailing list