mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-02 18:39:20 -06:00
Added Autocompletion for the LuaConsole (TAB/Shift+TAB)
This commit is contained in:
@@ -62,9 +62,15 @@ private:
|
||||
std::vector<std::string> _commandsHistory;
|
||||
size_t _activeCommand;
|
||||
std::vector<std::string> _commands;
|
||||
|
||||
|
||||
std::string _filename;
|
||||
|
||||
struct {
|
||||
int lastAutoCompleteIndex;
|
||||
bool hasInitialAutoCompleteValue;
|
||||
std::string initalAutoCompleteValue;
|
||||
} _autoCompleteInfo;
|
||||
|
||||
bool _isVisible;
|
||||
};
|
||||
|
||||
|
||||
@@ -66,6 +66,8 @@ public:
|
||||
bool runScriptFile(const std::string& filename);
|
||||
|
||||
bool writeDocumentation(const std::string& filename, const std::string& type) const;
|
||||
|
||||
std::vector<std::string> allLuaFunctions() const;
|
||||
|
||||
private:
|
||||
bool registerLuaLibrary(lua_State* state, const LuaLibrary& library);
|
||||
|
||||
Reference in New Issue
Block a user