Merge branch 'main' of https://git.sparkus.cn/yangzhao/cb
This commit is contained in:
commit
d161e193e4
File diff suppressed because it is too large
Load Diff
|
@ -1823,10 +1823,16 @@ export default class MapConroler extends cc.Component {
|
|||
if (!this.homeCanTouch) return;
|
||||
this.homeCanTouch = false;
|
||||
this.node.parent.parent.getChildByName("Lose").active = true;
|
||||
this.node.parent.parent.getChildByName("Lose").getChildByName("Time").active = false;
|
||||
this.node.parent.parent.getChildByName("Lose").getChildByName("Boom").active = false;
|
||||
this.node.parent.parent.getChildByName("Lose").getChildByName("Lock").active = false;
|
||||
this.node.parent.parent.getChildByName("Lose").getChildByName("Health").active = true;
|
||||
let pauseNode = this.node.parent.parent.getChildByName("Lose").getChildByName("lose");
|
||||
pauseNode.scale = 0.3;
|
||||
cc.tween(pauseNode)
|
||||
.to(0.2, { scale: 1.05 }, { easing: 'backOut' })
|
||||
.to(0.15, { scale: 1.0 }, { easing: 'sineOut' })
|
||||
.start();
|
||||
this.node.parent.parent.getChildByName("Lose").getChildByName("lose").getChildByName("Time").active = false;
|
||||
this.node.parent.parent.getChildByName("Lose").getChildByName("lose").getChildByName("Boom").active = false;
|
||||
this.node.parent.parent.getChildByName("Lose").getChildByName("lose").getChildByName("Lock").active = false;
|
||||
this.node.parent.parent.getChildByName("Lose").getChildByName("lose").getChildByName("Health").active = true;
|
||||
let overTime = Date.now();
|
||||
this.count_Time = overTime - this.count_Time;
|
||||
let data = {
|
||||
|
@ -1909,39 +1915,45 @@ export default class MapConroler extends cc.Component {
|
|||
setTimeout(() => {
|
||||
|
||||
this.node.parent.parent.getChildByName("Lose").active = true;
|
||||
this.node.parent.parent.getChildByName("Lose").getChildByName("Time").active = true;
|
||||
let pauseNode = this.node.parent.parent.getChildByName("Lose").getChildByName("lose");
|
||||
pauseNode.scale = 0.3;
|
||||
cc.tween(pauseNode)
|
||||
.to(0.2, { scale: 1.05 }, { easing: 'backOut' })
|
||||
.to(0.15, { scale: 1.0 }, { easing: 'sineOut' })
|
||||
.start();
|
||||
this.node.parent.parent.getChildByName("Lose").getChildByName("lose").getChildByName("Time").active = true;
|
||||
this.revive.getComponent(Revive).init();
|
||||
this.node.parent.parent.getChildByName("Lose").getChildByName("Boom").active = false;
|
||||
this.node.parent.parent.getChildByName("Lose").getChildByName("lose").getChildByName("Boom").active = false;
|
||||
if (cc.fx.GameConfig.GM_INFO.otherLevel > 0) {
|
||||
this.node.parent.parent.getChildByName("Lose").getChildByName("share").active = false;
|
||||
this.node.parent.parent.getChildByName("Lose").getChildByName("lose").getChildByName("share").active = false;
|
||||
}
|
||||
else this.node.parent.parent.getChildByName("Lose").getChildByName("share").active = true;
|
||||
else this.node.parent.parent.getChildByName("Lose").getChildByName("lose").getChildByName("share").active = true;
|
||||
if (type) {
|
||||
if (type == "time") {
|
||||
this.node.parent.parent.getChildByName("Lose").getChildByName("Time").active = true;
|
||||
this.node.parent.parent.getChildByName("Lose").getChildByName("Boom").active = false;
|
||||
this.node.parent.parent.getChildByName("Lose").getChildByName("Lock").active = false;
|
||||
let buyBtn = this.node.parent.parent.getChildByName("Lose").getChildByName("Time").getChildByName("buyBtn");
|
||||
this.node.parent.parent.getChildByName("Lose").getChildByName("lose").getChildByName("Time").active = true;
|
||||
this.node.parent.parent.getChildByName("Lose").getChildByName("lose").getChildByName("Boom").active = false;
|
||||
this.node.parent.parent.getChildByName("Lose").getChildByName("lose").getChildByName("Lock").active = false;
|
||||
let buyBtn = this.node.parent.parent.getChildByName("Lose").getChildByName("lose").getChildByName("Time").getChildByName("buyBtn");
|
||||
buyBtn.getChildByName("coin1").active = buyBtn.getChildByName("coin2").active = buyBtn.getChildByName("coin3").active = false;
|
||||
if (cc.fx.GameConfig.GM_INFO.review == 0) buyBtn.getChildByName("coin1").active = true;
|
||||
else if (cc.fx.GameConfig.GM_INFO.review == 1) buyBtn.getChildByName("coin2").active = true;
|
||||
else if (cc.fx.GameConfig.GM_INFO.review == 2) buyBtn.getChildByName("coin3").active = true;
|
||||
}
|
||||
else if (type == "boom") {
|
||||
this.node.parent.parent.getChildByName("Lose").getChildByName("Time").active = false;
|
||||
this.node.parent.parent.getChildByName("Lose").getChildByName("Boom").active = true;
|
||||
this.node.parent.parent.getChildByName("Lose").getChildByName("Lock").active = false;
|
||||
let buyBtn = this.node.parent.parent.getChildByName("Lose").getChildByName("Boom").getChildByName("buyBtn");
|
||||
this.node.parent.parent.getChildByName("Lose").getChildByName("lose").getChildByName("Time").active = false;
|
||||
this.node.parent.parent.getChildByName("Lose").getChildByName("lose").getChildByName("Boom").active = true;
|
||||
this.node.parent.parent.getChildByName("Lose").getChildByName("lose").getChildByName("Lock").active = false;
|
||||
let buyBtn = this.node.parent.parent.getChildByName("Lose").getChildByName("lose").getChildByName("Boom").getChildByName("buyBtn");
|
||||
buyBtn.getChildByName("coin1").active = buyBtn.getChildByName("coin2").active = buyBtn.getChildByName("coin3").active = false;
|
||||
if (cc.fx.GameConfig.GM_INFO.reviewBoom == 0) buyBtn.getChildByName("coin1").active = true;
|
||||
else if (cc.fx.GameConfig.GM_INFO.reviewBoom == 1) buyBtn.getChildByName("coin2").active = true;
|
||||
else if (cc.fx.GameConfig.GM_INFO.reviewBoom == 2) buyBtn.getChildByName("coin3").active = true;
|
||||
}
|
||||
else if (type == "lock") {
|
||||
this.node.parent.parent.getChildByName("Lose").getChildByName("Time").active = false;
|
||||
this.node.parent.parent.getChildByName("Lose").getChildByName("Boom").active = false;
|
||||
this.node.parent.parent.getChildByName("Lose").getChildByName("Lock").active = true;
|
||||
let buyBtn = this.node.parent.parent.getChildByName("Lose").getChildByName("Lock").getChildByName("buyBtn");
|
||||
this.node.parent.parent.getChildByName("Lose").getChildByName("lose").getChildByName("Time").active = false;
|
||||
this.node.parent.parent.getChildByName("Lose").getChildByName("lose").getChildByName("Boom").active = false;
|
||||
this.node.parent.parent.getChildByName("Lose").getChildByName("lose").getChildByName("Lock").active = true;
|
||||
let buyBtn = this.node.parent.parent.getChildByName("Lose").getChildByName("lose").getChildByName("Lock").getChildByName("buyBtn");
|
||||
buyBtn.getChildByName("coin1").active = buyBtn.getChildByName("coin2").active = buyBtn.getChildByName("coin3").active = false;
|
||||
if (cc.fx.GameConfig.GM_INFO.reviewDoor == 0) buyBtn.getChildByName("coin1").active = true;
|
||||
else if (cc.fx.GameConfig.GM_INFO.reviewDoor == 1) buyBtn.getChildByName("coin2").active = true;
|
||||
|
@ -1955,6 +1967,8 @@ export default class MapConroler extends cc.Component {
|
|||
|
||||
//打开新模式弹窗
|
||||
openNewMode(type) {
|
||||
|
||||
|
||||
let index = 0;
|
||||
const BLOCKS_PER_FRAME = 5; // 每帧销毁的方块数量
|
||||
const destroyBlocks = () => {
|
||||
|
@ -1973,7 +1987,13 @@ export default class MapConroler extends cc.Component {
|
|||
// 开始分帧销毁方块
|
||||
destroyBlocks();
|
||||
this.node.parent.parent.getChildByName("NewMode").active = true;
|
||||
this.node.parent.parent.getChildByName("NewMode").getComponent("NewMode").setMode(type);
|
||||
let pauseNode = this.node.parent.parent.getChildByName("NewMode").getChildByName("newmode");
|
||||
pauseNode.scale = 0.3;
|
||||
cc.tween(pauseNode)
|
||||
.to(0.2, { scale: 1.05 }, { easing: 'backOut' })
|
||||
.to(0.15, { scale: 1.0 }, { easing: 'sineOut' })
|
||||
.start();
|
||||
this.node.parent.parent.getChildByName("NewMode").getChildByName("newmode").getComponent("NewMode").setMode(type);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -154,6 +154,12 @@ export default class setUi extends cc.Component {
|
|||
cc.fx.AudioManager._instance.playEffect("anniu_little", null);
|
||||
if (MapConroler._instance.gameStart == true && MapConroler._instance.powerState == false && customEventData != "hp") {
|
||||
this.exit.active = true;
|
||||
let pauseNode = this.exit;
|
||||
pauseNode.scale = 0.3;
|
||||
cc.tween(pauseNode)
|
||||
.to(0.2, { scale: 1.05 }, { easing: 'backOut' })
|
||||
.to(0.15, { scale: 1.0 }, { easing: 'sineOut' })
|
||||
.start();
|
||||
this.exit.getChildByName("Health").getChildByName("queding").active = true;
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user