diff --git a/Assets/Scripts/Battle/UIController.cs b/Assets/Scripts/Battle/UIController.cs index f74cba68b..241e345be 100644 --- a/Assets/Scripts/Battle/UIController.cs +++ b/Assets/Scripts/Battle/UIController.cs @@ -646,7 +646,7 @@ public void DoNextMonsterDialogue(bool singleLineAll = false, int index = -1) { } // Part that autoskips text if [nextthisnow] or [finished] is introduced - if (sbTextMan.CanAutoSkipThis() || sbTextMan.CanAutoSkip() || readyToNextLine[encounter.enemies.IndexOf(monsterDialogueEnemy[i])]) { + if (sbTextMan.CanAutoSkipAny() || readyToNextLine[encounter.enemies.IndexOf(monsterDialogueEnemy[i])]) { if (sbTextMan.HasNext()) { sbTextMan.NextLineText(); enemy.UpdateBubble(i); @@ -1400,7 +1400,7 @@ private void Update() { mainTextManager.SetPause(false); if (state == "DIALOGRESULT") - if (mainTextManager.CanAutoSkipAll() || (mainTextManager.CanAutoSkipThis() && mainTextManager.LineComplete())) + if (mainTextManager.CanAutoSkipAll() || mainTextManager.CanAutoSkip() || (mainTextManager.CanAutoSkipThis() && mainTextManager.LineComplete())) if (mainTextManager.HasNext()) mainTextManager.NextLineText(); else diff --git a/Assets/Scripts/Lua/CLRBindings/LuaTextManager.cs b/Assets/Scripts/Lua/CLRBindings/LuaTextManager.cs index 5d119d043..93c377ab2 100644 --- a/Assets/Scripts/Lua/CLRBindings/LuaTextManager.cs +++ b/Assets/Scripts/Lua/CLRBindings/LuaTextManager.cs @@ -121,7 +121,7 @@ protected override void Update() { break; } } - if ((CanAutoSkipAll() || CanAutoSkipThis()) && (!UIController.instance || !UIController.instance.monsterDialogues.Contains(this))) + if (CanAutoSkipAny() && (!UIController.instance || !UIController.instance.monsterDialogues.Contains(this))) NextLine(); if (CanSkip() && !LineComplete() && GlobalControls.input.Cancel == ButtonState.PRESSED) DoSkipFromPlayer(); diff --git a/Assets/Scripts/Text/TextManager.cs b/Assets/Scripts/Text/TextManager.cs index 55c5f6b51..4d2debd3e 100644 --- a/Assets/Scripts/Text/TextManager.cs +++ b/Assets/Scripts/Text/TextManager.cs @@ -272,6 +272,7 @@ [MoonSharpHidden] public void AddToTextQueue(TextMessage[] textQueueToAdd) { [MoonSharpHidden] public bool CanAutoSkip() { return autoSkip; } [MoonSharpHidden] public bool CanAutoSkipThis() { return autoSkipThis; } [MoonSharpHidden] public bool CanAutoSkipAll() { return autoSkipAll; } + [MoonSharpHidden] public bool CanAutoSkipAny() { return CanAutoSkip() || CanAutoSkipThis() || CanAutoSkipAll(); } public int LineCount() { return textQueue == null ? 0 : textQueue.Length;