local UIGuildWarBattleGround = require("View/GuildWar/UIGuildWarBattleGround") local UISyncFourCountryNote = UIViewClass() function UISyncFourCountryNote:OnOpened(context) self.toggles_Tab:SelectIndex(0) end function UISyncFourCountryNote:OnValueChanged(comp, index) if comp == self.toggles_Tab then self.curSelectIndex = index self.group_Info:SetState(index) self.btn_Before.gameObject:SetActive(self.curSelectIndex ~= 0) self.btn_Next.gameObject:SetActive(self.curSelectIndex ~= 2) end end function UISyncFourCountryNote:OnButtonClicked(comp) if comp == self.btn_Before then self:ShowBefore() elseif comp == self.btn_Next then self:ShowNext() elseif comp == self.btn_Close then self:CloseView() end end function UISyncFourCountryNote:ShowNext() self.curSelectIndex = self.curSelectIndex + 1 self.toggles_Tab:SelectIndex(self.curSelectIndex) end function UISyncFourCountryNote:ShowBefore() self.curSelectIndex = self.curSelectIndex - 1 self.toggles_Tab:SelectIndex(self.curSelectIndex) end return UISyncFourCountryNote