信息栏动效
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m34s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m34s
This commit is contained in:
parent
4af1253369
commit
d3e998b287
File diff suppressed because it is too large
Load Diff
@ -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 { RollerManager } from './game/RollerManager';
|
||||||
import { GameInfo, ICON_RATE, ROLLER_COMBINE_EVENT, SLOT_GAME_EVENT, WIN_TYPE } from './game/Define';
|
import { GameInfo, ICON_RATE, ROLLER_COMBINE_EVENT, SLOT_GAME_EVENT, WIN_TYPE } from './game/Define';
|
||||||
import { Icon, IconEventBus } from './game/Icon';
|
import { Icon, IconEventBus } from './game/Icon';
|
||||||
@ -55,12 +55,14 @@ export class SlotGame extends Component {
|
|||||||
private winTypeParticle: ParticleSystem = null;
|
private winTypeParticle: ParticleSystem = null;
|
||||||
|
|
||||||
private normalWin: Node = null;
|
private normalWin: Node = null;
|
||||||
|
private normalWinSpin: sp.Skeleton = null;
|
||||||
private normalWinLayout: Layout = null;
|
private normalWinLayout: Layout = null;
|
||||||
private normalWinSprite: Node = null;
|
private normalWinSprite: Node = null;
|
||||||
private normalTotalWinSprite: Node = null;
|
private normalTotalWinSprite: Node = null;
|
||||||
private normalWinLabel: Label = null;
|
private normalWinLabel: Label = null;
|
||||||
|
|
||||||
private totalWin: Node = null;
|
private totalWin: Node = null;
|
||||||
|
private totalWinSpin: sp.Skeleton = null;
|
||||||
private totalWinLayout: Layout = null;
|
private totalWinLayout: Layout = null;
|
||||||
private totalWinLabel: Label = null;
|
private totalWinLabel: Label = null;
|
||||||
|
|
||||||
@ -116,11 +118,13 @@ export class SlotGame extends Component {
|
|||||||
this.totalWin = frameNode.getChildByName('marqueeFrame_03');
|
this.totalWin = frameNode.getChildByName('marqueeFrame_03');
|
||||||
|
|
||||||
this.normalWinLayout = this.normalWin.getChildByName('layout').getComponent(Layout);
|
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.normalWinSprite = this.normalWinLayout.node.getChildByName('winSprite');
|
||||||
this.normalTotalWinSprite = this.normalWinLayout.node.getChildByName('totalWinSprite');
|
this.normalTotalWinSprite = this.normalWinLayout.node.getChildByName('totalWinSprite');
|
||||||
this.normalWinLabel = this.normalWinLayout.node.getChildByName('winScore').getComponent(Label);
|
this.normalWinLabel = this.normalWinLayout.node.getChildByName('winScore').getComponent(Label);
|
||||||
|
|
||||||
this.totalWinLayout = this.totalWin.getChildByName('layout').getComponent(Layout);
|
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.totalWinLabel = this.totalWinLayout.node.getChildByName('winScore').getComponent(Label);
|
||||||
|
|
||||||
this.baseBg = this.node.getChildByName('base_bg');
|
this.baseBg = this.node.getChildByName('base_bg');
|
||||||
@ -641,8 +645,15 @@ export class SlotGame extends Component {
|
|||||||
}
|
}
|
||||||
this.winTypeAni.node.getChildByName('AniNode').active = true;
|
this.winTypeAni.node.getChildByName('AniNode').active = true;
|
||||||
// 设置活动显示窗口
|
// 设置活动显示窗口
|
||||||
this.normalWin.active = !isBigWin;
|
if (isBigWin) {
|
||||||
this.totalWin.active = isBigWin;
|
this.totalWin.active = true;
|
||||||
|
this.totalWinSpin.setAnimation(0, "animation", false)
|
||||||
|
} else {
|
||||||
|
this.normalWin.active = true;
|
||||||
|
this.normalWinSpin.setAnimation(0, 'animation', false)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 更新对应标签和布局
|
// 更新对应标签和布局
|
||||||
if (isBigWin) {
|
if (isBigWin) {
|
||||||
|
|||||||
@ -3049,7 +3049,7 @@
|
|||||||
"__id__": 2
|
"__id__": 2
|
||||||
},
|
},
|
||||||
"_children": [],
|
"_children": [],
|
||||||
"_active": false,
|
"_active": true,
|
||||||
"_components": [
|
"_components": [
|
||||||
{
|
{
|
||||||
"__id__": 83
|
"__id__": 83
|
||||||
@ -3100,13 +3100,13 @@
|
|||||||
"__prefab": null,
|
"__prefab": null,
|
||||||
"_contentSize": {
|
"_contentSize": {
|
||||||
"__type__": "cc.Size",
|
"__type__": "cc.Size",
|
||||||
"width": 352,
|
"width": 1668,
|
||||||
"height": 365
|
"height": 443
|
||||||
},
|
},
|
||||||
"_anchorPoint": {
|
"_anchorPoint": {
|
||||||
"__type__": "cc.Vec2",
|
"__type__": "cc.Vec2",
|
||||||
"x": 0.49806820262562146,
|
"x": 0.4988009592326139,
|
||||||
"y": 0.4981370063677226
|
"y": 0.5169300225733634
|
||||||
},
|
},
|
||||||
"_id": "7f5YblwE5H84qJc33lO18N"
|
"_id": "7f5YblwE5H84qJc33lO18N"
|
||||||
},
|
},
|
||||||
@ -3131,11 +3131,11 @@
|
|||||||
"a": 255
|
"a": 255
|
||||||
},
|
},
|
||||||
"_skeletonData": {
|
"_skeletonData": {
|
||||||
"__uuid__": "1cad30f1-b3af-41c1-a993-80959764ce5d",
|
"__uuid__": "d6c7f57d-ffc9-4e1f-9033-70b0ea7a0bc5",
|
||||||
"__expectedType__": "sp.SkeletonData"
|
"__expectedType__": "sp.SkeletonData"
|
||||||
},
|
},
|
||||||
"defaultSkin": "default",
|
"defaultSkin": "default",
|
||||||
"defaultAnimation": "animation",
|
"defaultAnimation": "1",
|
||||||
"_premultipliedAlpha": false,
|
"_premultipliedAlpha": false,
|
||||||
"_timeScale": 1,
|
"_timeScale": 1,
|
||||||
"_preCacheMode": 0,
|
"_preCacheMode": 0,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user