WXS04Mediator.ts 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. import { GUIManager } from "../../../engines/gui/GUIManager";
  2. import GUIMediator from "../../../engines/gui/GUIMediator";
  3. import { PlatformManager } from "../../../platforms/PlatformManager";
  4. import UI_WX_S_04 from "../../../ui/WXSExport/UI_WX_S_04";
  5. import UIKeys from "../../UIKeys";
  6. import ExportList from "./ExportList";
  7. export default class WXS04Mediator extends GUIMediator
  8. {
  9. private list:ExportList;
  10. constructor(){
  11. super();
  12. }
  13. protected OnShow():void{
  14. PlatformManager.hideBanner();
  15. if(this.list==null){
  16. this.list=new ExportList(this.view.m_listIcon,1);
  17. }
  18. this.list.Refresh();
  19. }
  20. protected OnHide():void{
  21. }
  22. Tick(dt:number):void{
  23. this.list.Tick(dt);
  24. }
  25. protected AddEvents():void{
  26. this.view.m_btnVideo.onClick(this.VideoButtonClick,this);
  27. this.view.m_btnContine.onClick(this.ContineButtonClick,this);
  28. }
  29. protected RemoveEvents():void{
  30. this.view.m_btnVideo.offClick(this.VideoButtonClick,this);
  31. this.view.m_btnContine.offClick(this.ContineButtonClick,this);
  32. }
  33. private VideoButtonClick():void{
  34. this.GotoWXS02();
  35. }
  36. private ContineButtonClick():void{
  37. this.GotoWXS02();
  38. }
  39. private GotoWXS02():void{
  40. GUIManager.single.Show(UIKeys.WXS02,this.data);
  41. this.HideSelf();
  42. }
  43. private get view():UI_WX_S_04{
  44. return this._view as UI_WX_S_04;
  45. }
  46. }