Skip to content
Tim Diels edited this page Mar 4, 2014 · 8 revisions

Developer mode

A developer mode which dynamically reloads Lua.

See the github patch.

Put this in whatever classes you need to reload data from This should also work from parent classes.

Example

function UIBottomPanel:dialogStatus()
  self:reloadFile("dialogs/fullscreen/progress_report.lua")
  self:addDialog(UIProgressReport(self.ui))
end

This will reload the ProgressReport dialog every time you click the progress report button.

Reference documentation

Reference documentation can be generated with:

cd $repo_root
cmake .
make doc

Though first you need to install DoxyGen and the dependencies of LDocGen.

Generated documentation can be found in $repo_root/doc

Clone this wiki locally