点击屏幕快速停止
This commit is contained in:
parent
1dfe419d9f
commit
6c9f4d7cb2
@ -500,7 +500,7 @@
|
||||
"__expectedType__": "sp.SkeletonData"
|
||||
},
|
||||
"defaultSkin": "default",
|
||||
"defaultAnimation": "1_1",
|
||||
"defaultAnimation": "<None>",
|
||||
"_premultipliedAlpha": false,
|
||||
"_timeScale": 1,
|
||||
"_preCacheMode": 0,
|
||||
|
||||
@ -500,7 +500,7 @@
|
||||
"__expectedType__": "sp.SkeletonData"
|
||||
},
|
||||
"defaultSkin": "default",
|
||||
"defaultAnimation": "1_1",
|
||||
"defaultAnimation": "<None>",
|
||||
"_premultipliedAlpha": false,
|
||||
"_timeScale": 1,
|
||||
"_preCacheMode": 0,
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -61,6 +61,9 @@ export class SlotBar extends Component {
|
||||
@property(Prefab)
|
||||
pfb_rules: Prefab = null;
|
||||
|
||||
@property(Node)
|
||||
private manualStopNode: Node = null;
|
||||
|
||||
private MaskNode: Node = null;
|
||||
private balanceLabel: Label = null;
|
||||
private betLabel: Label = null;
|
||||
@ -265,6 +268,7 @@ export class SlotBar extends Component {
|
||||
if (!this.hasClickSpin && !this.hasClickManualStop) {
|
||||
AudioManager.instance.playSFX("Spin_Button_Click");
|
||||
this.hasClickSpin = true;
|
||||
this.manualStopNode.active = true
|
||||
this.node.emit(SLOT_BAR_EVENT.ON_SPIN_CLICK);
|
||||
this.spinAni.startSpin();
|
||||
|
||||
@ -284,6 +288,7 @@ export class SlotBar extends Component {
|
||||
if (!this.hasClickSpin && !this.hasClickManualStop) {
|
||||
// AudioManager.instance.playSFX('Spin_Button_Click');
|
||||
this.hasClickSpin = true;
|
||||
this.manualStopNode.active = true
|
||||
|
||||
this.setBtnEnable(this.subBtn, false);
|
||||
this.setBtnEnable(this.addBtn, false);
|
||||
@ -313,6 +318,12 @@ export class SlotBar extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
onBtnManualStop() {
|
||||
if (this.hasClickSpin && !this.hasClickManualStop) {
|
||||
this.node.emit(SLOT_BAR_EVENT.ON_MANUAL_STOP);
|
||||
}
|
||||
}
|
||||
|
||||
manualStop() {
|
||||
this.hasClickManualStop = true;
|
||||
this.spinAni.stopSpin();
|
||||
@ -595,6 +606,7 @@ export class SlotBar extends Component {
|
||||
resetAllState() {
|
||||
this.hasClickSpin = false;
|
||||
this.hasClickManualStop = false;
|
||||
this.manualStopNode.active = false
|
||||
this.isAuto = false;
|
||||
this.setBtnVisible(this.spinBtn, true);
|
||||
this.spinAni.stopSpin();
|
||||
|
||||
@ -7,7 +7,7 @@ import { PREVIEW } from "cc/env"
|
||||
const gameId = "rp_11001";
|
||||
// let apiaddr = "https://rpgames-api.rpfafafahkdev.com";
|
||||
let apiaddr = "";
|
||||
let token = "eyJQIjoxMDAwMDEsIkUiOjE3NjY0OTc0NjAsIlMiOjk5NiwiRCI6InJwXzExMDAxIn0.1J21YwU3oPhRzpJoTm5GyBbUAxAOEiV56XaFhxOGcJ8";
|
||||
let token = "eyJQIjoxMDAwMDEsIkUiOjE3NjY1ODUzNzAsIlMiOjEwMDAsIkQiOiJycF8xMTAwMSJ9.CNO2Io1S3L_T2tNKUGEkVnUgsQDjeMiWR4Gi3hMtZ34";
|
||||
|
||||
|
||||
let language = "en"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user