From 2018d556bbec2bdfa377de34c6198bcf2a27d651 Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Wed, 2 Aug 2023 18:56:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/module/item/item_const.lua | 1 + lua/app/module/tips/tips_manager.lua | 6 ++++-- lua/app/ui/tips/hero_fragment_tips.lua | 4 ++++ 3 files changed, 9 insertions(+), 2 deletions(-) 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