[Orxonox-commit 2504] r7211 - code/branches/consolecommands3/data/gui/scripts
landauf at orxonox.net
landauf at orxonox.net
Tue Aug 24 16:01:43 CEST 2010
Author: landauf
Date: 2010-08-24 16:01:43 +0200 (Tue, 24 Aug 2010)
New Revision: 7211
Modified:
code/branches/consolecommands3/data/gui/scripts/MiscConfigMenu.lua
Log:
fixed Lua script after the recent changes in CommandExecutor
Modified: code/branches/consolecommands3/data/gui/scripts/MiscConfigMenu.lua
===================================================================
--- code/branches/consolecommands3/data/gui/scripts/MiscConfigMenu.lua 2010-08-24 12:26:39 UTC (rev 7210)
+++ code/branches/consolecommands3/data/gui/scripts/MiscConfigMenu.lua 2010-08-24 14:01:43 UTC (rev 7211)
@@ -101,8 +101,7 @@
local configvalue = winMgr:createWindow("MenuWidgets/Editbox", "orxonox/MiscConfigMenu/MiscConfigPane/ConfigCommand" .. k .. "/Configvalue")
configvalue:setProperty("ReadOnly", "set:False")
- orxonox.CommandExecutor:execute("getConfig " .. P.commandList[k])
- local value = orxonox.CommandExecutor:getReturnValueString()
+ local value = orxonox.CommandExecutor:query("getConfig " .. P.commandList[k])
configvalue:setText(value)
P.sampleWindow:setText(value)
local size = getMinTextSize(P.sampleWindow)
@@ -167,8 +166,7 @@
local window = winMgr:getWindow("orxonox/MiscConfigMenu/MiscConfigPane/ConfigCommand" .. commandNr .. "/Configvalue")
orxonox.CommandExecutor:execute("config " .. P.commandList[commandNr] .. " " .. window:getText())
- orxonox.CommandExecutor:execute("getConfig " .. P.commandList[commandNr])
- local value = orxonox.CommandExecutor:getReturnValueString()
+ local value = orxonox.CommandExecutor:query("getConfig " .. P.commandList[commandNr])
window:setText(value)
end
More information about the Orxonox-commit
mailing list