Add Lua functions to query keyboard bindings and remove individual keybinds

Add core script file that defines possibility of rebinding keyboard commands to a different key
Enable the execution of global customization scripts
Make `scene_helper.lua` a script automatically included in the ScriptScheduler
This commit is contained in:
Alexander Bock
2017-12-08 14:58:18 -05:00
parent bce8e71d9b
commit c9aedb084b
24 changed files with 258 additions and 44 deletions

View File

@@ -51,6 +51,9 @@ public:
/// The key that stores the location of the SGCT configuration file that is used on
/// application launch
static const std::string KeyConfigSgct;
/// The key that defines a list of scripts for global customization that get executed
/// regardless of which scene is loaded
static const std::string KeyGlobalCustomizationScripts;
/// The part of the key that defines the type
static const std::string PartType;
/// The part of the key that defines the file

View File

@@ -104,8 +104,6 @@ public:
void writeDocumentation();
void toggleShutdownMode();
void runPostInitializationScripts(const std::string& sceneDescription);
// Guaranteed to return a valid pointer
ConfigurationManager& configurationManager();
LuaConsole& console();
@@ -178,6 +176,8 @@ private:
void gatherCommandlineArguments();
void loadFonts();
void runPreInitializationScripts(const std::string& sceneDescription);
void runPostInitializationScripts(const std::string& sceneDescription);
void runGlobalCustomizationScripts(const std::string& sceneDescription);
void configureLogging();
// Components