PopOutPanelViewMediator.ts 910 B

123456789101112131415161718192021222324252627282930313233343536
  1. import BaseMediator from "../../../lightMVC/core/base/BaseMediator";
  2. import PopAView from "./PopOutPanelView";
  3. import Notification from "../../Notification";
  4. export default class PopOutPanelViewMediator extends BaseMediator {
  5. public view: PopAView;
  6. public init(data?: any): void {
  7. console.log(data+"跳转。。。");
  8. this.view.drawView();
  9. //let playerModel = this.getModel(PlayerModel);
  10. // this.view.setLevelDisplay(playerModel.getPlayerLv());
  11. // // 监听修改经验事件
  12. // this.bindEvent(PopAView.UPDATE_LEVEL, (exp)=>{
  13. // this.sendCmd(UpdateExpCommand, exp);
  14. // }, this);
  15. // this.registerNoti(Notification.UPDATE_EXP_FINISH, ()=>{
  16. // this.view.setLevelDisplay(playerModel.getPlayerLv());
  17. // }, this);
  18. }
  19. public viewDidAppear(): void {
  20. }
  21. public destroy(): void {
  22. }
  23. }