local UIGuildAuctionServerListTips = UIViewClass() local tipHeightOffset = -0.5 function UIGuildAuctionServerListTips:OnOpened(context) self.gameObject.transform:SetPosition(context.pos.x, context.pos.y + tipHeightOffset, 0) if context and context.serverList then for _, v in ipairs(context.serverList) do self.loop_ServerList:AddData(v, 0) end end end function UIGuildAuctionServerListTips:OnBackButtonPressed() self:OnButtonClicked(self.btn_Close) end function UIGuildAuctionServerListTips:OnButtonClicked(comp) if comp == self.btn_Close then self:CloseView() end end function UIGuildAuctionServerListTips:OnCellInit(scrollRect, index, cellTable, data) UIUtils.SetLabel(cellTable.txt_ItemSources, string.FormatByIdsId(Const_IDS["IDS_CrossSever_SeverSuffixText2"], data)) end return UIGuildAuctionServerListTips