RichHelpPanel.ts 584 B

12345678910111213141516171819202122232425262728
  1. import BasePanel from "../uiFrames/BasePanel";
  2. const { ccclass, property } = cc._decorator;
  3. @ccclass
  4. export default class RichHelpPanel extends BasePanel {
  5. @property(cc.Node)
  6. panelNode: cc.Node = null;
  7. OnEnter() {
  8. this.panelNode.scale = 0;
  9. this.node.active = true;
  10. cc.tween(this.panelNode).to(0.2, { scale: 1 }, { easing: "backOut" })
  11. .call(() => {
  12. })
  13. .start();
  14. }
  15. OnExit() {
  16. this.node.active = false;
  17. }
  18. Click_CloseBtn() {
  19. this.OnExit();
  20. }
  21. }