Turn fade-in value into a property and move away from dedicated fadeIn, fadeOut methods (closes #869)

This commit is contained in:
Alexander Bock
2019-05-22 22:08:54 -06:00
parent cdeaae5068
commit a894e2cf5a
5 changed files with 11 additions and 128 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ local Keybindings = {
{
Key = "w",
Name = "Fade to/from black",
Command = "openspace.toggleFade(3)",
Command = "if openspace.getPropertyValue('RenderEngine.BlackoutFactor') > 0.5 then openspace.setPropertyValueSingle('RenderEngine.BlackoutFactor', 0.0, 3) else openspace.setPropertyValueSingle('RenderEngine.BlackoutFactor', 1.0, 3) end",
Documentation = "Toggles the fade to black within 3 seconds or shows the rendering after 3 seconds.",
GuiPath = "/Rendering",
Local = false