Ver.0.3.0.33
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user