mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-21 18:38:20 -05:00
Merge with develop and solve conflicts.
This commit is contained in:
@@ -33,7 +33,7 @@ set(HEADER_FILES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/guipropertycomponent.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/guitimecomponent.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/guiiswacomponent.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/renderproperties.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/renderproperties.h
|
||||
)
|
||||
source_group("Header Files" FILES ${HEADER_FILES})
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ public:
|
||||
|
||||
void render();
|
||||
|
||||
static openspace::scripting::ScriptEngine::LuaLibrary luaLibrary();
|
||||
static openspace::scripting::LuaLibrary luaLibrary();
|
||||
|
||||
//protected:
|
||||
GuiHelpComponent _help;
|
||||
|
||||
@@ -499,7 +499,7 @@ void GUI::render() {
|
||||
ImGui::End();
|
||||
}
|
||||
|
||||
scripting::ScriptEngine::LuaLibrary GUI::luaLibrary() {
|
||||
scripting::LuaLibrary GUI::luaLibrary() {
|
||||
return {
|
||||
"gui",
|
||||
{
|
||||
|
||||
@@ -46,7 +46,7 @@ void renderTooltip(Property* prop) {
|
||||
|
||||
void executeScript(const std::string& id, const std::string& value) {
|
||||
std::string script =
|
||||
"openspace.setPropertyValue('" + id + "', " + value + ");";
|
||||
"openspace.setPropertyValueSingle('" + id + "', " + value + ");";
|
||||
OsEng.scriptEngine().queueScript(script);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user