增加登录后的状态条及登出按钮

This commit is contained in:
zhl 2019-02-26 13:18:55 +08:00
parent c6955eb1b8
commit d7246ec672
2 changed files with 845 additions and 463 deletions

File diff suppressed because it is too large Load Diff

View File

@ -53,12 +53,21 @@ cc.Class({
ruleBtn: { ruleBtn: {
default: null, default: null,
type: cc.Node type: cc.Node
},
loginStatusLabel: {
default: null,
type: cc.Label
},
logoutBtn: {
default: null,
type: cc.Node
} }
}, },
// LIFE-CYCLE CALLBACKS: // LIFE-CYCLE CALLBACKS:
onLoad () { onLoad () {
this.loginStatusLabel.node.active = false;
var processBar = cc.instantiate(this.processBarPrefab); var processBar = cc.instantiate(this.processBarPrefab);
processBar.getComponent('progressBar').currentVal = 1024; processBar.getComponent('progressBar').currentVal = 1024;
this.part1.addChild(processBar); this.part1.addChild(processBar);