KLRedFortSettlementPanel.lua 855 B

123456789101112131415161718192021222324252627282930313233
  1. ---@class KLRedFortSettlementPanel:UIKmlLuaPanelBase
  2. ---@field view KLRedFortSettlementPanelView
  3. local KLRedFortSettlementPanel = class(UIKmlLuaPanelBase)
  4. local this =KLRedFortSettlementPanel
  5. ---创建时调用一次
  6. function this:Init()
  7. end
  8. ---注册UI事件和服务器消息
  9. function this:RegistEvents()
  10. GUI:AddOnClickEvent(self.view.btnOK, self, self.BtnCloseOnClick)
  11. end
  12. function this:BtnCloseOnClick()
  13. GUI:UIPanel_Close("dev/outui/Activity/Panel/KLRedFortSettlement/KLRedFortSettlementPanel")
  14. end
  15. ---创建或者刷新界面数据时调用
  16. function this:Refresh()
  17. SL:HideMainPanel()
  18. if self.args then
  19. GUI:Text_setString(self.view.textKillScore,tostring(self.args["1"]))
  20. GUI:Text_setString(self.view.textRank,tostring(self.args["2"]))
  21. end
  22. end
  23. function this:Close()
  24. SL:ShowMainPanel()
  25. end
  26. return this