Example #1
0
        public void Refresh()
        {
            UIImageHelper.State state = !this.currentState ? this.disabledState : this.enabledState;
            Image component           = (Image)((Component)this).get_gameObject().GetComponent <Image>();

            if (Object.op_Equality((Object)component, (Object)null))
            {
                return;
            }
            state.Set(component);
        }
Example #2
0
        public void Refresh()
        {
            UIImageHelper.State state = (!this.currentState) ? this.disabledState : this.enabledState;
            Image component           = base.gameObject.GetComponent <Image>();

            if (component == null)
            {
                return;
            }
            state.Set(component);
        }
Example #3
0
        public void SetEnabledState(bool newState)
        {
            this.currentState = newState;
            UIImageHelper.State state = (!newState) ? this.disabledState : this.enabledState;
            if (state == null)
            {
                return;
            }
            Image component = base.gameObject.GetComponent <Image>();

            if (component == null)
            {
                Debug.LogError("Image is missing!");
                return;
            }
            state.Set(component);
        }
Example #4
0
        public void SetEnabledState(bool newState)
        {
            this.currentState = newState;
            UIImageHelper.State state = !newState ? this.disabledState : this.enabledState;
            if (state == null)
            {
                return;
            }
            Image component = (Image)((Component)this).get_gameObject().GetComponent <Image>();

            if (Object.op_Equality((Object)component, (Object)null))
            {
                Debug.LogError((object)"Image is missing!");
            }
            else
            {
                state.Set(component);
            }
        }