Exemplo n.º 1
0
 public void ApplySkin(GameObject obj)
 {
     if (!(Skinnable == null))
     {
         Skin.Apply(obj, Skinnable, Materials);
     }
 }
Exemplo n.º 2
0
 public void ApplySkin(GameObject obj)
 {
     if (Object.op_Equality((Object)this.Skinnable, (Object)null))
     {
         return;
     }
     Skin.Apply(obj, this.Skinnable, this.Materials);
 }
Exemplo n.º 3
0
 public void ApplySkin(GameObject obj)
 {
     if (this.Skinnable == null)
     {
         return;
     }
     Skin.Apply(obj, this.Skinnable, this.Materials);
 }
Exemplo n.º 4
0
        public void ApplySkin(Skin skin)
        {
            // Apply to children first so they don't override parent's properties
            foreach (UIComponent control in this.controls)
                control.ApplySkin(skin);

            skin.Apply(this);
        }
Exemplo n.º 5
0
        /// <summary>
        /// This applies a skin to this gui. If applyDefaults is true, then the
        /// defaults for subsequent controls are also changed.
        /// </summary>
        /// <param name="skin">The skin to apply.</param>
        /// <param name="applyDefaults">Should control defaults be modified?</param>
        /// <param name="applyCurrent">Should existing controls have their properties modified?</param>
        public void ApplySkin(Skin skin, bool applyCurrent, bool applyDefaults)
        {
            // Apply to GUI and possibly control defaults
            skin.Apply(this, applyDefaults);

            // Apply to every control already part of the GUI
            if (applyCurrent)
            {
                foreach (UIComponent control in this.controls)
                    control.ApplySkin(skin);
            }
        }