コード例 #1
0
 public virtual void ToggleOutlineHighlight(bool val)
 {
     if (val && shadow && selectable.interactable)
     {
         shadow.effectColor = m_appTheme.GetSelectedTheme(m_platform).baseColor;
     }
     else if (shadow)
     {
         shadow.effectColor = m_appTheme.GetSelectedTheme(m_platform).panelInteractionOutline;
     }
 }
コード例 #2
0
        public virtual void ToggleOutlineHighlight(bool val)
        {
            if (shadow == null)
            {
                return;
            }

            if (val && selectable.interactable)
            {
                shadow.effectColor = m_appTheme.GetSelectedTheme(m_platform).colorMix2;
            }
            else
            {
                shadow.effectColor = m_appTheme.GetSelectedTheme(m_platform).panelInteractionOutline;
            }
        }
コード例 #3
0
 void Start()
 {
     text       = GetComponentInChildren <TextMeshProUGUI>();
     text.color = m_appTheme.GetSelectedTheme(m_platform).buttonNormalTextColor;
 }