Exemplo n.º 1
0
 public void Init(IPALogger logger, Conf conf)
 {
     Instance = this;
     Log      = logger;
     Config   = conf.Generated <Config>();
     Log.Info("Lighting+ initialized.");
 }
Exemplo n.º 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;
 }
Exemplo n.º 3
0
 public void Init(IPALogger logger, IPAConfig conf)
 {
     Instance        = this;
     Log             = logger;
     Config.Instance = conf.Generated <Config>();
     Log.Info($"Beat-360fyer-Plugin initialized.");
 }
Exemplo n.º 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>();
 }
Exemplo n.º 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>();
        }
Exemplo n.º 6
0
 public void InitWithConfig(IPA.Config.Config conf)
 {
     Configuration.PluginConfig.Instance = conf.Generated <Configuration.PluginConfig>();
     Log.Debug("Config loaded");
 }
Exemplo n.º 7
0
 public Plugin(IPALogger logger, IPA.Config.Config config)
 {
     Instance = this;
     log      = logger;
     PluginConfig.Instance = config.Generated <PluginConfig>();
 }
Exemplo n.º 8
0
 public static void Load()
 {
     LoaderConfig = Config.GetConfigFor(IPAName, "json");
     Instance     = LoaderConfig.Generated <SelfConfig>();
     Instance.OnReload();
 }
Exemplo n.º 9
0
 public void InitWithConfig(IPA.Config.Config conf)
 {
     UI.Views.PluginConfig.Instance = conf.Generated <UI.Views.PluginConfig>();
     Logger.log.Debug("Config loaded");
 }