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); } }
public void AddGlobalBgStyle(string name, GlobalBgStyle globalBgStyle) { globalBgStyle.mod = this; globalBgStyle.Name = name; globalBgStyles[name] = globalBgStyle; GlobalBgStyleLoader.globalBgStyles.Add(globalBgStyle); }