TCX_LongZhu
DESKTOP-MMO982B\User 2026-06-05 11:07:16 +08:00
parent 414bfa9372
commit 0c3a03ec89
1 changed files with 2 additions and 0 deletions

View File

@ -684,6 +684,7 @@ function this:RechargeShopItemAdapter(shopItem, itemData)
-- 获取对象
local first = Util.GetGameObject(shopItem, "first")
local firstNum = Util.GetGameObject(shopItem, "first/Text"):GetComponent("Text")
local firstIcon = Util.GetGameObject(shopItem, "first/itemIcon"):GetComponent("Image")
local xuChong = Util.GetGameObject(shopItem, "xuChong")
local xuNum = Util.GetGameObject(shopItem, "xuChong/Text"):GetComponent("Text")
local icon = Util.GetGameObject(shopItem, "icon"):GetComponent("Image")
@ -704,6 +705,7 @@ function this:RechargeShopItemAdapter(shopItem, itemData)
first:SetActive(curBuyCount < 1)
if itemInfo.FirstMultiple then
firstNum.text = itemInfo.FirstMultiple[1][2]
firstIcon.sprite = SetIcon(self.spLoader, itemInfo.FirstMultiple[1][1])
else
firstNum.text = ""
first:SetActive(false)