优化显示
This commit is contained in:
parent
c6127ec0ae
commit
2018d556bb
@ -26,6 +26,7 @@ ItemConst.ITEM_TYPE = {
|
||||
WEIGHT_FRAGMENT = 6,
|
||||
RANDOM_BOX_ITEM = 7,
|
||||
FIXED_BOX_ITEM = 8,
|
||||
EPIC_HERO_FRAMENT = 11,
|
||||
}
|
||||
|
||||
return ItemConst
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user