TCX_LongZhu
parent
3c844d6e69
commit
56efcd2406
|
|
@ -132,13 +132,17 @@ function PracticeImprint:SetSingleImprint(_go, _data)
|
|||
self.SelectList[_imprintId] = selectImg
|
||||
heroImg.gameObject:SetActive(configData.Type == 1)
|
||||
heroImg.sprite = self.spLoader:LoadSprite("r_zjm_chongzhijiahao")
|
||||
local _unlockAble = true
|
||||
for i = 1, #configData.OpenSkillSet do
|
||||
local data = configData.OpenSkillSet[i]
|
||||
local itemConfig = ConfigManager.GetConfigDataByKey(
|
||||
ConfigName.ItemConfig, "Id", configData.OpenSkillSet[i][1]
|
||||
)
|
||||
suoBGText.text = "收集" .. itemConfig.Name .. data[2] .. "个后开启\n"
|
||||
local data = configData.OpenSkillSet[i]
|
||||
local itemConfig = ConfigManager.GetConfigDataByKey(
|
||||
ConfigName.ItemConfig, "Id", configData.OpenSkillSet[i][1]
|
||||
)
|
||||
suoBGText.text = "收集" .. itemConfig.Name .. data[2] .. "个后开启\n"
|
||||
if BagManager.GetItemCountById(data[1]) < data[2] then
|
||||
_unlockAble = false
|
||||
end
|
||||
end
|
||||
if not serverData then -- 未解锁
|
||||
_go:GetComponent("Image").enabled = false
|
||||
maskBlack:SetActive(true)
|
||||
|
|
@ -171,7 +175,6 @@ function PracticeImprint:SetSingleImprint(_go, _data)
|
|||
local heroContion = Util.GetGameObject(_go, "needsList")
|
||||
if configData.OpenType == 1 then
|
||||
heroContion:SetActive(true)
|
||||
local _unlockAble = true
|
||||
for i = 1, #configData.OpenValue do
|
||||
local t = Util.GetGameObject(_go, "needsList/pre" .. tostring(i) .. "/head"):GetComponent("Image")
|
||||
local condition = Util.GetGameObject(_go, "needsList/pre" .. tostring(i) .. "/Text"):GetComponent("Text")
|
||||
|
|
@ -191,7 +194,6 @@ function PracticeImprint:SetSingleImprint(_go, _data)
|
|||
end
|
||||
elseif configData.OpenType == 2 then
|
||||
heroContion:SetActive(true)
|
||||
local _unlockAble = true
|
||||
local list = FaLingManager.GetAllEquipData()
|
||||
for i = 1, #configData.OpenValue do
|
||||
local t = Util.GetGameObject(_go, "needsList/pre" .. tostring(i) .. "/head"):GetComponent("Image")
|
||||
|
|
|
|||
|
|
@ -556,6 +556,7 @@ function this:ShopItemAdapter(shopItem, itemData)
|
|||
else
|
||||
local isDiscount = itemInfo.IsDiscount == 1
|
||||
discountbg:SetActive(isDiscount)
|
||||
discountbg1:SetActive(isDiscount)
|
||||
if isDiscount then
|
||||
--local str = "s_shop_zhekou_0" ..itemInfo.DiscountDegree .. "_zh"
|
||||
--LogError("FFFFFFFFFFFFFFFFFFFF"..str)
|
||||
|
|
|
|||
Loading…
Reference in New Issue