diff --git a/Assets/ManagedResources/~Lua/Modules/DynamicActivity/UpStarGift.lua b/Assets/ManagedResources/~Lua/Modules/DynamicActivity/UpStarGift.lua index d45edf6ceb..e458d854fc 100644 --- a/Assets/ManagedResources/~Lua/Modules/DynamicActivity/UpStarGift.lua +++ b/Assets/ManagedResources/~Lua/Modules/DynamicActivity/UpStarGift.lua @@ -76,7 +76,7 @@ function UpStarGift:BindEvent() self.tempChoose = chooseId -- 刷新界面限显示 self:RefreshData(true,true,true) - end) + end, "选择神将") end) @@ -98,7 +98,7 @@ function UpStarGift:BindEvent() -- 刷新界面限显示 self:RefreshData(true,true,true) - end) + end, "选择神将") end) Util.AddClick(self.btnLock,function() diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_ChooseUpHero.lua b/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_ChooseUpHero.lua index adf439e482..bd9bf6a532 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_ChooseUpHero.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_ChooseUpHero.lua @@ -14,7 +14,6 @@ local artResourcesConfig =ConfigManager.GetConfig(ConfigName.ArtResourcesConfig) function this:InitComponent(gameObject) this.spLoader = SpriteLoader.New() this.titleText=Util.GetGameObject(gameObject,"TitleText"):GetComponent("Text") - this.titleText.text="许愿神将" this.cancelBtn=Util.GetGameObject(gameObject,"CancelBtn") this.confirmBtn=Util.GetGameObject(gameObject,"ConfirmBtn") this.FourStarUpTip=Util.GetGameObject(gameObject,"tip"):GetComponent("Text") @@ -72,6 +71,9 @@ function this:OnShow(_parent,_args) heros = _args[1] currHeroId=_args[2] confirmFunc=_args[3] + -- 标题修改 + local title =_args[4] + this.titleText.text = title or "许愿神将" parent=_parent sortingOrder =_parent.sortingOrder