御剑行商店修改

dev_chengFeng
wangzhenxing 2022-08-18 16:35:14 +08:00
parent a32c76c9a0
commit 02f455f185
1 changed files with 15 additions and 0 deletions

View File

@ -460,6 +460,7 @@ function ShopViewNew:ShopItemAdapter(shopItem, itemData)
local bg = Util.GetGameObject(shopItem, "bg")
local item = Util.GetGameObject(bg, "item")
local itemName = Util.GetGameObject(bg, "itemName"):GetComponent("Text")
local itemDes = Util.GetGameObject(bg, "itemDes"):GetComponent("Text")
local limitBg = Util.GetGameObject(bg, "buyLimitbg")
local limitTip = Util.GetGameObject(bg, "buyLimitbg/tip"):GetComponent("Text")
local limitTimes = Util.GetGameObject(bg, "buyLimitbg/buyLimit"):GetComponent("Text")
@ -510,6 +511,20 @@ function ShopViewNew:ShopItemAdapter(shopItem, itemData)
lockTip.text = string.format("公会%d级解锁", unLockLevel)
end
end
if con.ItemType == ItemType.Talisman then
itemDes.gameObject:SetActive(true)
if con.ItemDescribe then
local str=string.split(con.ItemDescribe,'')
if str[1] then
itemDes.text=str[1]
end
else
itemDes.gameObject:SetActive(false)
end
else
itemDes.gameObject:SetActive(false)
end
lock:SetActive(not _IsUnLock)
priceBg.gameObject:SetActive(_IsUnLock)
itemName.gameObject:SetActive(_IsUnLock)