diff --git a/.gitignore b/.gitignore index 7d5584c..7bbcfed 100644 --- a/.gitignore +++ b/.gitignore @@ -1,55 +1,40 @@ -# Created by https://www.gitignore.io - -### XamarinStudio ### -bin/ -obj/ -*.userprefs - - -### OSX ### -.DS_Store -.AppleDouble -.LSOverride - -# Icon must end with two \r -Icon - - -# Thumbnails -._* - -# Files that might appear in the root of a volume -.DocumentRevisions-V100 -.fseventsd -.Spotlight-V100 -.TemporaryItems -.Trashes -.VolumeIcon.icns - -# Directories potentially created on remote AFP share -.AppleDB -.AppleDesktop -Network Trash Folder -Temporary Items -.apdisk - - -### Windows ### -# Windows image file caches -Thumbs.db -ehthumbs.db - -# Folder config file -Desktop.ini - -# Recycle Bin used on file shares -$RECYCLE.BIN/ - -# Windows Installer files -*.cab -*.msi -*.msm -*.msp - -# Windows shortcuts -*.lnk +#Autosave files +*~ + +#build +[Oo]bj/ +[Bb]in/ +packages/ +TestResults/ + +# globs +Makefile.in +*.DS_Store +*.sln.cache +*.suo +*.cache +*.pidb +*.userprefs +*.usertasks +config.log +config.make +config.status +aclocal.m4 +install-sh +autom4te.cache/ +*.user +*.tar.gz +tarballs/ +test-results/ +Thumbs.db + +#Mac bundle stuff +*.dmg +*.app + +#resharper +*_Resharper.* +*.Resharper + +#dotCover +*.dotCover diff --git a/GameData/LightsOut/LightsOut.dll b/GameData/LightsOut/LightsOut.dll index dfca708..99fe8d3 100755 Binary files a/GameData/LightsOut/LightsOut.dll and b/GameData/LightsOut/LightsOut.dll differ diff --git a/GameData/LightsOut/LightsOut.version b/GameData/LightsOut/LightsOut.version new file mode 100644 index 0000000..2b7dd01 --- /dev/null +++ b/GameData/LightsOut/LightsOut.version @@ -0,0 +1,35 @@ +{ + "NAME" : "Lights Out", + "URL" : "https://raw.githubusercontent.com/Real-Gecko/LightsOut/master/GameData/LightsOut/LightsOut.version", + "DOWNLOAD" : "https://github.com/Real-Gecko/LightsOut/releases", + "GITHUB" : + { + "USERNAME" : "Real-Gecko", + "REPOSITORY" : "LightsOut" + }, + "VERSION" : + { + "MAJOR" : 0, + "MINOR" : 2, + "PATCH" : 2, + "BUILD" : 0 + }, + "KSP_VERSION" : + { + "MAJOR" : 1, + "MINOR" : 3, + "PATCH" : 1 + }, + "KSP_VERSION_MIN" : + { + "MAJOR" : 1, + "MINOR" : 3, + "PATCH" : 1 + }, + "KSP_VERSION_MAX" : + { + "MAJOR" : 1, + "MINOR" : 3, + "PATCH" : 1 + } +} diff --git a/LightsOut.sln b/LightsOut.sln new file mode 100644 index 0000000..dc79df0 --- /dev/null +++ b/LightsOut.sln @@ -0,0 +1,17 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2012 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LightsOut", "LightsOut\LightsOut.csproj", "{DB34E9C6-59E1-4313-B8BF-CE6039EEAAE9}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {DB34E9C6-59E1-4313-B8BF-CE6039EEAAE9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DB34E9C6-59E1-4313-B8BF-CE6039EEAAE9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DB34E9C6-59E1-4313-B8BF-CE6039EEAAE9}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DB34E9C6-59E1-4313-B8BF-CE6039EEAAE9}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/Source/LightsOut/LOAmbient.cs b/LightsOut/LOAmbient.cs similarity index 78% rename from Source/LightsOut/LOAmbient.cs rename to LightsOut/LOAmbient.cs index e39d74a..f3fdd46 100644 --- a/Source/LightsOut/LOAmbient.cs +++ b/LightsOut/LOAmbient.cs @@ -1,4 +1,4 @@ -using System; +using System; using UnityEngine; namespace LightsOut { @@ -16,6 +16,7 @@ class LOAmbient { int originalCullingMask; CameraClearFlags originalClearFlags; Color originalAmbientLight; + UnityEngine.Rendering.AmbientMode originalAmbientMode; LightmapData[] originalLightmapData; Material originalSkybox; @@ -29,37 +30,40 @@ public LOAmbient(EditorFacility facility, EditorLevel level, GameObject[] gameOb originalAmbientLight = RenderSettings.ambientLight; originalSkybox = RenderSettings.skybox; originalLightmapData = LightmapSettings.lightmaps; + originalAmbientMode = RenderSettings.ambientMode; // Create fake skybox skyCamera = new GameObject("NightSkyboxCamera", typeof(Camera)); - skyCamera.camera.depth = mainCamera.depth - 1; - skyCamera.camera.clearFlags = CameraClearFlags.Skybox; - skyCamera.camera.cullingMask = 0; +// skyCamera.AddComponent(); + skyCamera.GetComponent().depth = mainCamera.depth - 1; + skyCamera.GetComponent().clearFlags = CameraClearFlags.Skybox; + skyCamera.GetComponent().cullingMask = 0; nightSkyboxMaterial = new Material(originalSkybox); // GalaxyTex_PositiveX should be viewed outside window - Debug.Log("LightsOut: Loading Night Sky Textures"); - foreach (Material material in Resources.FindObjectsOfTypeAll()) { + // Debug.Log("LightsOut: Loading Night Sky Textures"); + foreach (Renderer renderer in GalaxyCubeControl.Instance.GetComponentsInChildren()) { + Material material = renderer.material; Texture texture = material.mainTexture; if (texture) { - switch (material.name) { - case "ZP (Instance)": + switch (renderer.name) { + case "ZP": nightSkyboxMaterial.SetTexture("_FrontTex", material.mainTexture); break; - case "ZN (Instance)": + case "ZN": nightSkyboxMaterial.SetTexture("_BackTex", material.mainTexture); break; - case "XP (Instance)": + case "XP": nightSkyboxMaterial.SetTexture("_LeftTex", material.mainTexture); break; - case "XN (Instance)": + case "XN": nightSkyboxMaterial.SetTexture("_RightTex", material.mainTexture); break; - case "YP (Instance)": + case "YP": nightSkyboxMaterial.SetTexture("_UpTex", material.mainTexture); break; - case "YN (Instance)": + case "YN": nightSkyboxMaterial.SetTexture("_DownTex", material.mainTexture); break; default: @@ -98,14 +102,14 @@ public LOAmbient(EditorFacility facility, EditorLevel level, GameObject[] gameOb foreach (GameObject gameObject in gameObjects) { // These are all subsets of model_sph_interior_lights_v16 // Component_611_1 to 6 is window reflection - ChangeLayersRecursively(gameObject, newLayer, "Component_611_1"); - ChangeLayersRecursively(gameObject, newLayer, "Component_611_2"); - ChangeLayersRecursively(gameObject, newLayer, "Component_611_3"); +// ChangeLayersRecursively(gameObject, newLayer, "Component_611_1"); +// ChangeLayersRecursively(gameObject, newLayer, "Component_611_2"); +// ChangeLayersRecursively(gameObject, newLayer, "Component_611_3"); ChangeLayersRecursively(gameObject, newLayer, "Component_611_4"); ChangeLayersRecursively(gameObject, newLayer, "Component_611_5"); ChangeLayersRecursively(gameObject, newLayer, "Component_611_6"); - //ChangeLayersRecursively(gameObject, newLayer, "Component_749_1"); // Glow from Side Lights! - //ChangeLayersRecursively(gameObject, newLayer, "Component_750_1"); // Lights! + ChangeLayersRecursively(gameObject, newLayer, "Component_749_1"); // Glow from Side Lights! + ChangeLayersRecursively(gameObject, newLayer, "Component_750_1"); // Lights! } break; } @@ -115,6 +119,7 @@ public LOAmbient(EditorFacility facility, EditorLevel level, GameObject[] gameOb public void SetAmbientMode(EditorTime time) { if (time == EditorTime.Night) { RenderSettings.ambientLight = new Color(0.15f, 0.15f, 0.15f); + RenderSettings.ambientMode = UnityEngine.Rendering.AmbientMode.Flat; RenderSettings.fog = false; mainCamera.clearFlags = CameraClearFlags.Nothing; LightmapSettings.lightmaps = new LightmapData[] { }; @@ -124,6 +129,7 @@ public void SetAmbientMode(EditorTime time) { else { RenderSettings.ambientLight = originalAmbientLight; RenderSettings.fog = true; + RenderSettings.ambientMode = originalAmbientMode; RenderSettings.skybox = originalSkybox; mainCamera.clearFlags = originalClearFlags; LightmapSettings.lightmaps = originalLightmapData; diff --git a/Source/LightsOut/LOEnums.cs b/LightsOut/LOEnums.cs similarity index 92% rename from Source/LightsOut/LOEnums.cs rename to LightsOut/LOEnums.cs index db6ccfe..5f43876 100644 --- a/Source/LightsOut/LOEnums.cs +++ b/LightsOut/LOEnums.cs @@ -1,12 +1,12 @@ -using System; - -public enum EditorLevel { - Level1 = 1, - Level2 = 2, - Level3 = 3 -} - -public enum EditorTime { - Day = 1, - Night = 2 +using System; + +public enum EditorLevel { + Level1 = 1, + Level2 = 2, + Level3 = 3 +} + +public enum EditorTime { + Day = 1, + Night = 2 } \ No newline at end of file diff --git a/Source/LightsOut/LOExternalLights.cs b/LightsOut/LOExternalLights.cs similarity index 79% rename from Source/LightsOut/LOExternalLights.cs rename to LightsOut/LOExternalLights.cs index d3a6e25..5de2e32 100644 --- a/Source/LightsOut/LOExternalLights.cs +++ b/LightsOut/LOExternalLights.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using UnityEngine; @@ -34,9 +34,10 @@ public LOExternalLights(EditorFacility facility, EditorLevel level) { //[LOG 17:53:55.158] Light 5: Spotlight, RGBA(1.000, 1.000, 1.000, 1.000), Default ON //[LOG 17:53:55.159] Parent: Day Lights lightsToChange = new List() { - new LightToChange(){ name = "SpotlightSun", parentName = "Day Lights" }, - new LightToChange(){ name = "Spotlight", parentName = "Day Lights" } - }; + new LightToChange(){ name = "SpotlightCraft", parentName = "Day Lights" }, + new LightToChange(){ name = "SpotlightSun", parentName = "VAB_interior_modern" }, + new LightToChange(){ name = "Realtime_SpotlightScenery", parentName = "Lighting_Realtime" }, + new LightToChange(){ name = "Shadow Light", parentName = "Day Lights" } }; break; case EditorLevel.Level2: @@ -57,10 +58,11 @@ public LOExternalLights(EditorFacility facility, EditorLevel level) { //[LOG 17:56:18.874] Light 7: Spotlight, RGBA(1.000, 1.000, 1.000, 1.000), Default ON //[LOG 17:56:18.875] Parent: Day Lights lightsToChange = new List() { - new LightToChange(){ name = "SpotlightSun", parentName = "Day Lights" }, - new LightToChange(){ name = "Spotlight", parentName = "Day Lights" }, - new LightToChange(){ name = "roofFill", parentName = "Day Lights" } - }; + new LightToChange(){ name = "SpotlightCraft", parentName = "Day Lights" }, + new LightToChange(){ name = "SpotlightSun", parentName = "VAB_interior_modern" }, + new LightToChange(){ name = "Realtime_SpotlightScenery", parentName = "Lighting_Realtime" }, + new LightToChange(){ name = "Shadow Light", parentName = "Day Lights" } + }; break; case EditorLevel.Level3: @@ -85,9 +87,11 @@ public LOExternalLights(EditorFacility facility, EditorLevel level) { //[LOG 17:58:21.712] Light 9: Spotlight, RGBA(1.000, 1.000, 1.000, 1.000), Default ON //[LOG 17:58:21.713] Parent: Day Lights lightsToChange = new List() { - new LightToChange(){ name = "SpotlightSun", parentName = "Day Lights" }, - new LightToChange(){ name = "Spotlight", parentName = "Day Lights" } - }; + new LightToChange(){ name = "SpotlightCraft", parentName = "Day Lights" }, + new LightToChange(){ name = "SpotlightSun", parentName = "VAB_interior_modern" }, + new LightToChange(){ name = "Realtime_SpotlightScenery", parentName = "Lighting_Realtime" }, + new LightToChange(){ name = "Shadow Light", parentName = "Day Lights" } + }; break; } } @@ -111,9 +115,11 @@ public LOExternalLights(EditorFacility facility, EditorLevel level) { //[LOG 17:54:50.077] Light 7: SpotlightWindow, RGBA(0.866, 0.863, 0.903, 1.000), Default OFF //[LOG 17:54:50.078] Parent: Editors_DayLights lightsToChange = new List() { - new LightToChange(){ name = "SpotlightCraft", parentName = "Editors_DayLights" }, - new LightToChange(){ name = "SpotlightExteriorSun", parentName = "Editors_DayLights" } - }; + new LightToChange(){ name = "Realtime_SpotlightCraft", parentName = "Lighting_Realtime" }, + new LightToChange(){ name = "Realtime_ExteriorSun", parentName = "Lighting_Realtime" }, + new LightToChange(){ name = "Realtime_SpotlightScenery", parentName = "Lighting_Realtime" }, + new LightToChange(){ name = "Realtime_Shadow Light", parentName = "Lighting_Realtime" } + }; break; case EditorLevel.Level2: @@ -134,9 +140,11 @@ public LOExternalLights(EditorFacility facility, EditorLevel level) { //[LOG 17:57:04.724] Light 7: SpotlightWindow, RGBA(0.866, 0.863, 0.903, 1.000), Default OFF //[LOG 17:57:04.725] Parent: Editors_DayLights lightsToChange = new List() { - new LightToChange(){ name = "SpotlightCraft", parentName = "Editors_DayLights" }, - new LightToChange(){ name = "SpotlightExteriorSun", parentName = "Editors_DayLights" } - }; + new LightToChange(){ name = "Realtime_SpotlightCraft", parentName = "Lighting_Realtime" }, + new LightToChange(){ name = "Realtime_ExteriorSun", parentName = "Lighting_Realtime" }, + new LightToChange(){ name = "Realtime_SpotlightScenery", parentName = "Lighting_Realtime" }, + new LightToChange(){ name = "Realtime_Shadow Light", parentName = "Lighting_Realtime" } + }; break; case EditorLevel.Level3: @@ -157,10 +165,11 @@ public LOExternalLights(EditorFacility facility, EditorLevel level) { //[LOG 17:59:41.833] Light 7: SpotlightWindow, RGBA(0.866, 0.863, 0.903, 1.000), Default ON //[LOG 17:59:41.834] Parent: Editors_DayLights lightsToChange = new List() { - new LightToChange(){ name = "SpotlightCraft", parentName = "Editors_DayLights" }, - new LightToChange(){ name = "SpotlightExteriorSun", parentName = "Editors_DayLights" }, - new LightToChange(){ name = "SpotlightWindow", parentName = "Editors_DayLights" } - }; + new LightToChange(){ name = "Realtime_SpotlightCraft", parentName = "Lighting_Realtime" }, + new LightToChange(){ name = "Realtime_ExteriorSun", parentName = "Lighting_Realtime" }, + new LightToChange(){ name = "Realtime_SpotlightScenery", parentName = "Lighting_Realtime" }, + new LightToChange(){ name = "Realtime_Shadow Light", parentName = "Lighting_Realtime" } + }; break; } } diff --git a/Source/LightsOut/LOShaders.cs b/LightsOut/LOShaders.cs similarity index 100% rename from Source/LightsOut/LOShaders.cs rename to LightsOut/LOShaders.cs diff --git a/Source/LightsOut/LightsOut.cs b/LightsOut/LightsOut.cs similarity index 53% rename from Source/LightsOut/LightsOut.cs rename to LightsOut/LightsOut.cs index 2498d77..1c8a761 100644 --- a/Source/LightsOut/LightsOut.cs +++ b/LightsOut/LightsOut.cs @@ -1,11 +1,15 @@ -using System; +using System; using System.Collections.Generic; using UnityEngine; +using UnityEngine.UI; +using UnityEngine.EventSystems; +using KSP.UI.Screens; namespace LightsOut { [KSPAddon(KSPAddon.Startup.EditorAny, false)] class LightsOut : MonoBehaviour { + private static LightsOut Instance; EditorTime currentTime = EditorTime.Day; bool currentPartLightsEnabled = false; bool firstTime = true; @@ -16,12 +20,31 @@ class LightsOut : MonoBehaviour { LOExternalLights externalLightsManager; ApplicationLauncherButton launcherButton; - bool launcherButtonNeedsInitializing = true; +// bool launcherButtonNeedsInitializing = true; string munIcon = "LightsOut/Textures/mun_icon"; string sunIcon = "LightsOut/Textures/sun_icon"; + public void Awake() + { + if (Instance != null) { + Destroy (this); + return; + } + Instance = this; + } + + public void Start() { + GameEvents.onGUIApplicationLauncherReady.Add(OnGUIAppLauncherReady); + } + + void OnDestroy() { + GameEvents.onGUIApplicationLauncherReady.Remove (OnGUIAppLauncherReady); + if (launcherButton != null) + ApplicationLauncher.Instance.RemoveModApplication (launcherButton); + } + void OnGUIAppLauncherReady() { - if (ApplicationLauncher.Ready) { + if (launcherButton == null) { launcherButton = ApplicationLauncher.Instance.AddModApplication( ToggleDayNight, ToggleDayNight, @@ -38,25 +61,23 @@ void ToggleDayNight() { SetTime((currentTime == EditorTime.Day) ? EditorTime.Night : EditorTime.Day); } - void OnDestroy() { - if (launcherButton != null) { - ApplicationLauncher.Instance.RemoveModApplication(launcherButton); - } - GameEvents.onGUIApplicationLauncherReady.Remove(OnGUIAppLauncherReady); - launcherButtonNeedsInitializing = true; - } - void Update() { - if (Input.GetKeyDown(KeyCode.L)) { - SetTime((currentTime == EditorTime.Day) ? EditorTime.Night : EditorTime.Day); - } - else if (Input.GetKeyDown(KeyCode.U)) { - SetPartLights(!currentPartLightsEnabled); + // Ignore keystrokes when a text field has focus (e.g. part search, craft title box) + GameObject obj = EventSystem.current.currentSelectedGameObject; + bool inputFieldIsFocused = (obj != null && obj.GetComponent () != null && obj.GetComponent ().isFocused); + if (inputFieldIsFocused) + return; + + // changed from L to P, to avoid conflicts with RCS Build Aid (translation keys) and RPM Camera (toggle all camera FOV's) + if (Input.GetKeyDown (KeyCode.P)) { + SetTime ((currentTime == EditorTime.Day) ? EditorTime.Night : EditorTime.Day); + } else if (Input.GetKeyDown (KeyCode.U)) { + SetPartLights (!currentPartLightsEnabled); } } void Setup() { - Debug.Log("LightsOut: First Time Setup"); +// Debug.Log("LightsOut: First Time Setup"); EditorFacility facility = EditorDriver.editorFacility; EditorLevel level = 0; @@ -73,7 +94,7 @@ void Setup() { break; } - Debug.Log("LightsOut: Entered " + facility + " " + level); +// Debug.Log("LightsOut: Entered " + facility + " " + level); // Set up ambient and shader managers GameObject[] gameObjects = FindObjectsOfType(typeof(GameObject)) as GameObject[]; @@ -95,21 +116,21 @@ void SetTime(EditorTime newTime) { } currentTime = newTime; - Debug.Log("LightsOut: Switching to " + newTime + " Mode"); +// Debug.Log("LightsOut: Switching to " + newTime + " Mode"); // Toggle Shaders - Debug.Log("LightsOut: Updating Shaders"); +// Debug.Log("LightsOut: Updating Shaders"); shaderManager.SetShaderMode(newTime); // Toggle ambient settings - Debug.Log("LightsOut: Updating Ambient Light and Skybox"); +// Debug.Log("LightsOut: Updating Ambient Light and Skybox"); ambientManager.SetAmbientMode(newTime); //toggle VAB/SPH lights - Debug.Log("LightsOut: Updating VAB/SPH Lights"); +// Debug.Log("LightsOut: Updating VAB/SPH Lights"); externalLightsManager.SetExternalLightsMode(newTime, FindObjectsOfType(typeof(Light)) as Light[]); - // Toggle all part lights + // Toggle all part lights*/ SetPartLights(newTime == EditorTime.Night); if (newTime == EditorTime.Night) { @@ -122,23 +143,34 @@ void SetTime(EditorTime newTime) { void SetPartLights(bool lightsEnabled) { currentPartLightsEnabled = lightsEnabled; - Debug.Log("LightsOut: Turning Part Lights " + (lightsEnabled ? "on" : "off")); - List shipParts = EditorLogic.fetch.ship.parts; - foreach (Part part in shipParts) { - part.SendEvent(lightsEnabled ? "LightsOn" : "LightsOff"); +// Debug.Log("LightsOut: Turning Part Lights " + (lightsEnabled ? "on" : "off")); + foreach (Part part in EditorLogic.fetch.ship.parts) { + // Lights + if (part.FindModuleImplementing() != null) + part.SendEvent(lightsEnabled ? "LightsOn" : "LightsOff"); + + // Pods + foreach (ModuleColorChanger changer in part.FindModulesImplementing()) + if (changer.defaultActionGroup == KSPActionGroup.Light) + changer.animState = lightsEnabled; //changer.ToggleEvent(); + + // Cabins, can be toggled only + foreach (ModuleAnimateGeneric animator in part.FindModulesImplementing()) { + if (animator.defaultActionGroup == KSPActionGroup.Light) + animator.Toggle (); + } } } void LateUpdate() { - if (launcherButtonNeedsInitializing) { - GameEvents.onGUIApplicationLauncherReady.Add(OnGUIAppLauncherReady); - OnGUIAppLauncherReady(); - launcherButtonNeedsInitializing = false; - } +// if (launcherButtonNeedsInitializing) { +// GameEvents.onGUIApplicationLauncherReady.Add(OnGUIAppLauncherReady); +//// OnGUIAppLauncherReady(); +// launcherButtonNeedsInitializing = false; +// } if ((ambientManager != null) && (currentTime == EditorTime.Night)) { ambientManager.rotateSkybox(); } } } } - diff --git a/Source/LightsOut/LightsOut.csproj b/LightsOut/LightsOut.csproj similarity index 68% rename from Source/LightsOut/LightsOut.csproj rename to LightsOut/LightsOut.csproj index b5c95e1..c9ee18b 100644 --- a/Source/LightsOut/LightsOut.csproj +++ b/LightsOut/LightsOut.csproj @@ -28,24 +28,22 @@ false - - + + + - ..\..\..\..\..\Library\Application Support\Steam\SteamApps\common\Kerbal Space Program\KSP.app\Contents\Data\Managed\Assembly-CSharp.dll - False + ..\..\KSP\KSP_Data\Managed\Assembly-CSharp.dll - ..\..\..\..\..\Library\Application Support\Steam\SteamApps\common\Kerbal Space Program\KSP.app\Contents\Data\Managed\UnityEngine.dll - False + ..\..\KSP\KSP_Data\Managed\UnityEngine.dll - - ..\..\..\..\..\Library\Application Support\Steam\SteamApps\common\Kerbal Space Program\KSP.app\Contents\Data\Managed\Assembly-CSharp-firstpass.dll - False + + ..\..\KSP\KSP_Data\Managed\UnityEngine.UI.dll diff --git a/Source/LightsOut/Properties/AssemblyInfo.cs b/LightsOut/Properties/AssemblyInfo.cs similarity index 96% rename from Source/LightsOut/Properties/AssemblyInfo.cs rename to LightsOut/Properties/AssemblyInfo.cs index 844a592..f5332fc 100644 --- a/Source/LightsOut/Properties/AssemblyInfo.cs +++ b/LightsOut/Properties/AssemblyInfo.cs @@ -17,7 +17,7 @@ // The form "{Major}.{Minor}.*" will automatically update the build and revision, // and "{Major}.{Minor}.{Build}.*" will update just the revision. -[assembly: AssemblyVersion ("1.0.*")] +[assembly: AssemblyVersion ("0.2.2")] // The following attributes are used to specify the signing key for the assembly, // if desired. See the Mono documentation for more information about signing. diff --git a/README.md b/README.md index 9e657d4..f396d35 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,21 @@ # LightsOut LightsOut is a Kerbal Space Program add-on that allows the user to switch between day and night mode in the VAB and SPH. +This build is forked from the official LightsOut 1.0.5 code, and includes these enhancements: + +* Fwiffo's edit to change hanger lights hotkey from L to P to avoid conflicts with RCS Build Aid (thruster translation) and RPM JSI Camera (toggle all camera FOV's) +* Fwiffo's edit to incorporate linuxgurugamer's fix to avoid capturing hotkeys when focus is in a text field (e.g. parts search box) + https://github.com/linuxgurugamer/EditorExtensionsRedux/commit/72dadd79c0611fb52b15f526ebfe19b67d2b8d57#diff-d9ad04479ff4a0b367ff88d3bc07ec9a +* RealGecko's May 6, 2016 recompile for 1.1.2: + http://forum.kerbalspaceprogram.com/index.php?/topic/102558-105-lightsout-v015-daynight-mode-in-vabsph/&do=findComment&comment=2565403 +* Kujuman's contributions to make it look better: + http://forum.kerbalspaceprogram.com/index.php?/topic/102558-105-lightsout-v015-daynight-mode-in-vabsph/&do=findComment&comment=2565903 + ### Download [v0.1.5](https://github.com/nodrog6/LightsOut/releases/download/v0.1.5/LightsOut-v0.1.5.zip) (Compatible with Kerbal Space Program v1.0.5) ### Hotkeys -* **L** - Toggle day/night and all part lights +* **P** - Toggle day/night and all part lights * **U** - Toggle all part lights ### Installation diff --git a/Source/LightsOut.sln b/Source/LightsOut.sln deleted file mode 100644 index 5befa0c..0000000 --- a/Source/LightsOut.sln +++ /dev/null @@ -1,45 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2012 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LightsOut", "LightsOut\LightsOut.csproj", "{DB34E9C6-59E1-4313-B8BF-CE6039EEAAE9}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {DB34E9C6-59E1-4313-B8BF-CE6039EEAAE9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {DB34E9C6-59E1-4313-B8BF-CE6039EEAAE9}.Debug|Any CPU.Build.0 = Debug|Any CPU - {DB34E9C6-59E1-4313-B8BF-CE6039EEAAE9}.Release|Any CPU.ActiveCfg = Release|Any CPU - {DB34E9C6-59E1-4313-B8BF-CE6039EEAAE9}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(MonoDevelopProperties) = preSolution - Policies = $0 - $0.TextStylePolicy = $1 - $1.inheritsSet = null - $1.scope = text/x-csharp - $0.CSharpFormattingPolicy = $2 - $2.NamespaceBraceStyle = EndOfLine - $2.ClassBraceStyle = EndOfLine - $2.InterfaceBraceStyle = EndOfLine - $2.StructBraceStyle = EndOfLine - $2.EnumBraceStyle = EndOfLine - $2.MethodBraceStyle = EndOfLine - $2.ConstructorBraceStyle = EndOfLine - $2.DestructorBraceStyle = EndOfLine - $2.ElseNewLinePlacement = NewLine - $2.CatchNewLinePlacement = NewLine - $2.FinallyNewLinePlacement = NewLine - $2.BeforeMethodDeclarationParentheses = False - $2.BeforeMethodCallParentheses = False - $2.BeforeConstructorDeclarationParentheses = False - $2.BeforeDelegateDeclarationParentheses = False - $2.AfterDelegateDeclarationParameterComma = True - $2.NewParentheses = False - $2.SpacesBeforeBrackets = False - $2.inheritsSet = Mono - $2.inheritsScope = text/x-csharp - $2.scope = text/x-csharp - EndGlobalSection -EndGlobal