修改排行榜显示
This commit is contained in:
parent
f1be959ea9
commit
b6fa95e3a2
|
|
@ -32,16 +32,14 @@ export default class ItemRender extends cc.Component {
|
|||
NumberToImage.numberToImageNodes3((this.data.rank), 43, 15, "rank_", this.node.getChildByName("rankLab"), true);
|
||||
NumberToImage.numberToImageNodes3(this.data.levelAmount, 43, 15, "level_", this.node.getChildByName("totalLab"), true);
|
||||
|
||||
console.log("查看排行", this.data.endLebelNum);
|
||||
if (this.data.endLebelNum && Number(this.data.endLebelNum) > 1) {
|
||||
// console.log("查看排行", this.data.endLevelNum);
|
||||
if (this.data.endLevelNum && Number(this.data.endLevelNum) > 1) {
|
||||
let endlessNode = this.node.getChildByName("endlessNode");
|
||||
endlessNode.active = true;
|
||||
NumberToImage.numberToImageNodes5(this.data.endLebelNum - 1, 30, 15, "Black", endlessNode.getChildByName("levelNum"), true);
|
||||
// NumberToImage.numberToImageNodes5(this.data.rank, 30, 15, "Black", endlessNode.getChildByName("levelNum"), true);
|
||||
NumberToImage.numberToImageNodes5(this.data.endLevelNum - 1, 30, 15, "Black", endlessNode.getChildByName("levelNum"), true);
|
||||
} else {
|
||||
this.node.getChildByName("endlessNode").active = false;
|
||||
}
|
||||
|
||||
// this.node.getChildByName("timeLab").getComponent(cc.Label).string = timeTemp + "";
|
||||
this.node.getChildByName("rank").getChildByName("one").active = false;
|
||||
this.node.getChildByName("rank").getChildByName("two").active = false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user