diff --git a/lua/app/module/item/item_const.lua b/lua/app/module/item/item_const.lua index 52244e97..200a9db8 100644 --- a/lua/app/module/item/item_const.lua +++ b/lua/app/module/item/item_const.lua @@ -26,6 +26,7 @@ ItemConst.ITEM_TYPE = { WEIGHT_FRAGMENT = 6, RANDOM_BOX_ITEM = 7, FIXED_BOX_ITEM = 8, + EPIC_HERO_FRAMENT = 11, } return ItemConst \ No newline at end of file diff --git a/lua/app/module/tips/tips_manager.lua b/lua/app/module/tips/tips_manager.lua index 3bcf4a81..4bf06d67 100644 --- a/lua/app/module/tips/tips_manager.lua +++ b/lua/app/module/tips/tips_manager.lua @@ -32,8 +32,10 @@ function TipsManager:showRewardTips(rewardId, rewardType, tarPrefabObj, alignTyp if rewardType == GConst.REWARD_TYPE.ITEM then local info = ConfigManager:getConfig("item")[rewardId] if info then - if info.type == GConst.ItemConst.ITEM_TYPE.RANDOM_FRAGMENT or info.type == GConst.ItemConst.ITEM_TYPE.WEIGHT_FRAGMENT then - -- 随机碎片 or 权重随机碎片 + if info.type == GConst.ItemConst.ITEM_TYPE.RANDOM_FRAGMENT + or info.type == GConst.ItemConst.ITEM_TYPE.WEIGHT_FRAGMENT + or info.type == GConst.ItemConst.ITEM_TYPE.EPIC_HERO_FRAMENT then + -- 随机碎片 or 权重随机碎片 or 史诗英雄碎片 self:showHeroFragmentTips(rewardId) return elseif info.type == GConst.ItemConst.ITEM_TYPE.BOX then diff --git a/lua/app/ui/tips/hero_fragment_tips.lua b/lua/app/ui/tips/hero_fragment_tips.lua index 29103355..49e5d054 100644 --- a/lua/app/ui/tips/hero_fragment_tips.lua +++ b/lua/app/ui/tips/hero_fragment_tips.lua @@ -74,6 +74,10 @@ function HeroFragmentTips:onLoadRootComplete() self:closeUI() end) + if cfg.type == GConst.ItemConst.ITEM_TYPE.EPIC_HERO_FRAMENT then + uiMap["hero_fragment_tips.title_bg_img.desc"]:setText(I18N:getText("item", self.itemId, "desc")) + end + self:initScrollRect() end