|
@@ -17,6 +17,8 @@ export default class MainHome extends cc.Component {
|
|
|
|
|
|
private storeBtn: cc.Node = null;
|
|
|
|
|
|
+ private hisBtn:cc.Node = null;
|
|
|
+
|
|
|
start() {}
|
|
|
protected onLoad(): void {}
|
|
|
|
|
@@ -52,6 +54,7 @@ export default class MainHome extends cc.Component {
|
|
|
this.headNode = CCUtils.findChild(this.node, 'headLayer');
|
|
|
this.bottomNode = CCUtils.findChild(this.node, 'bottomLayer');
|
|
|
this.storeBtn = CCUtils.findChild(this.bottomNode, 'storeBtn');
|
|
|
+ this.hisBtn = CCUtils.findChild(this.bottomNode, 'rankBtn');
|
|
|
var seq = cc.repeatForever(
|
|
|
cc.sequence(
|
|
|
cc.scaleTo(1, 0.9),
|
|
@@ -60,9 +63,13 @@ export default class MainHome extends cc.Component {
|
|
|
)
|
|
|
);
|
|
|
this.storeBtn.runAction(seq);
|
|
|
+ this.hisBtn.on('click',this.openHistUI,this)
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ private openHistUI():void{
|
|
|
+ console.log("=====openHistUI====")
|
|
|
+ PrefabManager.open(UIID.UIRankPrefab, this.node);
|
|
|
+ }
|
|
|
|
|
|
private setZindex(): void {
|
|
|
this.headNode.zIndex = 1;
|