diff --git a/SINoCOLO/MainForm.cs b/SINoCOLO/MainForm.cs index 6f77ca2..8d6cac1 100644 --- a/SINoCOLO/MainForm.cs +++ b/SINoCOLO/MainForm.cs @@ -18,6 +18,7 @@ public partial class MainForm : Form private bool selectInstanceMode = false; private int numHighFreqTicks = 0; private int numScanDelayTicks = 0; + private int numTicksToResetStoryMode = -1; private string cachedTitle; [DllImport("user32.dll", CharSet = CharSet.Auto)] @@ -107,9 +108,10 @@ private void GameLogic_OnStateChangeNotify(GameLogic.EState newState) { // always force story mode: ignore when activating colo combat // shouldn't matter but meh, doesn't hurt to be on safe side + numTicksToResetStoryMode = -1; if (newState == GameLogic.EState.ColoCombat) { - comboBoxStoryMode.SelectedIndex = (int)GameLogic.EStoryMode.None; + numTicksToResetStoryMode = 20; } UpdateVisibileControls(); @@ -168,6 +170,16 @@ private void timerScan_Tick(object sender, EventArgs e) Scan(); UpdateTimerFreq(); DetailLog(); + + if (numTicksToResetStoryMode > 0) + { + numTicksToResetStoryMode--; + if (numTicksToResetStoryMode == 0) + { + comboBoxStoryMode.SelectedIndex = (int)GameLogic.EStoryMode.None; + numTicksToResetStoryMode = -1; + } + } } private void SetScreenState(ScreenReader.EState NewState) diff --git a/SINoCOLO/Properties/AssemblyInfo.cs b/SINoCOLO/Properties/AssemblyInfo.cs index 2448803..e397d60 100644 --- a/SINoCOLO/Properties/AssemblyInfo.cs +++ b/SINoCOLO/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("25.0.0.0")] -[assembly: AssemblyFileVersion("25.0.0.0")] +[assembly: AssemblyVersion("26.0.0.0")] +[assembly: AssemblyFileVersion("26.0.0.0")]