26 lines
795 B
C#
26 lines
795 B
C#
|
|
using Sirenix.OdinInspector;
|
||
|
|
using UnityEngine;
|
||
|
|
using Yarn.Unity;
|
||
|
|
|
||
|
|
namespace SLSUtilities.Narrative.UI
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// 高级输入控制器,继承自官方 LineAdvancer。
|
||
|
|
/// 在保留所有原生输入处理逻辑的基础上,
|
||
|
|
/// 当关键词 Tooltip 窗口处于打开状态时,阻断本帧的台词推进输入。
|
||
|
|
/// </summary>
|
||
|
|
public class AdvancedLineAdvancer : LineAdvancer
|
||
|
|
{
|
||
|
|
protected override void RequestLineHurryUpInternal()
|
||
|
|
{
|
||
|
|
if (KeywordTooltipUI.IsBlockingDialogueInput) return;
|
||
|
|
base.RequestLineHurryUpInternal();
|
||
|
|
}
|
||
|
|
|
||
|
|
public override void RequestNextLine()
|
||
|
|
{
|
||
|
|
if (KeywordTooltipUI.IsBlockingDialogueInput) return;
|
||
|
|
base.RequestNextLine();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|