local UIHeroChangeConfirm = require("View/Formation/UIHeroChangeConfirm") local UIHeroLightEffectChangeConfirm = UIViewClass(UIHeroChangeConfirm) function UIHeroLightEffectChangeConfirm:Init() UIUtils.SetLabelText(self.UICommonPopShowView.TextBtn1, Const_IDS.IDS_BUTTON_CONFIRM) UIUtils.SetLabelText(self.UICommonPopShowView.TextBtn2, Const_IDS.IDS_BUTTON_CANCEL) UIUtils.SetLabelText(self.UICommonPopShowView.lab_Title, Const_IDS.IDS_LightEffect_Change_04) UIUtils.SetLabelText(self.txt_Desc, Const_IDS.IDS_LightEffect_Change_05) end function UIHeroLightEffectChangeConfirm:OnButtonClicked(comp) if comp == self.UICommonPopShowView.btn_1 then MDL.LightEffect.LightEffectOptRequest(MDL.LightEffect.OptType.Change, self.oldHeroId, nil, self.newHeroId) self:CloseView() UIManager.CloseView(Const_UI_Lua.UIEnum.UIHeroLightEffectChange) elseif comp == self.UICommonPopShowView.btn_2 then self:CloseView() end end return UIHeroLightEffectChangeConfirm