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.
1 parent 8406a60 commit 32463ffCopy full SHA for 32463ff
1 file changed
packages/webgal/src/Core/gameScripts/getUserInput/index.tsx
@@ -32,6 +32,7 @@ export const getUserInput = (sentence: ISentence): IPerform => {
32
const rule = getStringArgByKey(sentence, 'rule');
33
const ruleFlag = getStringArgByKey(sentence, 'ruleFlag');
34
const ruleText = getStringArgByKey(sentence, 'ruleText');
35
+ const ruleButtonText = getStringArgByKey(sentence, 'ruleButtonText') ?? 'OK';
36
37
const font = getCurrentFontFamily();
38
@@ -51,7 +52,7 @@ export const getUserInput = (sentence: ISentence): IPerform => {
51
52
if (ruleText)
53
showGlogalDialog({
54
title: ruleText.replaceAll(/\$0/g, userInput.value),
- leftText: 'OK',
55
+ leftText: ruleButtonText,
56
});
57
return;
58
}
0 commit comments