diff --git a/PantheonsHitCounter/ModMenu.cs b/PantheonsHitCounter/ModMenu.cs index c0276bd..01eea0a 100644 --- a/PantheonsHitCounter/ModMenu.cs +++ b/PantheonsHitCounter/ModMenu.cs @@ -13,7 +13,7 @@ public class ModMenu { private static MenuScreen _modsMenu; public static MenuOptionHorizontal pantheonSelector, stateSelector; private static ModToggleDelegates _stateToggle; - private static int _selectedPantheon = 0; + private static int _selectedPantheon; private static readonly string[] ToggleState = { "Disabled", "Enabled" }; private static void AddMenuOptions(ContentArea area) diff --git a/PantheonsHitCounter/PantheonsHitCounter.cs b/PantheonsHitCounter/PantheonsHitCounter.cs index 490a30d..26f7379 100644 --- a/PantheonsHitCounter/PantheonsHitCounter.cs +++ b/PantheonsHitCounter/PantheonsHitCounter.cs @@ -6,9 +6,7 @@ using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Modding; -using On.InControl; using PantheonsHitCounter.UI; -using UnityEngine; namespace PantheonsHitCounter { @@ -30,7 +28,7 @@ public class PantheonsHitCounter : Mod, IGlobalSettings, ILocalSetti private static readonly string[] CompletedScene = { "GG_End_Sequence", "End_Game_Completion" }; public PantheonsHitCounter() : base("Pantheons Hit Counter") {} - public override string GetVersion() => "1.0.0"; + public override string GetVersion() => "1.0.1"; public void OnLoadGlobal(GlobalData data) => globalData = data; public GlobalData OnSaveGlobal() => globalData; public void OnLoadLocal(LocalData data) => _localData = data; diff --git a/PantheonsHitCounter/UI/CounterUI.cs b/PantheonsHitCounter/UI/CounterUI.cs index b9e5889..89c76de 100644 --- a/PantheonsHitCounter/UI/CounterUI.cs +++ b/PantheonsHitCounter/UI/CounterUI.cs @@ -75,7 +75,7 @@ public static void UpdateUI(Pantheon pantheon) var bossPanel = _panel.GetPanel("PHC-BossSplit-" + b); var boss = bosses[b + currentBossNumber]; var bossImg = ResourcesLoader.Instance.images[boss.name.Replace(" ", "_")]; - bossPanel.GetImage("BossSplitSelected").SetActive(b == GetSelectedSplit(pantheon.bossNumber, bosses.Count)); + bossPanel.GetImage("BossSplitSelected").SetActive(b == GetSelectedSplit(pantheon.bossNumber, bosses.Count) && _panel.Active); bossPanel.GetImage("BossImage").UpdateImage(bossImg, new Rect(0, 0, bossImg.width, bossImg.height)); bossPanel.GetText("BossName").UpdateText(boss.name); bossPanel.GetText("BossHits").UpdateText(boss.hits + "");