问题修复
1. CenterText效果异常修复 2. 部分气泡宽度不合预期修复 3. 删除切割日志
This commit is contained in:
@@ -16,6 +16,12 @@ namespace AibisDream
|
||||
public override void RunLine(LocalizedLine dialogueLine, Action onDialogueLineFinished)
|
||||
{
|
||||
LineSyncToken lineSyncEvent;
|
||||
|
||||
if (dialogueLine.TextID.Contains("第一章"))
|
||||
{
|
||||
Debug.Log($"第一章: {dialogueLine.GetCharacterVo().dialogViewType}");
|
||||
}
|
||||
|
||||
if (dialogueLine.GetCharacterVo().dialogViewType == DialogViewType.Screen)
|
||||
{
|
||||
// 自动推进视图
|
||||
@@ -43,7 +49,7 @@ namespace AibisDream
|
||||
Debug.LogWarning($"未注册的视图类型: {dialogueLine.GetCharacterVo().dialogViewType}");
|
||||
}
|
||||
}
|
||||
else
|
||||
else if (dialogueLine.GetCharacterVo().dialogViewType == DialogViewType.Default)
|
||||
{
|
||||
// 手动推进视图
|
||||
lineSyncEvent = LineSyncToken.CreateDefault(dialogueLine, onDialogueLineFinished);
|
||||
@@ -57,8 +63,22 @@ namespace AibisDream
|
||||
{
|
||||
Debug.LogWarning($"未注册的视图类型: {defaultViewType}");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
// 指定了视图类型
|
||||
lineSyncEvent = LineSyncToken.CreateDefault(dialogueLine, onDialogueLineFinished);
|
||||
if (_screenViewDict.TryGetValue(dialogueLine.GetCharacterVo().dialogViewType, out var view))
|
||||
{
|
||||
DialogController.Instance.lineSyncToken = lineSyncEvent;
|
||||
view.RunLine(lineSyncEvent);
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogWarning($"未注册的视图类型: {dialogueLine.GetCharacterVo().dialogViewType}");
|
||||
}
|
||||
}
|
||||
|
||||
// 最后交给推进处理
|
||||
advanceInput.RunLine(lineSyncEvent);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user