更新一点UI
This commit is contained in:
parent
7914072584
commit
ca6ab546f6
|
|
@ -1644,8 +1644,8 @@
|
||||||
},
|
},
|
||||||
"_contentSize": {
|
"_contentSize": {
|
||||||
"__type__": "cc.Size",
|
"__type__": "cc.Size",
|
||||||
"width": 19,
|
"width": 11,
|
||||||
"height": 39
|
"height": 31
|
||||||
},
|
},
|
||||||
"_anchorPoint": {
|
"_anchorPoint": {
|
||||||
"__type__": "cc.Vec2",
|
"__type__": "cc.Vec2",
|
||||||
|
|
@ -1764,7 +1764,7 @@
|
||||||
"ctor": "Float64Array",
|
"ctor": "Float64Array",
|
||||||
"array": [
|
"array": [
|
||||||
-337.767,
|
-337.767,
|
||||||
-60.296,
|
-67.741,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
|
|
@ -6468,7 +6468,7 @@
|
||||||
"__id__": 129
|
"__id__": 129
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_active": false,
|
"_active": true,
|
||||||
"_components": [
|
"_components": [
|
||||||
{
|
{
|
||||||
"__id__": 131
|
"__id__": 131
|
||||||
|
|
@ -6547,8 +6547,8 @@
|
||||||
},
|
},
|
||||||
"_contentSize": {
|
"_contentSize": {
|
||||||
"__type__": "cc.Size",
|
"__type__": "cc.Size",
|
||||||
"width": 36,
|
"width": 24,
|
||||||
"height": 38
|
"height": 36
|
||||||
},
|
},
|
||||||
"_anchorPoint": {
|
"_anchorPoint": {
|
||||||
"__type__": "cc.Vec2",
|
"__type__": "cc.Vec2",
|
||||||
|
|
@ -6643,7 +6643,7 @@
|
||||||
},
|
},
|
||||||
"_contentSize": {
|
"_contentSize": {
|
||||||
"__type__": "cc.Size",
|
"__type__": "cc.Size",
|
||||||
"width": 36,
|
"width": 32,
|
||||||
"height": 38
|
"height": 38
|
||||||
},
|
},
|
||||||
"_anchorPoint": {
|
"_anchorPoint": {
|
||||||
|
|
@ -9084,7 +9084,7 @@
|
||||||
"ctor": "Float64Array",
|
"ctor": "Float64Array",
|
||||||
"array": [
|
"array": [
|
||||||
345.952,
|
345.952,
|
||||||
84.684,
|
108.238,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
|
|
|
||||||
|
|
@ -475,7 +475,7 @@ export default class MapConroler extends cc.Component {
|
||||||
console.log("当前关卡时间", this.timeNumber);
|
console.log("当前关卡时间", this.timeNumber);
|
||||||
|
|
||||||
this.add_Time = 0;
|
this.add_Time = 0;
|
||||||
NumberToImage.getTimeMargi3(this.timeNumber, 45, "company_", this.timeLabel)
|
NumberToImage.getTimeMargi3(this.timeNumber, 45, "custom", this.timeLabel)
|
||||||
|
|
||||||
this.updateCoin();
|
this.updateCoin();
|
||||||
// var timeTemp = cc.fx.GameTool.getTimeMargin(this.timeNumber);
|
// var timeTemp = cc.fx.GameTool.getTimeMargin(this.timeNumber);
|
||||||
|
|
@ -2559,7 +2559,7 @@ export default class MapConroler extends cc.Component {
|
||||||
if (data.type == "time") {
|
if (data.type == "time") {
|
||||||
this.timeNumber = 21;
|
this.timeNumber = 21;
|
||||||
this.add_Time += 20;
|
this.add_Time += 20;
|
||||||
NumberToImage.getTimeMargi3(20, 45, "company_", this.timeLabel)
|
NumberToImage.getTimeMargi3(20, 45, "custom", this.timeLabel)
|
||||||
}
|
}
|
||||||
|
|
||||||
this.blockNum = this.blocks.length;
|
this.blockNum = this.blocks.length;
|
||||||
|
|
@ -2582,7 +2582,7 @@ export default class MapConroler extends cc.Component {
|
||||||
this.pause = false;
|
this.pause = false;
|
||||||
this.timeNumber = 21;
|
this.timeNumber = 21;
|
||||||
this.add_Time += 20;
|
this.add_Time += 20;
|
||||||
NumberToImage.getTimeMargi3(20, 45, "company_", this.timeLabel)
|
NumberToImage.getTimeMargi3(20, 45, "custom", this.timeLabel)
|
||||||
this.blockNum = this.blocks.length;
|
this.blockNum = this.blocks.length;
|
||||||
if (this.blockNum == 0) this.nextLevel(1);
|
if (this.blockNum == 0) this.nextLevel(1);
|
||||||
this.node.parent.parent.getChildByName("Lose").active = false;
|
this.node.parent.parent.getChildByName("Lose").active = false;
|
||||||
|
|
@ -2918,7 +2918,7 @@ export default class MapConroler extends cc.Component {
|
||||||
if (this.timeNumber <= 0) {
|
if (this.timeNumber <= 0) {
|
||||||
this.stopTimeCutDown();
|
this.stopTimeCutDown();
|
||||||
// var timeTemp = cc.fx.GameTool.getTimeMargin3(this.timeNumber);
|
// var timeTemp = cc.fx.GameTool.getTimeMargin3(this.timeNumber);
|
||||||
NumberToImage.getTimeMargi3(this.timeNumber, 45, "company_", this.timeLabel)
|
NumberToImage.getTimeMargi3(this.timeNumber, 45, "custom", this.timeLabel)
|
||||||
// this.timeLabel.string = timeTemp.toString();
|
// this.timeLabel.string = timeTemp.toString();
|
||||||
if (!this.pause) this.failLevel("time");
|
if (!this.pause) this.failLevel("time");
|
||||||
}
|
}
|
||||||
|
|
@ -2929,7 +2929,7 @@ export default class MapConroler extends cc.Component {
|
||||||
if (!this.pause) this.failLevel("time");
|
if (!this.pause) this.failLevel("time");
|
||||||
}
|
}
|
||||||
// var timeTemp = cc.fx.GameTool.getTimeMargin3(this.timeNumber);
|
// var timeTemp = cc.fx.GameTool.getTimeMargin3(this.timeNumber);
|
||||||
NumberToImage.getTimeMargi3(this.timeNumber, 45, "company_", this.timeLabel)
|
NumberToImage.getTimeMargi3(this.timeNumber, 45, "custom", this.timeLabel)
|
||||||
// this.timeLabel.string = timeTemp.toString();
|
// this.timeLabel.string = timeTemp.toString();
|
||||||
}
|
}
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
|
|
@ -3028,7 +3028,7 @@ export default class MapConroler extends cc.Component {
|
||||||
cc.fx.GameConfig.GM_INFO.freezeAmount -= 1;
|
cc.fx.GameConfig.GM_INFO.freezeAmount -= 1;
|
||||||
// 倒计时加20秒
|
// 倒计时加20秒
|
||||||
this.timeNumber += 20;
|
this.timeNumber += 20;
|
||||||
NumberToImage.getTimeMargi3(this.timeNumber, 45, "company_", this.timeLabel)
|
NumberToImage.getTimeMargi3(this.timeNumber, 45, "custom", this.timeLabel)
|
||||||
if (cc.fx.GameConfig.GM_INFO.freezeAmount < 0)
|
if (cc.fx.GameConfig.GM_INFO.freezeAmount < 0)
|
||||||
cc.fx.GameConfig.GM_INFO.freezeAmount = 0;
|
cc.fx.GameConfig.GM_INFO.freezeAmount = 0;
|
||||||
this.setPropNum();
|
this.setPropNum();
|
||||||
|
|
@ -4330,7 +4330,7 @@ export default class MapConroler extends cc.Component {
|
||||||
rank.active = true;
|
rank.active = true;
|
||||||
Career.active = false;
|
Career.active = false;
|
||||||
|
|
||||||
NumberToImage.numberToImageNodes4((cc.fx.GameConfig.GM_INFO.addLevel + 1), 40, 15, "company_", rank.getChildByName("addLevel"), true);
|
NumberToImage.numberToImageNodes4((cc.fx.GameConfig.GM_INFO.addLevel + 1), 40, 15, "custom", rank.getChildByName("addLevel"), true);
|
||||||
for (let i = 0; i < rank.getChildByName("addLevel").children.length; i++) {
|
for (let i = 0; i < rank.getChildByName("addLevel").children.length; i++) {
|
||||||
rank.getChildByName("addLevel").children[i].color = cc.Color.WHITE;
|
rank.getChildByName("addLevel").children[i].color = cc.Color.WHITE;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.2 KiB |
|
|
@ -20,14 +20,14 @@
|
||||||
"trimType": "auto",
|
"trimType": "auto",
|
||||||
"trimThreshold": 1,
|
"trimThreshold": 1,
|
||||||
"rotated": false,
|
"rotated": false,
|
||||||
"offsetX": 0,
|
"offsetX": -0.5,
|
||||||
"offsetY": 0.5,
|
"offsetY": 0,
|
||||||
"trimX": 11,
|
"trimX": 11,
|
||||||
"trimY": 7,
|
"trimY": 8,
|
||||||
"width": 19,
|
"width": 11,
|
||||||
"height": 39,
|
"height": 31,
|
||||||
"rawWidth": 41,
|
"rawWidth": 34,
|
||||||
"rawHeight": 54,
|
"rawHeight": 47,
|
||||||
"borderTop": 0,
|
"borderTop": 0,
|
||||||
"borderBottom": 0,
|
"borderBottom": 0,
|
||||||
"borderLeft": 0,
|
"borderLeft": 0,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user