增加登录后的状态条及登出按钮
This commit is contained in:
parent
c6955eb1b8
commit
d7246ec672
File diff suppressed because it is too large
Load Diff
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user