信息栏动效
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m34s

This commit is contained in:
TJH 2025-12-19 10:28:15 +08:00
parent 4af1253369
commit d3e998b287
3 changed files with 6352 additions and 4650 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
import { _decorator, Animation, Button, Component, instantiate, Label, Layout, Node, ParticleSystem, Prefab, RichText, Size, sp, Sprite, SpriteFrame, tween, UIOpacity, UITransform, v3, Vec3 } from 'cc';
import { _decorator, Animation, Button, Component, instantiate, Label, Layout, Node, ParticleSystem, Prefab, RichText, Size, Skeleton, sp, Sprite, SpriteFrame, tween, UIOpacity, UITransform, v3, Vec3 } from 'cc';
import { RollerManager } from './game/RollerManager';
import { GameInfo, ICON_RATE, ROLLER_COMBINE_EVENT, SLOT_GAME_EVENT, WIN_TYPE } from './game/Define';
import { Icon, IconEventBus } from './game/Icon';
@ -55,12 +55,14 @@ export class SlotGame extends Component {
private winTypeParticle: ParticleSystem = null;
private normalWin: Node = null;
private normalWinSpin: sp.Skeleton = null;
private normalWinLayout: Layout = null;
private normalWinSprite: Node = null;
private normalTotalWinSprite: Node = null;
private normalWinLabel: Label = null;
private totalWin: Node = null;
private totalWinSpin: sp.Skeleton = null;
private totalWinLayout: Layout = null;
private totalWinLabel: Label = null;
@ -116,11 +118,13 @@ export class SlotGame extends Component {
this.totalWin = frameNode.getChildByName('marqueeFrame_03');
this.normalWinLayout = this.normalWin.getChildByName('layout').getComponent(Layout);
this.normalWinSpin = this.normalWin.getChildByName('animation1').getComponent(sp.Skeleton);
this.normalWinSprite = this.normalWinLayout.node.getChildByName('winSprite');
this.normalTotalWinSprite = this.normalWinLayout.node.getChildByName('totalWinSprite');
this.normalWinLabel = this.normalWinLayout.node.getChildByName('winScore').getComponent(Label);
this.totalWinLayout = this.totalWin.getChildByName('layout').getComponent(Layout);
this.totalWinSpin = this.totalWin.getChildByName('animation').getComponent(sp.Skeleton);
this.totalWinLabel = this.totalWinLayout.node.getChildByName('winScore').getComponent(Label);
this.baseBg = this.node.getChildByName('base_bg');
@ -641,8 +645,15 @@ export class SlotGame extends Component {
}
this.winTypeAni.node.getChildByName('AniNode').active = true;
// 设置活动显示窗口
this.normalWin.active = !isBigWin;
this.totalWin.active = isBigWin;
if (isBigWin) {
this.totalWin.active = true;
this.totalWinSpin.setAnimation(0, "animation", false)
} else {
this.normalWin.active = true;
this.normalWinSpin.setAnimation(0, 'animation', false)
}
// 更新对应标签和布局
if (isBigWin) {

View File

@ -3049,7 +3049,7 @@
"__id__": 2
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 83
@ -3100,13 +3100,13 @@
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 352,
"height": 365
"width": 1668,
"height": 443
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.49806820262562146,
"y": 0.4981370063677226
"x": 0.4988009592326139,
"y": 0.5169300225733634
},
"_id": "7f5YblwE5H84qJc33lO18N"
},
@ -3131,11 +3131,11 @@
"a": 255
},
"_skeletonData": {
"__uuid__": "1cad30f1-b3af-41c1-a993-80959764ce5d",
"__uuid__": "d6c7f57d-ffc9-4e1f-9033-70b0ea7a0bc5",
"__expectedType__": "sp.SkeletonData"
},
"defaultSkin": "default",
"defaultAnimation": "animation",
"defaultAnimation": "1",
"_premultipliedAlpha": false,
"_timeScale": 1,
"_preCacheMode": 0,