活动未选中按钮置灰
parent
8d6569aacb
commit
2b1fc7734b
|
@ -38,7 +38,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 25, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 1}
|
||||
--- !u!222 &784533625
|
||||
|
@ -3179,8 +3179,8 @@ MonoBehaviour:
|
|||
m_Alignment: 4
|
||||
m_AlignByGeometry: 0
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 0
|
||||
m_VerticalOverflow: 0
|
||||
m_HorizontalOverflow: 1
|
||||
m_VerticalOverflow: 1
|
||||
m_LineSpacing: 1
|
||||
m_Text: "\u6280\u80FD"
|
||||
--- !u!1 &2696076605080798649
|
||||
|
@ -6833,7 +6833,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: -0.000030517578}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 1}
|
||||
--- !u!222 &3992972364876945023
|
||||
|
|
|
@ -186,9 +186,12 @@ function this.PageTabAdapter(tab, index, status)
|
|||
local nameText = Util.GetGameObject(tab, "name"):GetComponent("Text")
|
||||
local lock = Util.GetGameObject(tab, "lock")
|
||||
local redpot = Util.GetGameObject(tab, "redpot")
|
||||
if status == "lock" then
|
||||
if status == "lock" then
|
||||
lock.gameObject:SetActive(true)
|
||||
Util.SetGray(tab.gameObject, true)
|
||||
elseif status =="default" then
|
||||
lock.gameObject:SetActive(false)
|
||||
Util.SetGray(tab.gameObject, true)
|
||||
else
|
||||
Util.SetGray(tab.gameObject, false)
|
||||
lock.gameObject:SetActive(false)
|
||||
|
|
Loading…
Reference in New Issue