local UIGuildMainCountPanel = UIViewClass() function UIGuildMainCountPanel:OnOpened(context) self.txt_Info_1.text = string.FormatByIdsId(Const_IDS.IDS_GuildMainpage_Tip1, DataSheetManager.ConstData:GetDataByID("GuildEvaluationMemberNum").IntValue) self.txt_Info_2:ResetAndBeginCustomTimer(false,context.time,0,"{0:00}:{1:00}:{2:00}",1) self:StartRepeatFunc(self.OnUpdateFun, context.time) end function UIGuildMainCountPanel:OnUpdateFun(deltaTime, timeSinceUpdate) self:CloseView() end function UIGuildMainCountPanel:OnButtonClicked(comp) if comp == self.img_Back then self:CloseView() end end return UIGuildMainCountPanel