feat(ui): 添加 Terminal 风格主界面 UI 系统
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using AibisDream.Framework;
|
||||
using AibisDream.Kit;
|
||||
using AibisDream.UI;
|
||||
using AibisDream.UI.Terminal;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
@@ -29,6 +30,14 @@ namespace AibisDream
|
||||
}
|
||||
|
||||
private RecordPanel RecordPanel => UIManager.Instance.GetPanel<RecordPanel>();
|
||||
private TerminalRecordPanel TerminalRecordPanel
|
||||
{
|
||||
get
|
||||
{
|
||||
UIManager.Instance.TryGetPanel<TerminalRecordPanel>(out var panel);
|
||||
return panel;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 记录对话
|
||||
@@ -41,12 +50,14 @@ namespace AibisDream
|
||||
return;
|
||||
}
|
||||
|
||||
RecordPanel.AppendDialogLine(line);
|
||||
RecordPanel?.AppendDialogLine(line);
|
||||
TerminalRecordPanel?.AppendDialogLine(line);
|
||||
}
|
||||
|
||||
private void CleanDialogHistory()
|
||||
{
|
||||
RecordPanel.ClearDialog();
|
||||
RecordPanel?.ClearDialog();
|
||||
TerminalRecordPanel?.ClearDialog();
|
||||
}
|
||||
|
||||
public void CloseCanvas()
|
||||
@@ -101,4 +112,4 @@ namespace AibisDream
|
||||
Task,
|
||||
Log
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user