-- 暴风布阵界面 local UIFreeLineupSelectOfficer = require("View/FreeLineUp/UIFreeLineupSelectOfficer") local UIStormSelectOfficer = UIViewClass(UIFreeLineupSelectOfficer) -- OVERRIDER function UIStormSelectOfficer:Init() self.curKingdom = MDL.Storm.GetOpenCountryID() -- 暴风玩法国别 UIUtils.SetLabelText(self.UITemplateTitlePanel.lab_Title, Const_IDS.IDS_DemonGod_UI_9) UIUtils.SetActive(self.btn_Fight, false) UIUtils.SetActive(self.btn_Formation, false) UIUtils.SetActive(self.btn_Next, true) UIUtils.SetActive(self.img_ScoreBg.gameObject, false) end -- OVERRIDER function UIStormSelectOfficer:RefreshSelectOfficerView() local stormInfo = MDL.Storm.GetStormInfo() self.curKingdom = stormInfo.countryId self:RefreshHeroList() end -- OVERRIDER function UIStormSelectOfficer:RefreshRightPanelInfo() UIUtils.SetLabel(self.txt_BR, 0) UIUtils.SetActive(self.group_Sopt1.img_Lock, self:IsTeamPosLockedUp(self.selectTeamId)) UIUtils.SetActive(self.group_Sopt2.img_Lock, self:IsTeamPosLockedUp(self.selectTeamId)) UIUtils.SetLabelText(self.txt_Tips, Const_IDS["IDS_Storm_LineUpDes"]) end -- OVERRIDER function UIStormSelectOfficer:IsTeamPosLockedUp() return false end -- OVERRIDER function UIStormSelectOfficer:ExecuteFightFunc() for i = 1, 3 do if MDL.HeroSelect.GetTeamLevel() >= MDL.FreeLineUp.FreeLineUpSlotUnlockList[i] and self:GetTeamPos(1, i) <= 0 then if self:GetTeamPos(2, i) > 0 then CTL.Tips.AddTipsMsg(Const_IDS["IDS_SiegeCity_LineupTips_2"]) else CTL.Tips.AddTipsMsg(Const_IDS["IDS_DemonGod_UI_12"]) end self:OnTeamSlotBtnClick(self.group_Buttons[i].btn_team) return end end UIManager.OpenView( Const_UI_Lua.UIEnum.UIStormFreeLineupCustomDetailPanel, { id = MDL.FreeLineUp.FuncType.Storm, heroList = self.allHeroList }, -- 复用布阵详情界面 Const_UI_Lua.UIEnum.UIFreeLineupDetailPanel ) end function UIStormSelectOfficer:OnClosed() MDL.FreeLineUp.FreeLineUpLockOrClearReq(MDL.FreeLineUp.FuncType.Storm, false) end return UIStormSelectOfficer