コード例 #1
0
ファイル: ItemSkin.cs プロジェクト: Ailtop/RustDocuments
 public void ApplySkin(GameObject obj)
 {
     if (!(Skinnable == null))
     {
         Skin.Apply(obj, Skinnable, Materials);
     }
 }
コード例 #2
0
 public void ApplySkin(GameObject obj)
 {
     if (Object.op_Equality((Object)this.Skinnable, (Object)null))
     {
         return;
     }
     Skin.Apply(obj, this.Skinnable, this.Materials);
 }
コード例 #3
0
 public void ApplySkin(GameObject obj)
 {
     if (this.Skinnable == null)
     {
         return;
     }
     Skin.Apply(obj, this.Skinnable, this.Materials);
 }
コード例 #4
0
ファイル: UIComponent.cs プロジェクト: jrs1498/GDDGame1
        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);
        }
コード例 #5
0
ファイル: GUIManager.cs プロジェクト: jrs1498/GDDGame1
        /// <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);
            }
        }