Пример #1
0
 public void Init(IPALogger logger, Conf conf)
 {
     Instance = this;
     Log      = logger;
     Config   = conf.Generated <Config>();
     Log.Info("Lighting+ initialized.");
 }
Пример #2
0
 public void Init(IPALogger logger, IPA.Config.Config conf)
 {
     Instance = this;
     Log      = logger;
     PluginConfig.Instance = conf.Generated <PluginConfig>();
     BS_Utils.Utilities.BSEvents.lateMenuSceneLoadedFresh += BSEvents_lateMenuSceneLoadedFresh;
 }
Пример #3
0
 public void Init(IPALogger logger, IPAConfig conf)
 {
     Instance        = this;
     Log             = logger;
     Config.Instance = conf.Generated <Config>();
     Log.Info($"Beat-360fyer-Plugin initialized.");
 }
Пример #4
0
 public void Init(IPALogger logger, Config conf)
 {
     Logger.log = logger;
     logger.Debug("Loading HttpText Plugin");
     BSEvents.lateMenuSceneLoadedFresh += OnMenuSceneLoadedFresh;
     BSEvents.gameSceneLoaded          += OnGameSceneActive;
     config = conf.Generated <PluginConfig>();
 }
Пример #5
0
        public void Init(IPALogger logger, IPA.Config.Config cfgProvider, PluginMetadata pluginMetadata)
        {
            instance   = this;
            Logger.log = logger;

            Sprite coverImage = SongCore.Utilities.Utils.LoadSpriteFromResources("RandomSongPlayer.Assets.new-rst-logo.png");

            randomSongsFolder = Collections.AddSeperateSongFolder("Random Songs", Environment.CurrentDirectory + "/" + Setup.RandomSongsFolder, FolderLevelPack.NewPack, coverImage);

            config = cfgProvider.Generated <PluginConfig>();
        }
Пример #6
0
 public void InitWithConfig(IPA.Config.Config conf)
 {
     Configuration.PluginConfig.Instance = conf.Generated <Configuration.PluginConfig>();
     Log.Debug("Config loaded");
 }
Пример #7
0
 public Plugin(IPALogger logger, IPA.Config.Config config)
 {
     Instance = this;
     log      = logger;
     PluginConfig.Instance = config.Generated <PluginConfig>();
 }
Пример #8
0
 public static void Load()
 {
     LoaderConfig = Config.GetConfigFor(IPAName, "json");
     Instance     = LoaderConfig.Generated <SelfConfig>();
     Instance.OnReload();
 }
Пример #9
0
 public void InitWithConfig(IPA.Config.Config conf)
 {
     UI.Views.PluginConfig.Instance = conf.Generated <UI.Views.PluginConfig>();
     Logger.log.Debug("Config loaded");
 }