Skip to content

Commit

Permalink
fix: user input initial props
Browse files Browse the repository at this point in the history
  • Loading branch information
MakinoharaShoko committed Nov 23, 2023
1 parent ccef5b7 commit 13934eb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/webgal/src/Core/gameScripts/getUserInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import { setStageVar } from '@/store/stageReducer';
export const getUserInput = (sentence: ISentence): IPerform => {
const varKey = sentence.content.toString().trim();
const titleFromArgs = getSentenceArgByKey(sentence, 'title');
const title = titleFromArgs ?? 'Please Input';
const title = (titleFromArgs === 0 ? 'Please Input' : titleFromArgs) ?? 'Please Input';
const buttonTextFromArgs = getSentenceArgByKey(sentence, 'buttonText');
const buttonText = buttonTextFromArgs ?? 'OK';
const buttonText = (buttonTextFromArgs === 0 ? 'OK' : buttonTextFromArgs) ?? 'OK';
const fontFamily = webgalStore.getState().userData.optionData.textboxFont;
const font = fontFamily === textFont.song ? '"思源宋体", serif' : '"WebgalUI", serif';
const { playSeEnterChoose, playSeClickChoose } = useSEByWebgalStore();
Expand Down
10 changes: 10 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5359,6 +5359,16 @@ [email protected]:
resolved "https://registry.yarnpkg.com/void-elements/-/void-elements-3.1.0.tgz#614f7fbf8d801f0bb5f0661f5b2f5785750e4f09"
integrity sha512-Dhxzh5HZuiHQhbvTW9AMetFfBHDMYpo23Uo9btPXgdYP+3T5S+p+jgNy7spra+veYhBP2dCSgxR/i2Y02h5/6w==

[email protected]:
version "4.4.5-fix2"
resolved "https://registry.yarnpkg.com/webgal-parser/-/webgal-parser-4.4.5-fix2.tgz#4a77cf0c2b8a2be0e73813ff8e77dc2cd664e62b"
integrity sha512-O/8HW75ExANS/rbgu7TF3Snml7D/8gWWKKfnrpuasnUINWHIWhfcyLMjz8vK8nm9/7LmA0Epg1yJ1RQrs3Txew==
dependencies:
chevrotain "^10.5.0"
cloudlogjs "^1.0.11"
lodash "^4.17.21"
tsx "^3.12.7"

webidl-conversions@^3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871"
Expand Down

0 comments on commit 13934eb

Please sign in to comment.