KLQuintonInvasionRankItem.lua 802 B

1234567891011121314151617181920212223242526272829303132
  1. ---@class KLQuintonInvasionRankItem:UIKmlLuaPanelBase
  2. ---@field view KLQuintonInvasionRankItemView
  3. local KLQuintonInvasionRankItem = class(UIKmlLuaPanelBase)
  4. local this =KLQuintonInvasionRankItem
  5. ---创建时调用一次
  6. function this:Init()
  7. end
  8. ---注册UI事件和服务器消息
  9. function this:RegistEvents()
  10. end
  11. ---界面显示时调用一次
  12. function this:Show()
  13. end
  14. ---创建或者刷新界面数据时调用
  15. function this:Refresh()
  16. self:RefreshItem(self.args)
  17. end
  18. function this:RefreshItem(data)
  19. GUI:Text_setString(self.view.name,data.name)
  20. local score = "积分:"..data.integral
  21. GUI:Text_setString(self.view.pointCount,score)
  22. GUI:Image_loadTexture(self.view.numberIcon,tostring(data.rank),"Atlas/UIQuintonInvasion.spriteatlas")
  23. end
  24. function this:Close()
  25. end
  26. return this