【碎片显示】确认购买和碎片合成时,不显示碎片道具的属性和碎片边框
parent
bf09d96840
commit
dd1493ee90
|
@ -5081,9 +5081,9 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 316.40005, y: -73.150055}
|
||||
m_AnchoredPosition: {x: 0.000057485686, y: -73.150055}
|
||||
m_SizeDelta: {x: 0, y: 151}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
m_Pivot: {x: 0, y: 0.5}
|
||||
--- !u!114 &5729675956691850897
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -19668,9 +19668,9 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 316.40002, y: -73.150055}
|
||||
m_AnchoredPosition: {x: 0.000028742843, y: -73.150055}
|
||||
m_SizeDelta: {x: 0, y: 151}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
m_Pivot: {x: 0, y: 0.5}
|
||||
--- !u!114 &4796361513380277662
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
@ -94,6 +94,7 @@ function ShopBuyPopup:OnOpen(shopType, shopItemId)
|
|||
this.shopType = shopType
|
||||
this.shopItemId = shopItemId
|
||||
this.shopItemInfo = ShopManager.GetShopItemInfo(shopItemId)
|
||||
LogGreen(shopItemId..":shopItemId")
|
||||
this.shopItemData = ShopManager.GetShopItemData(shopType, shopItemId)
|
||||
|
||||
-- 商品基础信息显示
|
||||
|
@ -104,7 +105,14 @@ function ShopBuyPopup:OnOpen(shopType, shopItemId)
|
|||
local itemConfig = ConfigManager.GetConfig(ConfigName.ItemConfig)
|
||||
this.itemContent.text = string.gsub(itemConfig[goodsId].ItemDescribe, "\\n", "\n")
|
||||
this.itemIcon.sprite = SetIcon(goodsId)
|
||||
this.itemBg.sprite = SetFrame(goodsId)
|
||||
if itemConfig[this.shopItemInfo.Goods[1][1]].ItemType == 2 then
|
||||
this.itemBg.sprite = Util.LoadSprite(GetHeroChipQuantityImageByquality(itemConfig[this.shopItemInfo.Goods[1][1]].Quantity))
|
||||
Util.GetGameObject(self.gameObject, "tipImage/item/proima"):SetActive(true)
|
||||
Util.GetGameObject(self.gameObject, "tipImage/item/proima"):GetComponent("Image").sprite = Util.LoadSprite(GetJobSpriteStrByJobNum(itemConfig[this.shopItemInfo.Goods[1][1]].PropertyName))
|
||||
else
|
||||
this.itemBg.sprite = SetFrame(goodsId)
|
||||
Util.GetGameObject(self.gameObject, "tipImage/item/proima"):SetActive(false)
|
||||
end
|
||||
this.itemNum.text = this.goods[1][2]
|
||||
-- 计算最大可购买的数量
|
||||
local countLimitNum = ShopManager.GetShopItemLimitBuyCount(shopItemId)
|
||||
|
|
Loading…
Reference in New Issue