KLFriendTipsPanel.lua 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. ---@class KLFriendTipsPanel:UIKmlLuaPanelBase
  2. ---@field view KLFriendTipsPanelView
  3. local KLFriendTipsPanel = class(UIKmlLuaPanelBase)
  4. local this =KLFriendTipsPanel
  5. ---创建时调用一次
  6. function this:Init()
  7. end
  8. ---创建或者刷新界面数据时调用
  9. function this:Refresh()
  10. local content = "1、添加好友时需对方同意后才会成为好友。\n2、好友互动可以增加亲密度。\n3、屏蔽后将无法接收该玩家的信息。\n4、被陌生人击杀后会自动将其加入宿敌。"
  11. if self.args and self.args.type == "hook" then
  12. content = "1、等级达到70级后开启离线挂机助手,玩家离线前需先前往挂机点开启自动战斗,离线将持续挂机获得相同收益。\n2、挂机点挂机有被杀风险,被杀后将回城只获得泡点收益。\n3、离线挂机时自动消耗药品,如果已开启特权也正常生效:自动拾取、自动回收、自动买药。\n4、每次离线只累计12小时收益,再次登录可重置时间。\n5、装备、金币、道具类收益在挂机时实时获得经验收益将在上线时统一领取。"
  13. end
  14. GUI:Text_setString(self.view.TextContent, content)
  15. end
  16. ---注册UI事件和服务器消息
  17. function this:RegistEvents()
  18. GUI:AddOnClickEvent(self.view.BtnClose, self, self.CloseMe)
  19. end
  20. function this:CloseMe()
  21. GUI:UIPanel_Close(self.filePath)
  22. end
  23. function this:Close()
  24. end
  25. return this