UIGuanYu.ts 649 B

123456789101112131415161718192021222324
  1. import UIBase from "../fgui/core/UIBase";
  2. import ui_UIGuanYu from "../fgui/res/game/ui_UIGuanYu";
  3. export default class UIGuanYu extends UIBase {
  4. protected ui: ui_UIGuanYu;
  5. public constructor() {
  6. super();
  7. }
  8. protected onConstructor(): void {
  9. this.ui = ui_UIGuanYu.createInstance();
  10. this.contentPane = this.ui;
  11. this.isEject = false;
  12. //
  13. }
  14. public show(callback): void {
  15. super.show();
  16. this.ui.t0.play(Laya.Handler.create(this, () => {
  17. //
  18. callback && callback();
  19. this.hide();
  20. //
  21. }))
  22. }
  23. }
  24. UIGuanYu.uiName = "UIGuanYu";