活动图标显示修改提交
parent
fd4c7999c5
commit
683617aced
|
|
@ -548,7 +548,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.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: -10, y: 0}
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
m_SizeDelta: {x: 159, y: 164}
|
m_SizeDelta: {x: 159, y: 164}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!222 &8402084921783220767
|
--- !u!222 &8402084921783220767
|
||||||
|
|
|
||||||
|
|
@ -224,20 +224,20 @@ function this.PageTabAdapter(tab, index, status)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
-- if not sprite then
|
if not sprite then
|
||||||
-- sprite = (status == "select" and tabs[index].Icon[2] or tabs[index].Icon[1])
|
sprite = (status == "select" and tabs[index].Icon[2] or tabs[index].Icon[1])
|
||||||
-- end
|
end
|
||||||
if sprite==nil or sprite=="" then
|
-- if sprite==nil or sprite=="" then
|
||||||
local num=1
|
-- local num=1
|
||||||
if index %5==0 then
|
-- if index %5==0 then
|
||||||
num=1
|
-- num=1
|
||||||
else
|
-- else
|
||||||
num=index%5
|
-- num=index%5
|
||||||
end
|
-- end
|
||||||
sprite="UI_hz_gonghui_3"..num
|
-- sprite="UI_hz_gonghui_3"..num
|
||||||
end
|
-- end
|
||||||
img.sprite = this.spLoader:LoadSprite(sprite)
|
img.sprite = this.spLoader:LoadSprite(sprite)
|
||||||
-- img:SetNativeSize()
|
img:SetNativeSize()
|
||||||
|
|
||||||
select:SetActive(status == "select")
|
select:SetActive(status == "select")
|
||||||
text.text=tabs[index].Sesc
|
text.text=tabs[index].Sesc
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue