[Orxonox-commit 719] r2203 - media/gui/scripts

rgrieder at orxonox.net rgrieder at orxonox.net
Mon Jun 29 16:01:43 CEST 2009


Author: rgrieder
Date: 2009-06-29 16:01:42 +0200 (Mon, 29 Jun 2009)
New Revision: 2203

Modified:
   media/gui/scripts/mainmenu_3.lua
Log:
Accompanying changes to the source repo revision 3249.

Modified: media/gui/scripts/mainmenu_3.lua
===================================================================
--- media/gui/scripts/mainmenu_3.lua	2009-06-29 11:33:36 UTC (rev 2202)
+++ media/gui/scripts/mainmenu_3.lua	2009-06-29 14:01:42 UTC (rev 2203)
@@ -9,7 +9,7 @@
 
 function P:init()
     listbox = winMgr:getWindow("orxonox/LevelListbox")
-    preselect = orxonox.LevelManager:getInstance():getStartLevel()
+    preselect = orxonox.LevelManager:getInstance():getDefaultLevel()
     orxonox.GUIManager:getInstance():getLevelList() --levellist variable ist set now
     table.sort(levellist)
     for k,v in pairs(levellist) do
@@ -32,7 +32,7 @@
 function P.button_standalone_clicked(e)
     choice = winMgr:getWindow("orxonox/LevelListbox"):getFirstSelectedItem()
     if choice then
-        orxonox.LevelManager:getInstance():setStartLevel(choice:getText() .. ".oxw")
+        orxonox.LevelManager:getInstance():setDefaultLevel(choice:getText() .. ".oxw")
         orxonox.CommandExecutor:execute("startGame")
         toggleGUI()
     end
@@ -41,7 +41,7 @@
 function P.button_server_clicked(e)
     choice = winMgr:getWindow("orxonox/LevelListbox"):getFirstSelectedItem()
     if choice then
-        orxonox.LevelManager:getInstance():setStartLevel(choice:getText() .. ".oxw")
+        orxonox.LevelManager:getInstance():setDefaultLevel(choice:getText() .. ".oxw")
         orxonox.CommandExecutor:execute("startServer")
         toggleGUI()
     end
@@ -50,7 +50,7 @@
 function P.button_dedicated_clicked(e)
     choice = winMgr:getWindow("orxonox/LevelListbox"):getFirstSelectedItem()
     if choice then
-        orxonox.LevelManager:getInstance():setStartLevel(choice:getText() .. ".oxw")
+        orxonox.LevelManager:getInstance():setDefaultLevel(choice:getText() .. ".oxw")
         orxonox.CommandExecutor:execute("startDedicated")
         toggleGUI()
     end
@@ -59,7 +59,7 @@
 function P.button_client_clicked(e)
     choice = winMgr:getWindow("orxonox/LevelListbox"):getFirstSelectedItem()
     if choice then
-        orxonox.LevelManager:getInstance():setStartLevel(choice:getText() .. ".oxw")
+        orxonox.LevelManager:getInstance():setDefaultLevel(choice:getText() .. ".oxw")
         orxonox.CommandExecutor:execute("startClient")
         toggleGUI()
     end




More information about the Orxonox-commit mailing list