예제 #1
0
        private void AutoloadGlobalBgStyle(Type type)
        {
            GlobalBgStyle globalBgStyle = (GlobalBgStyle)Activator.CreateInstance(type);

            globalBgStyle.mod = this;
            string name = type.Name;

            if (globalBgStyle.Autoload(ref name))
            {
                AddGlobalBgStyle(name, globalBgStyle);
            }
        }
예제 #2
0
		public void AddGlobalBgStyle(string name, GlobalBgStyle globalBgStyle)
		{
			globalBgStyle.mod = this;
			globalBgStyle.Name = name;
			globalBgStyles[name] = globalBgStyle;
			GlobalBgStyleLoader.globalBgStyles.Add(globalBgStyle);
		}