Exemple #1
0
 public void Init(IPALogger logger, Conf conf)
 {
     Instance = this;
     Log      = logger;
     Config   = conf.Generated <Config>();
     Log.Info("Lighting+ initialized.");
 }
Exemple #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;
 }
 public void Init(IPALogger logger, IPAConfig conf)
 {
     Instance        = this;
     Log             = logger;
     Config.Instance = conf.Generated <Config>();
     Log.Info($"Beat-360fyer-Plugin initialized.");
 }
Exemple #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>();
 }
Exemple #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>();
        }
Exemple #6
0
 public void InitWithConfig(IPA.Config.Config conf)
 {
     Configuration.PluginConfig.Instance = conf.Generated <Configuration.PluginConfig>();
     Log.Debug("Config loaded");
 }
Exemple #7
0
 public Plugin(IPALogger logger, IPA.Config.Config config)
 {
     Instance = this;
     log      = logger;
     PluginConfig.Instance = config.Generated <PluginConfig>();
 }
Exemple #8
0
 public void InitWithConfig(IPA.Config.Config conf)
 {
     UI.Views.PluginConfig.Instance = conf.Generated <UI.Views.PluginConfig>();
     Logger.log.Debug("Config loaded");
 }
 public void Init(IPALogger logger, IPA.Config.Config config, PluginMetadata metadata)
 {
     Instance = this;
     MPIConfig.Init(config);
     Logger.log = logger;
 }