选项修改

This commit is contained in:
2025-06-11 17:54:19 +08:00
parent ae9ce6312b
commit e6709e621d
9 changed files with 275 additions and 237 deletions
+1 -2
View File
@@ -120,8 +120,7 @@ namespace AibisDream
private void HandleLayout(string line)
{
// 先去除富文本标签
line = Regex.Replace(line, "[<|{].*?[>|}]", string.Empty);
Debug.Log(line);
line = Regex.Replace(line.Replace("<br>", "\n"), "[<|{].*?[>|}]", string.Empty);
var width = DialogCanvasManager.Instance.EstimateTextWidth(line, _lineText.fontSize);
if (width > maxWidth)
{
@@ -138,7 +138,12 @@ namespace AibisDream
public bool TrySkipLine(bool isForceSkip = false)
{
if (_curBubble.IsShowingText)
if (!_curBubble)
{
return true;
}
if (_curBubble && _curBubble.IsShowingText)
{
_curBubble.SkipLine();
return true;
@@ -156,6 +161,7 @@ namespace AibisDream
_nextStep = null;
_curBubble?.Hide();
_curBubble = null;
next?.Invoke();
}
@@ -156,9 +156,6 @@ namespace AibisDream
public void ShowLine(string dialogLine, CharacterVo character, Action nextStep, string lineId,
bool isAutoSkip = false)
{
Debug.Log($"{character.dialogViewType}");
Debug.Log(_defaultView.GetType());
_isNextAutoSkip = isAutoSkip;
// 根据DialogViewType确定在哪个对话框显示
if (character.dialogViewType == DialogViewType.Default)