Exemplo n.º 1
0
        public static bool InitSkin <T>(this GUIWindow window, string skinfile)
        {
            string xmlSkin = Path.Combine(GUIGraphicsContext.Skin, skinfile);
            bool   res     = window.Load(xmlSkin);

            foreach (T p in Enum.GetValues(typeof(T)))
            {
                string name = p.ToString();
                if (!name.StartsWith("Fanart_"))
                {
                    window.ClearGUIProperty(name);
                }
            }
            return(res);
        }