diff --git a/include/openspace/properties/property.h b/include/openspace/properties/property.h index 48d5288056..62e0fbf15d 100644 --- a/include/openspace/properties/property.h +++ b/include/openspace/properties/property.h @@ -67,10 +67,10 @@ public: * All > Developer > User > Hidden */ enum class Visibility { - All = 3, ///< Visible for all types, no matter what - Hidden = 2, ///< Never visible - Developer = 1, ///< Visible in Developer mode - User = 0 ///< Visible in User mode + Hidden = 3, ///< Never visible + Developer = 2, ///< Visible in Developer mode + User = 1, ///< Visible in User mode + All = 0, ///< Visible for all types, no matter what }; /** diff --git a/modules/onscreengui/src/gui.cpp b/modules/onscreengui/src/gui.cpp index 30c6dc5804..ba1d041e94 100644 --- a/modules/onscreengui/src/gui.cpp +++ b/modules/onscreengui/src/gui.cpp @@ -41,7 +41,7 @@ #include "gui_lua.inl" -#define SHOW_IMGUI_HELPERS +//#define SHOW_IMGUI_HELPERS namespace { diff --git a/scripts/common.lua b/scripts/common.lua index cf351cdaa7..4ada7ea37d 100644 --- a/scripts/common.lua +++ b/scripts/common.lua @@ -14,12 +14,12 @@ helper.scheduledScript.reversible = {} helper.setCommonKeys = function() openspace.bindKeyLocal( "F1", - helper.property.invert('Global Properties.OnScreenGUI.Main.enabled'), + helper.property.invert('Global Properties.OnScreenGUI.Main.Enabled'), "Toggles the visibility of the on-screen GUI." ) openspace.bindKeyLocal( "F2", - helper.property.invert("RenderEngine.performanceMeasurements"), + helper.property.invert("RenderEngine.PerformanceMeasurements"), "Toogles performance measurements that shows rendering time informations." ) @@ -30,7 +30,7 @@ helper.setCommonKeys = function() ) openspace.bindKeyLocal( "PRINT_SCREEN", - "openspace.setPropertyValueSingle('RenderEngine.takeScreenshot', nil)", + "openspace.setPropertyValueSingle('RenderEngine.TakeScreenshot', nil)", "Saves the contents of the screen to a file in the working directory." ) openspace.bindKey( @@ -52,18 +52,18 @@ helper.setCommonKeys = function() openspace.bindKey( "f", - helper.property.invert('NavigationHandler.OrbitalNavigator.horizontalFriction'), + helper.property.invert('NavigationHandler.OrbitalNavigator.HorizontalFriction'), "Toggles the horizontal friction of the camera. If it is disabled, the camera rotates around the focus object indefinitely." ) openspace.bindKey( "Shift+f", - helper.property.invert('NavigationHandler.OrbitalNavigator.verticalFriction'), + helper.property.invert('NavigationHandler.OrbitalNavigator.VerticalFriction'), "Toggles the vertical friction of the camera. If it is disabled, the camera rises up from or closes in towards the focus object indefinitely." ) openspace.bindKey( "Ctrl+f", - helper.property.invert('NavigationHandler.OrbitalNavigator.rotationalFriction'), + helper.property.invert('NavigationHandler.OrbitalNavigator.RotationalFriction'), "Toggles the rotational friction of the camera. If it is disabled, the camera rotates around its own axis indefinitely." ) @@ -116,12 +116,12 @@ end -- Function that returns the string that enables/disables the renderable 'renderable' helper.renderable.toggle = function(renderable) - return helper.property.invert(renderable .. ".renderable.enabled") + return helper.property.invert(renderable .. ".renderable.Enabled") end -- Function that returns the string that sets the enabled property of to helper.renderable.setEnabled = function(renderable, enabled) - return "openspace.setPropertyValue('" .. renderable .. ".renderable.enabled', " .. (enabled and "true" or "false") .. ");"; + return "openspace.setPropertyValue('" .. renderable .. ".renderable.Enabled', " .. (enabled and "true" or "false") .. ");"; end -- Function that returns a lua table specifying a reversible ScheduledScript for