Exemple #1
0
        private void Start()
        {
            if (ColorThemeTag != "")
            {
                mColorTheme = GetColorTheme(ColorThemeTag);
            }

            if (PositionThemeTag != "")
            {
                mPositionTheme = GetVector3Theme(PositionThemeTag);
            }
        }
        /// <summary>
        /// get the themes
        /// </summary>
        private void Start()
        {
            if (InnerColorThemeTag != "")
            {
                mInnterColorTheme = GetColorTheme(InnerColorThemeTag);
            }

            if (OuterColorThemeTag != "")
            {
                mOuterColorTheme = GetColorTheme(OuterColorThemeTag);
            }
        }
        private void Start()
        {
            if (ColorThemeTag != "")
            {
                mColorTheme = GetColorTheme(ColorThemeTag);
            }

            //if (PositionThemeTag != "")
            //{
            //    mPositionTheme = GetVector3Theme(PositionThemeTag);
            //}
        }
        public override void SetTheme()
        {
            if (InnerColorThemeTag != "")
            {
                mInnerColorTheme         = GetColorTheme(InnerColorThemeTag);
                mCheckInnerColorThemeTag = InnerColorThemeTag;
            }

            if (OuterColorThemeTag != "")
            {
                mOuterColorTheme         = GetColorTheme(OuterColorThemeTag);
                mCheckOuterColorThemeTag = OuterColorThemeTag;
            }
        }
Exemple #5
0
        public override void SetTheme()
        {
            if (ColorThemeTag != "")
            {
                mColorTheme         = GetColorTheme(ColorThemeTag);
                mCheckColorThemeTag = ColorThemeTag;
            }

            if (PositionThemeTag != "")
            {
                mPositionTheme         = GetVector3Theme(PositionThemeTag);
                mCheckPositionThemeTag = PositionThemeTag;
            }
        }
        /// <summary>
        /// Find a ColorInteractiveTheme by tag
        /// </summary>
        /// <param name="tag"></param>
        /// <returns></returns>
        public ColorInteractiveTheme GetColorTheme(string tag)
        {
            // search locally
            ColorInteractiveTheme[] colorThemes = InteractiveHost.GetComponentsInChildren <ColorInteractiveTheme>();
            ColorInteractiveTheme   theme       = FindColorTheme(colorThemes, tag);

            // search globally
            if (theme == null)
            {
                colorThemes = FindObjectsOfType <ColorInteractiveTheme>();
                theme       = FindColorTheme(colorThemes, tag);
            }

            return(theme);
        }
Exemple #7
0
 public override void SetTheme()
 {
     mColorTheme    = GetColorTheme(ThemeTag);
     mCheckThemeTag = ThemeTag;
 }
 private void Start()
 {
     mTextColorTheme = GetColorTheme(ThemeTag);
 }