auto和turbo动画修改
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 44s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 44s
This commit is contained in:
parent
88d328561e
commit
60a700a544
@ -117,13 +117,15 @@ export class SlotBar extends Component {
|
||||
if (node) this.btnPositions.set(name, node.position.clone());
|
||||
});
|
||||
|
||||
let auto_mouse_enter = this.autoBtn.getChildByName('AutoSpinGear')
|
||||
let turbo_mouse_enter = this.turboBtn.getChildByName('TurboEffect')
|
||||
auto_mouse_enter.on(Node.EventType.MOUSE_ENTER, () => {
|
||||
this.autoBtnAni.play('autoSpin_Pressed_animation');
|
||||
this.autoBtn.getChildByName('AutoSpinGear').on(Node.EventType.MOUSE_ENTER, () => {
|
||||
if (!this.isAuto) {
|
||||
this.autoBtnAni.play('autoSpin_Hover_animation');
|
||||
}
|
||||
}, this)
|
||||
turbo_mouse_enter.on(Node.EventType.MOUSE_ENTER, () => {
|
||||
this.turboBtnAni.play('turbo_Pressed_animation');
|
||||
this.turboBtn.getChildByName('TurboEffect').on(Node.EventType.MOUSE_ENTER, () => {
|
||||
if (!this.isFastSpin) {
|
||||
this.turboBtnAni.play('turbo_Hover_animation');
|
||||
}
|
||||
}, this)
|
||||
}
|
||||
|
||||
@ -131,10 +133,8 @@ export class SlotBar extends Component {
|
||||
protected onDestroy(): void {
|
||||
this.node.targetOff(this);
|
||||
|
||||
let auto_mouse_enter = this.autoBtn.getChildByName('AutoSpinGear')
|
||||
auto_mouse_enter.targetOff(this)
|
||||
let turbo_mouse_enter = this.turboBtn.getChildByName('AutoSpinGear')
|
||||
turbo_mouse_enter.targetOff(this)
|
||||
this.autoBtn.getChildByName('AutoSpinGear').targetOff(this)
|
||||
this.turboBtn.getChildByName('TurboEffect').targetOff(this)
|
||||
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user