活动图标显示修改提交

onepiece_demo_arena
wangzhenxing 2024-01-30 17:36:55 +08:00
parent fd4c7999c5
commit 683617aced
2 changed files with 14 additions and 14 deletions

View File

@ -548,7 +548,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -10, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 159, y: 164}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &8402084921783220767

View File

@ -224,20 +224,20 @@ function this.PageTabAdapter(tab, index, status)
end
end
end
-- if not sprite then
-- sprite = (status == "select" and tabs[index].Icon[2] or tabs[index].Icon[1])
-- end
if sprite==nil or sprite=="" then
local num=1
if index %5==0 then
num=1
else
num=index%5
end
sprite="UI_hz_gonghui_3"..num
end
if not sprite then
sprite = (status == "select" and tabs[index].Icon[2] or tabs[index].Icon[1])
end
-- if sprite==nil or sprite=="" then
-- local num=1
-- if index %5==0 then
-- num=1
-- else
-- num=index%5
-- end
-- sprite="UI_hz_gonghui_3"..num
-- end
img.sprite = this.spLoader:LoadSprite(sprite)
-- img:SetNativeSize()
img:SetNativeSize()
select:SetActive(status == "select")
text.text=tabs[index].Sesc