Feature/codegen lua (#1906)

Adapting Lua functions to new codegen functionality
Improve the documentation itself
Add some styling to generated documentation
Have parameter names for Lua-defined Lua function documentation

Co-authored-by: Emma Broman <emma.broman@liu.se>
This commit is contained in:
Alexander Bock
2022-03-21 09:05:37 +01:00
committed by GitHub
parent 6f25dd31e5
commit 3844df20c9
69 changed files with 2656 additions and 4474 deletions
+5 -26
View File
@@ -29,6 +29,7 @@
#include <openspace/scripting/lualibrary.h>
#include <openspace/scripting/scriptengine.h>
#include <openspace/util/json_helper.h>
#include <ghoul/logging/logmanager.h>
#include <ghoul/misc/profiling.h>
#include <ghoul/glm.h>
#include <sstream>
@@ -142,32 +143,10 @@ scripting::LuaLibrary KeybindingManager::luaLibrary() {
return {
"",
{
{
"clearKeys",
&luascriptfunctions::clearKeys,
"",
"Clear all key bindings"
},
{
"clearKey",
&luascriptfunctions::clearKey,
"string or strings",
"Unbinds the key or keys that have been provided. This function can be "
"called with a single key or with an array of keys to remove all of the "
"provided keys at once"
},
{
"bindKey",
&luascriptfunctions::bindKey,
"string, string",
"Binds a key by name to the action identified by the second argument"
},
{
"getKeyBinding",
&luascriptfunctions::getKeyBindings,
"string",
"Returns a list of information about the keybindings for the provided key"
}
codegen::lua::BindKey,
codegen::lua::KeyBindings,
codegen::lua::ClearKey,
codegen::lua::ClearKeys
}
};
}