本地化问题修改

This commit is contained in:
2025-05-08 18:26:08 +08:00
parent 25e6cb638e
commit 107a6cbc4b
66 changed files with 4682 additions and 4506 deletions
@@ -22,7 +22,10 @@ namespace AibisDream
public override void OnSingletonInit()
{
InitEvent();
}
private void Start()
{
// 默认对话框直接加载
var box = transform.Find("Dialog Box").GetComponent<IDialogView>();
RegisterDialogView(DialogViewType.OldBox, box);
@@ -30,10 +33,8 @@ namespace AibisDream
RegisterDialogView(DialogViewType.CenterText, centerText);
var centerOption = transform.Find("Center Option").GetComponent<IDialogView>();
RegisterDialogView(DialogViewType.CenterOption, centerOption);
}
private void Start()
{
RegisterDialogView(DialogViewType.Task, UIManager.Instance.GetPanel<TaskPanel>());
_curView = _dialogViewDict[DialogViewType.OldBox];
}
@@ -93,7 +94,7 @@ namespace AibisDream
#region
public void ShowLine(string dialogLine, CharacterVo character, Action nextStep, bool isAutoSkip = false)
public void ShowLine(string dialogLine, CharacterVo character, Action nextStep, string lineId, bool isAutoSkip = false)
{
// 根据DialogViewType确定在哪个对话框显示
if (character.dialogViewType == DialogViewType.Default)
@@ -105,7 +106,7 @@ namespace AibisDream
_lastShowView = _curView;
// 没有指定对话框,就用当前激活的
_curView.ShowLine(dialogLine, character, nextStep, isAutoSkip);
_curView.ShowLine(dialogLine, character, nextStep, lineId, isAutoSkip);
}
else if (_dialogViewDict.TryGetValue(character.dialogViewType, out var view))
{
@@ -116,7 +117,7 @@ namespace AibisDream
_lastShowView = view;
// 对于指定了对话框的,就在指定对话框显示
view.ShowLine(dialogLine, character, nextStep, isAutoSkip);
view.ShowLine(dialogLine, character, nextStep, lineId, isAutoSkip);
}
else
{
@@ -208,6 +209,7 @@ namespace AibisDream
OldBox,
Screen,
CenterText,
CenterOption
CenterOption,
Task
}
}