mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-22 04:49:12 -06:00
Use the 4K milkyway texture on default for better performance
Make featured properties and space/time widget easy to disable Add setting for setting the bounds of the delta time slider Add exponent to all numerical properties and use where appropriate Add properties to Guicomponents that collapse the title bar Add new F2 key to only display the main property window
This commit is contained in:
@@ -14,11 +14,32 @@ helper.scheduledScript.reversible = {}
|
||||
helper.setCommonKeys = function()
|
||||
openspace.bindKeyLocal(
|
||||
"F1",
|
||||
helper.property.invert('Global Properties.ImGUI.Main.Enabled'),
|
||||
"Toggles the visibility of the on-screen GUI."
|
||||
[[local b = openspace.getPropertyValue('Global Properties.ImGUI.Main.Enabled');
|
||||
openspace.setPropertyValueSingle('Global Properties.ImGUI.Main.Enabled', not b);
|
||||
openspace.setPropertyValueSingle('Global Properties.ImGUI.Main.IsHidden', b);]],
|
||||
"Shows or hides the entire user interface"
|
||||
)
|
||||
|
||||
openspace.bindKeyLocal(
|
||||
"F2",
|
||||
[[local b = openspace.getPropertyValue('Global Properties.ImGUI.Main.Properties.Enabled');
|
||||
local c = openspace.getPropertyValue('Global Properties.ImGUI.Main.IsHidden');
|
||||
openspace.setPropertyValue('Global Properties.ImGUI.*.Enabled', false);
|
||||
if b and c then
|
||||
-- This can happen if the main properties window is enabled, the main gui is enabled
|
||||
-- and then closed again. So the main properties window is enabled, but also all
|
||||
-- windows are hidden
|
||||
openspace.setPropertyValueSingle('Global Properties.ImGUI.Main.IsHidden', false);
|
||||
openspace.setPropertyValueSingle('Global Properties.ImGUI.Main.Properties.Enabled', true);
|
||||
else
|
||||
openspace.setPropertyValueSingle('Global Properties.ImGUI.Main.Properties.Enabled', not b);
|
||||
openspace.setPropertyValueSingle('Global Properties.ImGUI.Main.IsHidden', b);
|
||||
end]],
|
||||
"Shows or hides the properties window"
|
||||
)
|
||||
|
||||
openspace.bindKeyLocal(
|
||||
"F3",
|
||||
helper.property.invert("RenderEngine.PerformanceMeasurements"),
|
||||
"Toogles performance measurements that shows rendering time informations."
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user