---@class KLPkItem:UIKmlLuaPanelBase ---@field view KLPkItemView local KLPkItem = class(UIKmlLuaPanelBase) local this =KLPkItem ---创建时调用一次 function this:Init() end ---创建或者刷新界面数据时调用 function this:Refresh() GUI:Button_setTitleText(self.view.pk_name,self.args.pkName) end ---注册UI事件和服务器消息 function this:RegistEvents() GUI:AddOnClickEvent(self.view.pkBtn,self,self.OnClickPkBtn) end function this:OnClickPkBtn() SL:onLUAEvent(LUA_EVENT_SWITCH_PKMODE,self.args.pkMode) end function this:Close() end return this