Exemplo n.º 1
0
        /// <summary>
        /// Set the style.
        /// </summary>
        /// <param name="styleBackground">Style for the background.</param>
        /// <param name="styleText">Style for the text.</param>
        /// <param name="style">Full style data.</param>
        public virtual void SetStyle(StyleImage styleBackground, StyleText styleText, Style style)
        {
            styleBackground.ApplyTo(Background);

            if ((Owner != null) && (Owner.IsTable))
            {
                Background.sprite = null;

                if (GraphicsBackground != null)
                {
                    GraphicsBackground.ForEach(style.Table.Background.ApplyTo);
                }
            }

            if (GraphicsForeground != null)
            {
                foreach (var gf in GraphicsForeground)
                {
                    if (gf != null)
                    {
                        styleText.ApplyTo(gf.gameObject);
                    }
                }
            }

            ResetGraphics();
        }
 /// <summary>
 /// Set the specified style.
 /// </summary>
 /// <param name="styleText">Style for the text.</param>
 /// <param name="style">Full style data.</param>
 public override void SetStyle(StyleText styleText, Style style)
 {
     if (Number != null)
     {
         styleText.ApplyTo(Number.gameObject);
     }
 }
Exemplo n.º 3
0
        /// <summary>
        /// Set the style.
        /// </summary>
        /// <param name="styleBackground">Style for the background.</param>
        /// <param name="styleText">Style for the text.</param>
        /// <param name="style">Full style data.</param>
        public override void SetStyle(StyleImage styleBackground, StyleText styleText, Style style)
        {
            base.SetStyle(styleBackground, styleText, style);

            if (Name != null)
            {
                styleText.ApplyTo(Name.gameObject);
            }
        }
Exemplo n.º 4
0
        /// <summary>
        /// Set the style.
        /// </summary>
        /// <param name="styleBackground">Style for the background.</param>
        /// <param name="styleText">Style for the text.</param>
        /// <param name="style">Full style data.</param>
        public virtual void SetStyle(StyleImage styleBackground, StyleText styleText, Style style)
        {
            styleBackground.ApplyTo(Background);

            foreach (var gf in GraphicsForeground)
            {
                if (gf != null)
                {
                    styleText.ApplyTo(gf.gameObject);
                }
            }

            var connector = GetComponent <MultipleConnector>();

            connector.color = style.Collections.DefaultColor;
        }
		/// <summary>
		/// Set the style.
		/// </summary>
		/// <param name="styleBackground">Style for the background.</param>
		/// <param name="styleText">Style for the text.</param>
		/// <param name="style">Full style data.</param>
		public override void SetStyle(StyleImage styleBackground, StyleText styleText, Style style)
		{
			base.SetStyle(styleBackground, styleText, style);

			PaddingPerLevel = style.TreeView.PaddingPerLevel;

			style.TreeView.Toggle.ApplyTo(ToggleImage);

			OnNodeExpand = style.TreeView.OnNodeExpand;

			AnimateArrow = style.TreeView.AnimateArrow;

			NodeOpened = style.TreeView.NodeOpened;

			NodeClosed = style.TreeView.NodeClosed;

			styleText.ApplyTo(Text);
		}
Exemplo n.º 6
0
        /// <summary>
        /// Set the style.
        /// </summary>
        /// <param name="styleBackground">Style for the background.</param>
        /// <param name="styleText">Style for the text.</param>
        /// <param name="style">Full style data.</param>
        public override void SetStyle(StyleImage styleBackground, StyleText styleText, Style style)
        {
            base.SetStyle(styleBackground, styleText, style);

            styleText.ApplyTo(Name);
        }
Exemplo n.º 7
0
 /// <summary>
 /// Set the specified style.
 /// </summary>
 /// <param name="styleText">Style for the text.</param>
 /// <param name="style">Full style data.</param>
 public override void SetStyle(StyleText styleText, Style style)
 {
     styleText.ApplyTo(Number);
 }