Merge branch '本地化bug修复' into 'develop'
修复本地化问题 See merge request aibis-dream/aibis-dream!377
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -156,7 +156,7 @@ MonoBehaviour:
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782307291166
|
||||
m_Localized: 'Analysing: nan'
|
||||
m_Localized: 'Analysing: '
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782307291167
|
||||
@@ -168,7 +168,7 @@ MonoBehaviour:
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782307291169
|
||||
m_Localized: 'EmoModule: nan'
|
||||
m_Localized: 'EmoModule: '
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782307291170
|
||||
@@ -201,7 +201,7 @@ MonoBehaviour:
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782307291177
|
||||
m_Localized: 'Analysing: nan'
|
||||
m_Localized: 'Analysing: '
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782307291178
|
||||
@@ -209,7 +209,7 @@ MonoBehaviour:
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782307291179
|
||||
m_Localized: 'SpeakerModule: nan'
|
||||
m_Localized: 'SpeakerModule: '
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782307291180
|
||||
@@ -243,11 +243,11 @@ MonoBehaviour:
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782307291187
|
||||
m_Localized: 'Analysing: nan'
|
||||
m_Localized: 'Analysing: '
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782307291188
|
||||
m_Localized: 'Analysing: nan'
|
||||
m_Localized: 'Analysing: '
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782307291189
|
||||
@@ -264,7 +264,7 @@ MonoBehaviour:
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782307291192
|
||||
m_Localized: 'LogicModule: nan'
|
||||
m_Localized: 'LogicModule: '
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782307291193
|
||||
@@ -305,7 +305,7 @@ MonoBehaviour:
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782307291202
|
||||
m_Localized: 'Analysing: nan'
|
||||
m_Localized: 'Analysing: '
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782307291203
|
||||
@@ -342,7 +342,7 @@ MonoBehaviour:
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782307291211
|
||||
m_Localized: 'MemModule: nan'
|
||||
m_Localized: 'MemModule: '
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782307291212
|
||||
@@ -418,7 +418,7 @@ MonoBehaviour:
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782307291229
|
||||
m_Localized: 'Analysing: nan'
|
||||
m_Localized: 'Analysing: '
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782307291230
|
||||
@@ -426,7 +426,7 @@ MonoBehaviour:
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782307291231
|
||||
m_Localized: 'EyeModule: nan'
|
||||
m_Localized: 'EyeModule: '
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782307291232
|
||||
@@ -469,11 +469,8 @@ MonoBehaviour:
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782307291241
|
||||
m_Localized: Shitou sits at the entrance of a small shed, next to a damaged robot.
|
||||
The shed, though worn, is neat and cozy. Sunlight filters through several pots
|
||||
of small plants hanging by the door, sprinkling on the cracked surfaces of
|
||||
the old wooden furniture. An imposing mountain of garbage casts a shadow over
|
||||
their view from the window.
|
||||
m_Localized: ' An imposing mountain of garbage casts a shadow over their view
|
||||
from the window.'
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782307291242
|
||||
@@ -896,7 +893,7 @@ MonoBehaviour:
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782311485503
|
||||
m_Localized: 'Analysing: nan'
|
||||
m_Localized: 'Analysing: '
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782311485504
|
||||
@@ -904,7 +901,7 @@ MonoBehaviour:
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782311485505
|
||||
m_Localized: 'LungModule: nan'
|
||||
m_Localized: 'LungModule: '
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782311485506
|
||||
@@ -937,7 +934,7 @@ MonoBehaviour:
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782311485513
|
||||
m_Localized: 'Analysing: nan'
|
||||
m_Localized: 'Analysing: '
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782311485514
|
||||
@@ -949,7 +946,7 @@ MonoBehaviour:
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782311485516
|
||||
m_Localized: 'HeartModule: nan'
|
||||
m_Localized: 'HeartModule: '
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782311485517
|
||||
@@ -994,7 +991,7 @@ MonoBehaviour:
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782311485527
|
||||
m_Localized: 'Analysing: nan'
|
||||
m_Localized: 'Analysing: '
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782311485528
|
||||
@@ -1002,7 +999,7 @@ MonoBehaviour:
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782311485529
|
||||
m_Localized: 'DigestModule: nan'
|
||||
m_Localized: 'DigestModule:'
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782311485530
|
||||
@@ -1037,7 +1034,7 @@ MonoBehaviour:
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782311485537
|
||||
m_Localized: 'Analysing: nan'
|
||||
m_Localized: 'Analysing: '
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782311485538
|
||||
@@ -1045,7 +1042,7 @@ MonoBehaviour:
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782311485539
|
||||
m_Localized: 'LiverModule: nan'
|
||||
m_Localized: 'LiverModule: '
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782311485540
|
||||
@@ -1536,6 +1533,37 @@ MonoBehaviour:
|
||||
m_Localized: 'me: ~Running..all.day~..~Forgetting.all..its.worries~..'
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 1104919200272384
|
||||
m_Localized: 'Task: Check All Modules '
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 1104919200272385
|
||||
m_Localized: 'Task: Check the Memory Module '
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 1104919200272386
|
||||
m_Localized: 'Task: Check the transmission'
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 1104919200272387
|
||||
m_Localized: "Task: Record the Stone\u2019s Voice"
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 1104919200272388
|
||||
m_Localized: "Task: Record the Stone\u2019s Voice"
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 3331711260852224
|
||||
m_Localized: 'Shitou sits at the entrance of a small shed, next to a damaged
|
||||
robot. '
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 3331711260852225
|
||||
m_Localized: The shed, though worn, is neat and cozy. Sunlight filters through
|
||||
several pots of small plants hanging by the door, sprinkling on the cracked
|
||||
surfaces of the old wooden furniture
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
references:
|
||||
version: 2
|
||||
RefIds: []
|
||||
|
||||
@@ -443,7 +443,7 @@ MonoBehaviour:
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782307291241
|
||||
m_Localized: "\u77F3\u5934\u548C\u4E00\u4E2A\u53D7\u635F\u7684\u673A\u4F53\u5750\u5728\u4E00\u4E2A\u5C0F\u68DA\u5C4B\u7684\u95E8\u53E3\uFF0C\u9633\u5149\u7A7F\u8FC7\u95E8\u53E3\u5782\u6302\u7684\u8BB8\u591A\u76C6\u5C0F\u690D\u7269\uFF0C\u6D12\u5728\u8001\u65E7\u5F00\u88C2\u7684\u6728\u5236\u5BB6\u5177\u4E0A\uFF0C\u7834\u65E7\u4F46\u6574\u6D01\u8212\u9002\u3002\u5C4B\u5916\u671B\u51FA\u53BB\uFF0C\u662F\u4E00\u5EA7\u9AD8\u9AD8\u7684\u5783\u573E\u5C71\u7684\u9634\u5F71\u3002"
|
||||
m_Localized: "\u5C4B\u5916\u671B\u51FA\u53BB\uFF0C\u662F\u4E00\u5EA7\u9AD8\u9AD8\u7684\u5783\u573E\u5C71\u7684\u9634\u5F71\u3002"
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 2782307291242
|
||||
@@ -1431,6 +1431,14 @@ MonoBehaviour:
|
||||
m_Localized: "Task: \u68C0\u67E5\u6240\u6709\u5934\u90E8\u6A21\u5757"
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 3331711260852225
|
||||
m_Localized: "\u9633\u5149\u7A7F\u8FC7\u95E8\u53E3\u5782\u6302\u7684\u8BB8\u591A\u76C6\u5C0F\u690D\u7269\uFF0C\u6D12\u5728\u8001\u65E7\u5F00\u88C2\u7684\u6728\u5236\u5BB6\u5177\u4E0A\uFF0C\u7834\u65E7\u4F46\u6574\u6D01\u8212\u9002\u3002"
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 3331711260852224
|
||||
m_Localized: "\u77F3\u5934\u548C\u4E00\u4E2A\u53D7\u635F\u7684\u673A\u4F53\u5750\u5728\u4E00\u4E2A\u5C0F\u68DA\u5C4B\u7684\u95E8\u53E3."
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
references:
|
||||
version: 2
|
||||
RefIds: []
|
||||
|
||||
@@ -349,7 +349,9 @@ position: 80,48
|
||||
---
|
||||
<<play_music event:/Music/mem_shitou_0>>
|
||||
<<set_music_param event:/Music/mem_shitou_0 shitou_mem_stage 0>>
|
||||
石头和一个受损的机体坐在一个小棚屋的门口,阳光穿过门口垂挂的许多盆小植物,洒在老旧开裂的木制家具上,破旧但整洁舒适。屋外望出去,是一座高高的垃圾山的阴影。 #line:08bc411
|
||||
石头和一个受损的机体坐在一个小棚屋的门口. #line:04687fa
|
||||
阳光穿过门口垂挂的许多盆小植物,洒在老旧开裂的木制家具上,破旧但整洁舒适。 #line:06a3e0d
|
||||
屋外望出去,是一座高高的垃圾山的阴影。 #line:08bc411
|
||||
<<set_music_param event:/Music/mem_shitou_0 shitou_mem_stage 0.1>>
|
||||
<<wait 2>>
|
||||
【风铃声】 #line:0de2a2f
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace AibisDream.FixSystem
|
||||
{
|
||||
_textScreen = transform.Find("旋转屏幕");
|
||||
_imageMaterial = screenImage.material;
|
||||
|
||||
|
||||
_generator = new TextGenerator();
|
||||
_generationSettings = new TextGenerationSettings
|
||||
{
|
||||
@@ -102,7 +102,14 @@ namespace AibisDream.FixSystem
|
||||
if (cutLineNum <= text.textInfo.lineCount)
|
||||
{
|
||||
var lastCharIndex = text.textInfo.lineInfo[cutLineNum - 1].lastCharacterIndex;
|
||||
oldText = text.text[lastCharIndex..];
|
||||
if (lastCharIndex + 1 < text.text.Length)
|
||||
{
|
||||
oldText = text.text.Substring(lastCharIndex + 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
oldText = string.Empty;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -112,7 +119,7 @@ namespace AibisDream.FixSystem
|
||||
|
||||
|
||||
var targetLength = oldText.Length + targetText.Length;
|
||||
|
||||
|
||||
// 逐个字符添加
|
||||
yield return DOTween.To(() => oldText.Length, x => UpdateText(x, targetText, oldText), targetLength,
|
||||
targetText.Length * typeSpeed).WaitForCompletion();
|
||||
@@ -121,7 +128,7 @@ namespace AibisDream.FixSystem
|
||||
EnumEventSystem.Global.Send(DialogEventEnum.LineEnd);
|
||||
_nextStep.Invoke();
|
||||
}
|
||||
|
||||
|
||||
private int EstimateLineNum(string str)
|
||||
{
|
||||
var height = _generator.GetPreferredHeight(str, _generationSettings);
|
||||
@@ -211,7 +218,7 @@ namespace AibisDream.FixSystem
|
||||
|
||||
#region 对话框功能实现
|
||||
|
||||
public void ShowLine(string dialogLine, CharacterVo character, Action nextStep, string lineId ,bool isAutoSkip = false)
|
||||
public void ShowLine(string dialogLine, CharacterVo character, Action nextStep, string lineId, bool isAutoSkip = false)
|
||||
{
|
||||
ShowTitle(character.GetActorName());
|
||||
StartCoroutine(ShowText(dialogLine));
|
||||
|
||||
Reference in New Issue
Block a user