Exemplo n.º 1
0
        /// <summary>
        /// Set the specified style.
        /// </summary>
        /// <returns><c>true</c>, if style was set for children gameobjects, <c>false</c> otherwise.</returns>
        /// <param name="style">Style data.</param>
        public override bool SetStyle(Style style)
        {
            if (HoursScrollBlock != null)
            {
                HoursScrollBlock.SetStyle(style);
            }

            if (MinutesScrollBlock != null)
            {
                MinutesScrollBlock.SetStyle(style);
            }

            if (SecondsScrollBlock != null)
            {
                SecondsScrollBlock.SetStyle(style);
            }

            if (AMPMScrollBlock != null)
            {
                AMPMScrollBlock.SetStyle(style);
            }

            style.ScrollBlock.Highlight.ApplyTo(transform.Find("Highlight"));
            style.ScrollBlock.Background.ApplyTo(GetComponent <Image>());

            return(true);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Set the specified style.
        /// </summary>
        /// <returns><c>true</c>, if style was set for children gameobjects, <c>false</c> otherwise.</returns>
        /// <param name="style">Style data.</param>
        public override bool SetStyle(Style style)
        {
            base.SetStyle(style);

            if (HoursScrollBlock != null)
            {
                HoursScrollBlock.SetStyle(style);
            }

            if (MinutesScrollBlock != null)
            {
                MinutesScrollBlock.SetStyle(style);
            }

            if (SecondsScrollBlock != null)
            {
                SecondsScrollBlock.SetStyle(style);
            }

            if (AMPMScrollBlock != null)
            {
                AMPMScrollBlock.SetStyle(style);
            }

            return(true);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Set the specified style.
        /// </summary>
        /// <returns><c>true</c>, if style was set for children gameobjects, <c>false</c> otherwise.</returns>
        /// <param name="style">Style data.</param>
        public override bool SetStyle(Style style)
        {
            if (YearsScrollBlock != null)
            {
                YearsScrollBlock.SetStyle(style);
            }

            if (MonthsScrollBlock != null)
            {
                MonthsScrollBlock.SetStyle(style);
            }

            if (DaysScrollBlock != null)
            {
                DaysScrollBlock.SetStyle(style);
            }

            style.ScrollBlock.Highlight.ApplyTo(transform.Find("Highlight"));
            style.ScrollBlock.Background.ApplyTo(GetComponent <Image>());

            return(true);
        }