| 12345678910111213141516171819202122232425262728 |
- import BasePanel from "../uiFrames/BasePanel";
- const { ccclass, property } = cc._decorator;
- @ccclass
- export default class RichHelpPanel 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();
- }
- }
|