Beispiel #1
0
            public void Load(string fileName, DomNode node)
            {
                foreach (DomNode child in node)
                {
                    switch (child.Name.ToLower())
                    {
                    case "color": Color = UIDefaults.LoadColor(fileName, child, Color4.White); break;

                    case "font": Font = UIDefaults.LoadFont(fileName, child); break;
                    }
                }
            }
Beispiel #2
0
            public void Load(string fileName, DomNode node)
            {
                foreach (DomNode child in node)
                {
                    switch (child.Name.ToLower())
                    {
                    case "background": Background = UIDefaults.LoadBackground(fileName, child); break;

                    case "border": Border = UIDefaults.LoadBorder(fileName, child); break;

                    case "color": Color = UIDefaults.LoadColor(fileName, child, Color4.White); break;
                    }
                }
            }