You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
658 B

  1. -- 托管界面
  2. local ZPRoomTuoGuanView = class("ZPRoomTuoGuanView", cc.UIView)
  3. function ZPRoomTuoGuanView:ctor()
  4. ZPRoomTuoGuanView.super.ctor(self);
  5. end
  6. function ZPRoomTuoGuanView:loadUI()
  7. local ui = loadUI("zp_base/res/ui/ui_fangjian/ui_tuoguan.ui");
  8. self.ui = ui;
  9. self:addChild(ui)
  10. end
  11. function ZPRoomTuoGuanView:onEnter()
  12. ZPRoomTuoGuanView.super.onEnter(self)
  13. self:loadUI()
  14. self.ui.Items.Button_CanCelTuoGuan:registerClick(handler(self , self.onCanCelTuoGuan))
  15. end
  16. function ZPRoomTuoGuanView:onCanCelTuoGuan()
  17. playBtnEffect()
  18. --1-请求托管 2-请求取消托管
  19. app.room:requestTuoGuan(0)
  20. end
  21. return ZPRoomTuoGuanView;