更新
This commit is contained in:
parent
b57f7af6ff
commit
92a83538f2
|
|
@ -464,7 +464,14 @@ export default class JiaZai extends cc.Component {
|
||||||
|
|
||||||
cc.fx.GameTool.getHealth((data) => {
|
cc.fx.GameTool.getHealth((data) => {
|
||||||
if (this.level) {
|
if (this.level) {
|
||||||
NumberToImage.numberToImageNodesShop((cc.fx.GameConfig.GM_INFO.level + 1), 43, 15, "custom", this.level, true);
|
let kuandu = 43;
|
||||||
|
if ((cc.fx.GameConfig.GM_INFO.level + 1) > 999) {
|
||||||
|
kuandu = 35;
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log("寬度", kuandu);
|
||||||
|
NumberToImage.numberToImageNodesShop((cc.fx.GameConfig.GM_INFO.level + 1), kuandu, 15, "custom", this.level, true);
|
||||||
|
|
||||||
if (this.level.children) {
|
if (this.level.children) {
|
||||||
for (let i = 0; i < this.level.children.length; i++) {
|
for (let i = 0; i < this.level.children.length; i++) {
|
||||||
this.level.children[i].color = cc.Color.BLACK;
|
this.level.children[i].color = cc.Color.BLACK;
|
||||||
|
|
@ -502,7 +509,13 @@ export default class JiaZai extends cc.Component {
|
||||||
|
|
||||||
|
|
||||||
cc.fx.GameTool.getHealth((data) => {
|
cc.fx.GameTool.getHealth((data) => {
|
||||||
NumberToImage.numberToImageNodesShop((cc.fx.GameConfig.GM_INFO.level + 1), 43, 15, "custom", this.level, true);
|
let kuandu = 43;
|
||||||
|
if ((cc.fx.GameConfig.GM_INFO.level + 1) > 999) {
|
||||||
|
kuandu = 35;
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log("寬度", kuandu);
|
||||||
|
NumberToImage.numberToImageNodesShop((cc.fx.GameConfig.GM_INFO.level + 1), kuandu, 15, "custom", this.level, true);
|
||||||
if (this.level.children) {
|
if (this.level.children) {
|
||||||
for (let i = 0; i < this.level.children.length; i++) {
|
for (let i = 0; i < this.level.children.length; i++) {
|
||||||
this.level.children[i].color = cc.Color.BLACK;
|
this.level.children[i].color = cc.Color.BLACK;
|
||||||
|
|
@ -2184,7 +2197,14 @@ export default class JiaZai extends cc.Component {
|
||||||
timestamp: timestamp, // 时间戳
|
timestamp: timestamp, // 时间戳
|
||||||
};
|
};
|
||||||
cc.fx.StorageMessage.setStorage("level", levelInfo);
|
cc.fx.StorageMessage.setStorage("level", levelInfo);
|
||||||
NumberToImage.numberToImageNodesShop((cc.fx.GameConfig.GM_INFO.level + 1), 43, 15, "custom", this.level, true);
|
let kuandu = 43;
|
||||||
|
if ((cc.fx.GameConfig.GM_INFO.level + 1) > 999) {
|
||||||
|
kuandu = 35;
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log("寬度", kuandu);
|
||||||
|
NumberToImage.numberToImageNodesShop((cc.fx.GameConfig.GM_INFO.level + 1), kuandu, 15, "custom", this.level, true);
|
||||||
|
|
||||||
if (this.level.children) {
|
if (this.level.children) {
|
||||||
for (let i = 0; i < this.level.children.length; i++) {
|
for (let i = 0; i < this.level.children.length; i++) {
|
||||||
this.level.children[i].color = cc.Color.BLACK;
|
this.level.children[i].color = cc.Color.BLACK;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user