Changeset 6051 for code/branches/menu/src/libraries/core/GUIManager.cc
- Timestamp:
- Nov 12, 2009, 7:41:20 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/menu/src/libraries/core/GUIManager.cc
r6048 r6051 121 121 // setup scripting 122 122 luaState_.reset(new LuaState()); 123 rootFileInfo_ = Resource::getInfo("InitialiseGUI.lua", "GUI"); 124 // This is necessary to ensure that input events also use the right resource info when triggering lua functions 125 luaState_->setDefaultResourceInfo(this->rootFileInfo_); 123 126 scriptModule_.reset(new LuaScriptModule(luaState_->getInternalLuaState())); 124 127 … … 135 138 136 139 // Initialise the basic lua code 137 rootFileInfo_ = Resource::getInfo("InitialiseGUI.lua", "GUI");138 140 this->luaState_->doFile("InitialiseGUI.lua", "GUI", false); 139 141
Note: See TracChangeset
for help on using the changeset viewer.