Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7211 for code


Ignore:
Timestamp:
Aug 24, 2010, 4:01:43 PM (14 years ago)
Author:
landauf
Message:

fixed Lua script after the recent changes in CommandExecutor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/consolecommands3/data/gui/scripts/MiscConfigMenu.lua

    r7163 r7211  
    102102    local configvalue = winMgr:createWindow("MenuWidgets/Editbox", "orxonox/MiscConfigMenu/MiscConfigPane/ConfigCommand" .. k .. "/Configvalue")
    103103    configvalue:setProperty("ReadOnly", "set:False")
    104     orxonox.CommandExecutor:execute("getConfig " .. P.commandList[k])
    105     local value = orxonox.CommandExecutor:getReturnValueString()
     104    local value = orxonox.CommandExecutor:query("getConfig " .. P.commandList[k])
    106105    configvalue:setText(value)
    107106    P.sampleWindow:setText(value)
     
    168167
    169168    orxonox.CommandExecutor:execute("config " .. P.commandList[commandNr] .. " " .. window:getText())
    170     orxonox.CommandExecutor:execute("getConfig " .. P.commandList[commandNr])
    171     local value = orxonox.CommandExecutor:getReturnValueString()
     169    local value = orxonox.CommandExecutor:query("getConfig " .. P.commandList[commandNr])
    172170    window:setText(value)
    173171end
Note: See TracChangeset for help on using the changeset viewer.