优化显示
This commit is contained in:
parent
c6127ec0ae
commit
2018d556bb
@ -26,6 +26,7 @@ ItemConst.ITEM_TYPE = {
|
|||||||
WEIGHT_FRAGMENT = 6,
|
WEIGHT_FRAGMENT = 6,
|
||||||
RANDOM_BOX_ITEM = 7,
|
RANDOM_BOX_ITEM = 7,
|
||||||
FIXED_BOX_ITEM = 8,
|
FIXED_BOX_ITEM = 8,
|
||||||
|
EPIC_HERO_FRAMENT = 11,
|
||||||
}
|
}
|
||||||
|
|
||||||
return ItemConst
|
return ItemConst
|
||||||
@ -32,8 +32,10 @@ function TipsManager:showRewardTips(rewardId, rewardType, tarPrefabObj, alignTyp
|
|||||||
if rewardType == GConst.REWARD_TYPE.ITEM then
|
if rewardType == GConst.REWARD_TYPE.ITEM then
|
||||||
local info = ConfigManager:getConfig("item")[rewardId]
|
local info = ConfigManager:getConfig("item")[rewardId]
|
||||||
if info then
|
if info then
|
||||||
if info.type == GConst.ItemConst.ITEM_TYPE.RANDOM_FRAGMENT or info.type == GConst.ItemConst.ITEM_TYPE.WEIGHT_FRAGMENT then
|
if info.type == GConst.ItemConst.ITEM_TYPE.RANDOM_FRAGMENT
|
||||||
-- 随机碎片 or 权重随机碎片
|
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)
|
self:showHeroFragmentTips(rewardId)
|
||||||
return
|
return
|
||||||
elseif info.type == GConst.ItemConst.ITEM_TYPE.BOX then
|
elseif info.type == GConst.ItemConst.ITEM_TYPE.BOX then
|
||||||
|
|||||||
@ -74,6 +74,10 @@ function HeroFragmentTips:onLoadRootComplete()
|
|||||||
self:closeUI()
|
self:closeUI()
|
||||||
end)
|
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()
|
self:initScrollRect()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user