Skip to content

Commit cb532ce

Browse files
Merge branch 'dev' into custom-template-font
2 parents af0f2e6 + 4c04b0b commit cb532ce

35 files changed

+492
-99
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Auto detect text files and perform LF normalization
2-
* text=auto
2+
* text=auto eol=lf

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ https://demo.openwebgal.com
2424

2525
#### 完整的游戏
2626

27-
[铃色☆记忆](http://hoshinasuzu.cn/) by 星奈组 [备用链接](http://hoshinasuzu.cc/)
27+
[WebGAL 官方游戏展示页](https://www.openwebgal.com/games/)
2828

2929
[Elf of Era Idols Project](https://store.steampowered.com/app/2414730/Elf_of_Era_Idols_Project/) (通过 Steam 获取)
3030

README_EN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ https://demo.openwebgal.com
2626

2727
A complete game:
2828

29-
[铃色☆记忆](http://hoshinasuzu.cn/) by Hoshinasuzu [备用链接](http://hoshinasuzu.cc/)
29+
[WebGAL games showcase](https://www.openwebgal.com/games/)
3030

3131
### Creating Games with WebGAL
3232

README_FR.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ https://demo.openwebgal.com
2727

2828
Un jeu complet :
2929

30-
[铃色☆记忆](http://hoshinasuzu.cn/) de Hoshinasuzu [Lien de secours](http://hoshinasuzu.cc/)
30+
[Présentation officielle des jeux WebGAL](https://www.openwebgal.com/games/)
3131

3232
### Créer des jeux avec WebGAL
3333

README_JP.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ https://webgal-jp-demo.onrender.com/
2626

2727
現在公開されているゲーム(中国語):
2828

29-
[ベルカラー☆メモリー](http://hoshinasuzu.cn/suzu.html) by Hoshinasuzu [代替リンク](http://hoshinasuzu.cc/)
29+
[WebGAL公式ゲーム紹介ページ](https://www.openwebgal.com/games/)
3030

3131
### WebGALでゲームを作成
3232

README_KO.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ https://demo.openwebgal.com
2626

2727
완성된 게임:
2828

29-
[铃色☆记忆](http://hoshinasuzu.cn/) by Hoshinasuzu [백업 링크](http://hoshinasuzu.cc/)
29+
[WebGAL 공식 게임 소개 페이지](https://www.openwebgal.com/games/)
3030

3131
### WebGAL로 게임 만들기
3232

packages/parser/src/config/scriptConfig.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export const SCRIPT_CONFIG = [
3838
{ scriptString: 'getUserInput', scriptType: commandType.getUserInput },
3939
{ scriptString: 'applyStyle', scriptType: commandType.applyStyle },
4040
{ scriptString: 'wait', scriptType: commandType.wait },
41+
{ scriptString: 'callSteam', scriptType: commandType.callSteam },
4142
];
4243
export const ADD_NEXT_ARG_LIST = [
4344
commandType.bgm,
@@ -53,6 +54,7 @@ export const ADD_NEXT_ARG_LIST = [
5354
commandType.playEffect,
5455
commandType.setTransition,
5556
commandType.applyStyle,
57+
commandType.callSteam,
5658
];
5759

5860
export type ConfigMap = Map<string, ConfigItem>;

packages/parser/src/interface/sceneInterface.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export enum commandType {
3939
getUserInput,
4040
applyStyle,
4141
wait,
42+
callSteam, // 调用Steam功能
4243
}
4344

4445
/**

packages/parser/src/scriptParser/scriptParser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ export const scriptParser = (
3737

3838
// 去分号
3939
const commentSplit = sentenceRaw.split(/(?<!\\);/);
40-
let newSentenceRaw = commentSplit[0].trim();
40+
let newSentenceRaw = commentSplit[0];
4141
newSentenceRaw = newSentenceRaw.replaceAll('\\;',';');
4242
const sentenceComment = commentSplit[1] ?? '';
43-
if (newSentenceRaw === '') {
43+
if (newSentenceRaw.trim() === '') {
4444
// 注释提前返回
4545
return {
4646
command: commandType.comment, // 语句类型

packages/webgal/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"angular-expressions": "^1.4.3",
1616
"axios": "^0.30.2",
1717
"cloudlogjs": "^1.0.9",
18+
"gifuct-js": "^2.1.2",
1819
"i18next": "^22.4.15",
1920
"localforage": "^1.10.0",
2021
"lodash": "^4.17.21",

0 commit comments

Comments
 (0)