From 1930217677ac32fd1bd1494ebcdb8e24edaafb0f Mon Sep 17 00:00:00 2001 From: Leaxx Date: Tue, 5 Mar 2024 22:39:15 +0200 Subject: [PATCH] 1.0.2 --- LaikaAddons/LaikaAddons.cs | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/LaikaAddons/LaikaAddons.cs b/LaikaAddons/LaikaAddons.cs index 2f553d7..77f4be2 100644 --- a/LaikaAddons/LaikaAddons.cs +++ b/LaikaAddons/LaikaAddons.cs @@ -12,7 +12,7 @@ public class LaikaAddons : Mod public override string ModName => "Laika Addons"; // The mod's name. This is shown in the mods list. Does not need to be unique. public override string ModAuthor => "Leaxx"; // The mod's author (you). Also shown in the mods list. public override string ModDescription => "Adds various features to the Laika for more immersive gameplay!"; // The mod's description. This is also shown in the mods list, upon clicking on "More Info". - public override string ModVersion => "1.0.0"; // The mod's version. Also shown in the mods list. If your mod is open-source on GitHub, make sure that you're using the same format as your release tags (for example, 1.0.0) + public override string ModVersion => "1.0.1"; // The mod's version. Also shown in the mods list. If your mod is open-source on GitHub, make sure that you're using the same format as your release tags (for example, 1.0.0) public override string GitHubLink => "https://github.com/Jalopy-Mods/LaikaAddons"; // If your mod is open-source on GitHub, you can link it here to allow for automatic update-checking in-game. It compares the current ModVersion with the tag of the latest release (ex. 1.0.0 compared with 1.0.1) public override WhenToInit WhenToInit => WhenToInit.InGame; // When should the mod's OnEnable/Awake/Start/Update functions be called? @@ -101,7 +101,7 @@ public override void Start() // Default Unity Start() function commonMaterial = new Material(Shader.Find("Legacy Shaders/Diffuse")) { - color = new Color32(120, 120, 120, 255), + color = new Color32(150, 150, 150, 255), mainTexture = PNGToTexture("TextureMap"), name = "LaikaAddons_TextureMap" }; @@ -178,8 +178,8 @@ public override void Start() // Default Unity Start() function lightsKnobScript.errorAudio = hazardsLogic.errorAudio; - turnSignalScript.startMaterial = commonMaterial; - turnSignalScript.glowMaterial = glowMaterial; + turnSignalScript.startMaterial = commonDefaultMaterial; + turnSignalScript.glowMaterial = hazardsLogic.glowMaterial; Vector3[] turnSignalLeverPositions = new Vector3[3]; @@ -219,7 +219,13 @@ public override void Start() // Default Unity Start() function } signals[1].GetComponent().range = signals[3].GetComponent().range = 50; - } + } + + /*string[] joystickNames = Input.GetJoystickNames(); + for (int i = 0; i < joystickNames.Length; i++) + { + Console.Instance.Log("Joystick " + i + ": " + joystickNames[i]); + }*/ } public override void Update() // Default Unity Update() function