From 780ad3d3ec8e6d3bc2ece6e21fcf1c6f6ae8c84b Mon Sep 17 00:00:00 2001 From: Soar Qin Date: Fri, 2 May 2025 18:48:02 +0800 Subject: [PATCH] minor fix, with TODO updated --- UXAssist/TODO.md | 5 +++++ UXAssist/UI/MyCheckbox.cs | 6 +++--- UXAssist/UXAssist.cs | 11 +++++++---- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/UXAssist/TODO.md b/UXAssist/TODO.md index 4e8039f..f2b461f 100644 --- a/UXAssist/TODO.md +++ b/UXAssist/TODO.md @@ -1 +1,6 @@ #### TODO +* Starmap filter: top windows overlap fix +* Set battlefield analysis base power charging +* Auto-navigation: avoid darkfogs +* Auto-navigation: do not use warper if the tech is not researched +* Recreate planet: crash fix diff --git a/UXAssist/UI/MyCheckbox.cs b/UXAssist/UI/MyCheckbox.cs index 60b4c95..045c61d 100644 --- a/UXAssist/UI/MyCheckbox.cs +++ b/UXAssist/UI/MyCheckbox.cs @@ -18,9 +18,9 @@ public class MyCheckBox : MonoBehaviour private static GameObject _baseObject; - private static readonly Color BoxColor = new Color(1f, 1f, 1f, 100f / 255f); - private static readonly Color CheckColor = new Color(1f, 1f, 1f, 1f); - private static readonly Color TextColor = new Color(178f / 255f, 178f / 255f, 178f / 255f, 168f / 255f); + private static readonly Color BoxColor = new(1f, 1f, 1f, 100f / 255f); + private static readonly Color CheckColor = new(1f, 1f, 1f, 1f); + private static readonly Color TextColor = new(178f / 255f, 178f / 255f, 178f / 255f, 168f / 255f); public static void InitBaseObject() { diff --git a/UXAssist/UXAssist.cs b/UXAssist/UXAssist.cs index efe32b8..66f4607 100644 --- a/UXAssist/UXAssist.cs +++ b/UXAssist/UXAssist.cs @@ -235,20 +235,23 @@ public class UXAssist : BaseUnityPlugin, IModCanSave GameLogic.Enable(false); } - private void FixedUpdate() + private void Update() { + if (VFInput.inputing) return; if (DSPGame.IsMenuDemo) { - if (VFInput.inputing) return; UIFunctions.OnInputUpdate(); return; } - LogisticsPatch.OnUpdate(); - if (VFInput.inputing) return; LogisticsPatch.OnInputUpdate(); UIFunctions.OnInputUpdate(); GamePatch.OnInputUpdate(); FactoryPatch.OnInputUpdate(); PlayerPatch.OnInputUpdate(); } + + private void FixedUpdate() + { + LogisticsPatch.OnUpdate(); + } }