We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d304fdb + 159d3c5 commit 825d420Copy full SHA for 825d420
packages/webgal/src/Core/gameScripts/say.ts
@@ -23,6 +23,9 @@ export const say = (sentence: ISentence): IPerform => {
23
const dispatch = webgalStore.dispatch;
24
let dialogKey = Math.random().toString(); // 生成一个随机的key
25
let dialogToShow = sentence.content; // 获取对话内容
26
+ if (dialogToShow) {
27
+ dialogToShow = String(dialogToShow).replace(/ /g, '\u00a0'); // 替换空格
28
+ }
29
const isConcat = getSentenceArgByKey(sentence, 'concat'); // 是否是继承语句
30
const isNotend = getSentenceArgByKey(sentence, 'notend') as boolean; // 是否有 notend 参数
31
const speaker = getSentenceArgByKey(sentence, 'speaker'); // 获取说话者
0 commit comments