[Orxonox-commit 1304] r6022 - code/branches/ingamemenu/data/gui/scripts

dafrick at orxonox.net dafrick at orxonox.net
Wed Nov 4 12:51:05 CET 2009


Author: dafrick
Date: 2009-11-04 12:51:05 +0100 (Wed, 04 Nov 2009)
New Revision: 6022

Modified:
   code/branches/ingamemenu/data/gui/scripts/MainMenu.lua
Log:
Adujusted MainMenu to properly work with the changed InitialiseGUI script.

Modified: code/branches/ingamemenu/data/gui/scripts/MainMenu.lua
===================================================================
--- code/branches/ingamemenu/data/gui/scripts/MainMenu.lua	2009-11-04 11:28:59 UTC (rev 6021)
+++ code/branches/ingamemenu/data/gui/scripts/MainMenu.lua	2009-11-04 11:51:05 UTC (rev 6022)
@@ -49,7 +49,7 @@
     if choice then
         orxonox.LevelManager:getInstance():setDefaultLevel(choice:getText() .. ".oxw")
         orxonox.CommandExecutor:execute("startGame")
-        toggleGUI()
+        hideGUI(P.filename)
     end
 end
 
@@ -58,7 +58,7 @@
     if choice then
         orxonox.LevelManager:getInstance():setDefaultLevel(choice:getText() .. ".oxw")
         orxonox.CommandExecutor:execute("startServer")
-        toggleGUI()
+        hideGUI(P.filename)
     end
 end
 
@@ -67,7 +67,7 @@
     if choice then
         orxonox.LevelManager:getInstance():setDefaultLevel(choice:getText() .. ".oxw")
         orxonox.CommandExecutor:execute("startDedicated")
-        toggleGUI()
+        hideGUI(P.filename)
     end
 end
 
@@ -76,7 +76,8 @@
     if choice then
         orxonox.LevelManager:getInstance():setDefaultLevel(choice:getText() .. ".oxw")
         orxonox.CommandExecutor:execute("startClient")
-        toggleGUI()
+        hideGUI(P.filename)
+
     end
 end
 




More information about the Orxonox-commit mailing list