Ver.0.3.0.33

This commit is contained in:
2025-07-08 08:32:46 +00:00
parent 99f4dd67c2
commit 0ad5e29917
6831 changed files with 695623 additions and 234455 deletions
+18 -1
View File
@@ -1,3 +1,6 @@
using AibisDream.Framework;
using UnityEngine;
namespace AibisDream.Kit
{
public class Character
@@ -26,6 +29,7 @@ namespace AibisDream.Kit
vo.bubbleIdx = BubbleIdx;
vo.role = Role;
vo.dialogViewType = DialogViewType;
return vo;
}
}
@@ -47,7 +51,20 @@ namespace AibisDream.Kit
/// <returns></returns>
public string GetActorName()
{
return string.IsNullOrEmpty(nameColor) ? cn : $"<color={nameColor}>{cn}</color>";
string rawName;
// 人名部分直接为空
if (string.IsNullOrWhiteSpace(key))
{
rawName = "";
}
else
{
// 人名能找到
var entry = LocalizationKit.ActorTable[key];
rawName = entry == null ? key : entry.LocalizedValue;
}
return string.IsNullOrEmpty(nameColor) ? rawName : $"<color={nameColor}>{rawName}</color>";
}
public string VoicePath