Skip to content

Commit 32463ff

Browse files
committed
feat: add ruleButtonText argument
1 parent 8406a60 commit 32463ff

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • packages/webgal/src/Core/gameScripts/getUserInput

packages/webgal/src/Core/gameScripts/getUserInput/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export const getUserInput = (sentence: ISentence): IPerform => {
3232
const rule = getStringArgByKey(sentence, 'rule');
3333
const ruleFlag = getStringArgByKey(sentence, 'ruleFlag');
3434
const ruleText = getStringArgByKey(sentence, 'ruleText');
35+
const ruleButtonText = getStringArgByKey(sentence, 'ruleButtonText') ?? 'OK';
3536

3637
const font = getCurrentFontFamily();
3738

@@ -51,7 +52,7 @@ export const getUserInput = (sentence: ISentence): IPerform => {
5152
if (ruleText)
5253
showGlogalDialog({
5354
title: ruleText.replaceAll(/\$0/g, userInput.value),
54-
leftText: 'OK',
55+
leftText: ruleButtonText,
5556
});
5657
return;
5758
}

0 commit comments

Comments
 (0)