Skip to content

Commit f01d4f0

Browse files
Merge pull request #619 from OpenWebGAL/dev
4.5.11
2 parents f4ea00b + 3326ece commit f01d4f0

File tree

30 files changed

+511
-396
lines changed

30 files changed

+511
-396
lines changed

.github/workflows/deploy-demo-page.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Setup Node.js environment
2020
uses: actions/setup-node@v3
2121
with:
22-
node-version: 16
22+
node-version-file: package.json
2323
cache: 'yarn'
2424

2525
# 安装依赖

.github/workflows/pr-check.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Setup Node.js environment
2121
uses: actions/setup-node@v3
2222
with:
23-
node-version: 16
23+
node-version-file: package.json
2424
cache: 'yarn'
2525

2626
# 安装依赖

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,8 @@
2121
"packages/*"
2222
]
2323
},
24-
"private": true
24+
"private": true,
25+
"engines": {
26+
"node": "18"
27+
}
2528
}

packages/webgal/package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "webgal",
33
"private": true,
4-
"version": "4.5.10",
4+
"version": "4.5.11",
55
"scripts": {
66
"dev": "vite --host --port 3000",
77
"build": "cross-env NODE_ENV=production tsc && vite build --base=./",
@@ -12,7 +12,7 @@
1212
"@emotion/css": "^11.11.2",
1313
"@icon-park/react": "^1.4.2",
1414
"@reduxjs/toolkit": "^1.8.1",
15-
"angular-expressions": "^1.1.5",
15+
"angular-expressions": "^1.4.3",
1616
"axios": "^0.28.0",
1717
"cloudlogjs": "^1.0.9",
1818
"i18next": "^22.4.15",
@@ -22,7 +22,6 @@
2222
"modern-css-reset": "^1.4.0",
2323
"pixi-filters": "^4.2.0",
2424
"pixi-live2d-display-webgal": "^0.5.8",
25-
"pixi-spine": "^3.1.2",
2625
"pixi.js": "^6.3.0",
2726
"popmotion": "^11.0.5",
2827
"react": "^17.0.2",
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"name":"Default Template",
3-
"webgal-version":"4.5.10"
3+
"webgal-version":"4.5.11"
44
}

packages/webgal/src/Core/Modules/animationFunctions.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@ import cloneDeep from 'lodash/cloneDeep';
66
import { baseTransform } from '@/store/stageInterface';
77
import { generateTimelineObj } from '@/Core/controller/stage/pixi/animations/timeline';
88
import { WebGAL } from '@/Core/WebGAL';
9+
import PixiStage from '@/Core/controller/stage/pixi/PixiController';
910

1011
export function getAnimationObject(animationName: string, target: string, duration: number) {
1112
const effect = WebGAL.animationManager.getAnimations().find((ani) => ani.name === animationName);
1213
if (effect) {
1314
const mappedEffects = effect.effects.map((effect) => {
1415
const targetSetEffect = webgalStore.getState().stage.effects.find((e) => e.target === target);
1516
const newEffect = cloneDeep({ ...(targetSetEffect?.transform ?? baseTransform), duration: 0 });
16-
Object.assign(newEffect, effect);
17+
PixiStage.assignTransform(newEffect, effect);
1718
newEffect.duration = effect.duration;
1819
return newEffect;
1920
});

packages/webgal/src/Core/controller/gamePlay/autoPlay.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ export const autoNextSentence = () => {
5858
* 自动播放的执行函数
5959
*/
6060
const autoPlay = () => {
61-
const delay = webgalStore.getState().userData.optionData.autoSpeed;
62-
const autoPlayDelay = 750 - 250 * delay;
61+
const data = webgalStore.getState().userData.optionData.autoSpeed;
62+
// 范围为 [250, 1750]
63+
const autoPlayDelay = 250 + (100 - data) * 15;
6364
let isBlockingAuto = false;
6465
WebGAL.gameplay.performController.performList.forEach((e) => {
6566
if (e.blockingAuto())

packages/webgal/src/Core/controller/gamePlay/backToTitle.ts

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { stopFast } from '@/Core/controller/gamePlay/fastSkip';
77
import { setEbg } from '@/Core/gameScripts/changeBg/setEbg';
88

99
export const backToTitle = () => {
10+
if (webgalStore.getState().GUI.showTitle) return;
1011
const dispatch = webgalStore.dispatch;
1112
stopAllPerform();
1213
stopAuto();

0 commit comments

Comments
 (0)