Ejemplo n.º 1
0
        public void OnDisabled()
        {
            Harmony?.UnpatchAll();
            Harmony = null;

            _host = null;

            GameplaySetup.instance.RemoveTab("SongInfoViewer");
        }
Ejemplo n.º 2
0
        public void OnEnabled()
        {
            Harmony = new Harmony("dev.auros.songinfoviewer");
            Harmony.PatchAll(Assembly.GetExecutingAssembly());

            BSEvents.lateMenuSceneLoadedFresh += OnLateMenuSceneLoadedFresh;
            _host = new SIVHost();

            GameplaySetup.instance.AddTab("SongInfoViewer", "SongInfoViewer.song-info-view.bsml", _host);
        }
Ejemplo n.º 3
0
        public void OnDisabled()
        {
            Harmony?.UnpatchAll();
            Harmony = null;

            BSEvents.lateMenuSceneLoadedFresh -= OnLateMenuSceneLoadedFresh;
            _host = null;

            GameplaySetup.instance.RemoveTab("SongInfoViewer");
        }
Ejemplo n.º 4
0
        public void OnEnabled()
        {
            Harmony = new Harmony("dev.auros.songinfoviewer");
            Harmony.PatchAll(Assembly.GetExecutingAssembly());

            BSEvents.lateMenuSceneLoadedFresh += delegate(ScenesTransitionSetupDataSO so)
            {
                var siv = new GameObject("Song Info Viewer").AddComponent <SongInfoViewer>();
                siv.SetHost(_host);
            };
            _host = new SIVHost();

            GameplaySetup.instance.AddTab("SongInfoViewer", "SongInfoViewer.song-info-view.bsml", _host);
        }
Ejemplo n.º 5
0
 public void SetHost(SIVHost host)
 => _host = host;