Esempio n. 1
0
        internal static GUISkin CreateGUISkinFromSheetsFolder(string sheetsPath, SkinTarget target, GUISkin skin = null)
        {
            skin = skin ?? ConverterUtils.CreateDefaultGUISkin();

            var resolver = ResolveFromSheetsFolder(sheetsPath, target);

            PopulateSkin(resolver.ResolvedSheet, skin);

            Array.Sort(skin.customStyles, (s1, s2) => s1.name.CompareTo(s2.name));

            return(skin);
        }
 internal static GUISkin CreateGUISkinFromSheetsFolder(SkinTarget target, IEnumerable <string> folders, GUISkin skin = null)
 {
     skin = skin ?? ConverterUtils.CreateDefaultGUISkin();
     PopulateSkin(target, folders, skin);
     return(skin);
 }