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.

28 lines
540 B

  1. local RechargeXianzhiTip = class("RechargeXianzhiTip" , cc.UIView);
  2. function RechargeXianzhiTip:ctor(callback)
  3. RechargeXianzhiTip.super.ctor(self);
  4. self.callback = callback
  5. end
  6. function RechargeXianzhiTip:onEnter()
  7. RechargeXianzhiTip.super.onEnter(self)
  8. local ui = loadUI("res/ui/ui_dating/ui_chongzhi_xianzhi_tip.ui")
  9. self.ui = ui;
  10. self:addChild(ui);
  11. self.ui.Items.Button_close:registerClick(handler(self , self.onClose))
  12. end
  13. function RechargeXianzhiTip:onClose()
  14. self:removeFromParent()
  15. end
  16. return RechargeXianzhiTip;