英雄培养优化
parent
766a5b2e2f
commit
3a952c6753
|
@ -616,7 +616,7 @@ function SetHeroStars(spLoader, starGrid, star, type,_starSize,_scale,_pivot,rot
|
|||
-- horizonta = starGrid:AddComponent(typeof(UnityEngine.UI.HorizontalLayoutGroup))
|
||||
-- horizonta.childAlignment = "LowerLeft"
|
||||
-- end
|
||||
LogError("star====="..star)
|
||||
--LogError("star====="..star)
|
||||
if star>11 then
|
||||
type=3
|
||||
end
|
||||
|
|
|
@ -363,6 +363,19 @@ function this.GetItemDataByItemType(_itemType)
|
|||
return items
|
||||
end
|
||||
|
||||
--通过物品类型获得物品list
|
||||
function this.GetItemDataByTimeIsGold(_id)
|
||||
--LogError("_itemType ".._itemType)
|
||||
|
||||
for i, v in pairs(this.bagDatas) do
|
||||
if v.itemConfig.ItemType == ItemType.TimeIsGold and v.num > 0 and v.itemConfig.UseGain and v.itemConfig.UseGain[1][1]==_id then
|
||||
return v
|
||||
end
|
||||
end
|
||||
return nil
|
||||
end
|
||||
|
||||
|
||||
|
||||
--通过物品类型获得物品list
|
||||
function this.GetDataByItemType(_itemType)
|
||||
|
|
|
@ -974,8 +974,17 @@ function RoleInfoLayout:ShowCostNotEnoughTip()
|
|||
else
|
||||
PopupTipPanel.ShowTip(BagManager.GetItemNameById(costId).."不足无法升级")
|
||||
end
|
||||
|
||||
local item=BagManager.GetItemDataByTimeIsGold(costId)
|
||||
if item then
|
||||
UIManager.OpenPanel(UIName.BagResolveAnCompoundPanel, 4,item)
|
||||
else
|
||||
UIManager.OpenPanel(UIName.RewardItemSingleShowPopup,costId)
|
||||
end
|
||||
local _itemData = BagManager.bagDatas[itemSid]
|
||||
|
||||
--if costId==4 then
|
||||
UIManager.OpenPanel(UIName.RewardItemSingleShowPopup,costId)
|
||||
|
||||
--end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue