box tips里面的感叹号
This commit is contained in:
parent
f4876233ae
commit
96e4d6b279
@ -36,6 +36,7 @@ function BoxTips:onLoadRootComplete()
|
||||
end)
|
||||
|
||||
self.rewardNodeList = {}
|
||||
local itemCfg = ConfigManager:getConfig("item")
|
||||
local rewardList = itemInfo.reward or GConst.EMPTY_TABLE
|
||||
for i = 1, 4 do
|
||||
local rewardNode = uiMap["box_tips.bg.item_" .. i]
|
||||
@ -44,7 +45,8 @@ function BoxTips:onLoadRootComplete()
|
||||
local num = uiMap["box_tips.bg.item_" .. i .. ".num"]
|
||||
num:setText(GFunc.intToString(GFunc.getRewardNum(rewardList[i])))
|
||||
local help = uiMap["box_tips.bg.item_" .. i .. ".help"]
|
||||
if rewardList[i].type == GConst.ItemConst.ITEM_TYPE.RANDOM_FRAGMENT then
|
||||
local itemInfo = itemCfg[rewardList[i].id]
|
||||
if itemInfo and itemInfo.type == GConst.ItemConst.ITEM_TYPE.RANDOM_FRAGMENT then
|
||||
help:setVisible(true)
|
||||
else
|
||||
help:setVisible(false)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user