| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- // Learn TypeScript:
- // - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
- // Learn Attribute:
- // - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
- // Learn life-cycle callbacks:
- // - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
- import BasePanel from "../uiFrames/BasePanel";
- import UIMng, { PanelType } from "../uiFrames/UIMng";
- const { ccclass, property } = cc._decorator;
- @ccclass
- export default class FightUpPanel extends BasePanel {
- @property(cc.Node)
- panelNode: cc.Node = null;
- OnEnter() {
-
- this.panelNode.scale = 0;
- this.node.active = true;
- cc.tween(this.panelNode).to(0.2, { scale: 1 }, { easing: "backOut" })
- .call(() => {
- })
- .start();
- }
- OnExit() {
- this.node.active=false;
- }
- Click_CloseBtn(){
- this.OnExit();
- }
- Click_LvUpTalentBtn(){
- this.OnExit();
- UIMng.Ins.AsyncGetPanel(PanelType.MatePanel, (panel) => {
- panel.OnEnter({mateid:2});
- });
- //UIMng.Ins.GetPanel(PanelType.MatePanel).OnEnter({mateid:2});
- }
- }
|