主角礼物显示修改

(cherry picked from commit b0650bbb20)
dev_one_discount hotfix/you_gu/cdn_66_and/1.1.43
wangzhenxing 2023-09-21 16:41:59 +08:00 committed by DESKTOP-RH64908\Administrator
parent 76c7acf061
commit 0e33b8e317
2 changed files with 7 additions and 6 deletions

View File

@ -21053,8 +21053,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0.8, y: 248.5} m_AnchoredPosition: {x: 0.8, y: 319.5}
m_SizeDelta: {x: 950.7, y: 929} m_SizeDelta: {x: 950.7, y: 787}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &4292312059031958145 --- !u!222 &4292312059031958145
CanvasRenderer: CanvasRenderer:
@ -21544,7 +21544,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0} m_AnchorMin: {x: 0.5, y: 0}
m_AnchorMax: {x: 0.5, y: 1} m_AnchorMax: {x: 0.5, y: 1}
m_AnchoredPosition: {x: 522, y: -419.79} m_AnchoredPosition: {x: 522, y: -419.79004}
m_SizeDelta: {x: 6, y: -1310.1} m_SizeDelta: {x: 6, y: -1310.1}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &5083175378485869623 --- !u!222 &5083175378485869623

View File

@ -171,6 +171,10 @@ function this.RefreshWindowData()
data.id=list[i] data.id=list[i]
data.type=2 data.type=2
data.qua=itemConfig[list[i]].Quantity data.qua=itemConfig[list[i]].Quantity
if equipConfig[data.id] then
collectNum=collectNum + equipConfig[data.id].Gift
LogError("equipConfig[data.id].Gift=="..equipConfig[data.id].Gift)
end
table.insert(allUpIds,data.id) table.insert(allUpIds,data.id)
end end
table.insert(giftDatas,data) table.insert(giftDatas,data)
@ -224,9 +228,6 @@ function this.SingleUpItemShow(_go,data)
local add=Util.GetGameObject(_go,"add") local add=Util.GetGameObject(_go,"add")
if data.id and data.id~=0 then if data.id and data.id~=0 then
frame.sprite=this.spLoader:LoadSprite(GetQuantityImageByquality(itemConfig[data.id].Quantity)) frame.sprite=this.spLoader:LoadSprite(GetQuantityImageByquality(itemConfig[data.id].Quantity))
if equipConfig[data.id] then
collectNum=collectNum+equipConfig[data.id].Gift
end
icon.gameObject:SetActive(true) icon.gameObject:SetActive(true)
name.gameObject:SetActive(true) name.gameObject:SetActive(true)
add:SetActive(false) add:SetActive(false)