local UIWorldBossSettlement = require "View/WordBoss/UIWorldBossSettlement" local UICountryWorldBossSettlement = UIViewClass(UIWorldBossSettlement) function UICountryWorldBossSettlement:OnOpened(context) if context.isAssistant then return end local victoryCountryExtraReward = context.ExtraReward2 if victoryCountryExtraReward and #victoryCountryExtraReward > 0 then UIUtils.SetActive(self.group_Info03.gameObject, true) for _, vo in ipairs(victoryCountryExtraReward) do self.LevelRewardScroll03:AddData(vo, 0) end else UIUtils.SetActive(self.group_Info03.gameObject, false) end UIUtils.SetLabelText(self.txt_title_Reward, Const_IDS.IDS_OfficialProfit_TriggerDouble) UIUtils.SetActive(self.txt_title_Reward, context.hasDoubleReward) end return UICountryWorldBossSettlement