Skip to content

Commit

Permalink
If you dont want the Cam2 Tab you can hide it 👍👍
Browse files Browse the repository at this point in the history
  • Loading branch information
kinsi55 committed Sep 30, 2024
1 parent aef7ba7 commit f05e9d2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
8 changes: 0 additions & 8 deletions Managers/CamManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,6 @@ public static void Init() {
ScenesManager.settings.Load();

XRSettings.gameViewRenderMode = GameViewRenderMode.None;

new GameObject("Cam2_Positioner", typeof(CamPositioner));

// This Method is intially already "Late" Called, so we gotta attach an Eventhandler and call it ourselves here
UI.SpaghettiUI.Init();
MainMenuAwaiter.MainMenuInitializing += delegate {
UI.SpaghettiUI.Init();
};
}

private static void LoadCameras(bool reload = false) {
Expand Down
7 changes: 6 additions & 1 deletion Plugin.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Camera2.HarmonyPatches;
using BeatSaberMarkupLanguage.Util;
using Camera2.HarmonyPatches;
using Camera2.Managers;
using Camera2.Middlewares;
using Camera2.Utils;
Expand Down Expand Up @@ -78,6 +79,10 @@ public void OnApplicationStart() {
if(ScoresaberUtil.Reflect())
SDK.ReplaySources.Register(new ScoresaberUtil.SSReplaySource());
});

MainMenuAwaiter.MainMenuInitializing += delegate {
UI.SpaghettiUI.Init();
};
}

[OnExit]
Expand Down
3 changes: 1 addition & 2 deletions UI/SpaghettiUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ class SpaghettiUI {
public static void Init() {
MenuButtons.Instance.RegisterButton(new MenuButton("Camera2", "This is a Camera plugin 2 4Head", ShowFlow, true));

if(ScenesManager.settings.customScenes.Count > 0)
GameplaySetup.Instance.AddTab("Camera2", "Camera2.UI.Views.customScenesList.bsml", scenesSwitchUI);
GameplaySetup.Instance.AddTab("Camera2", "Camera2.UI.Views.customScenesList.bsml", scenesSwitchUI);
}

private static void ShowFlow() {
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"id": "Camera2",
"name": "Camera2",
"author": "Kinsi55",
"version": "0.6.113",
"version": "0.6.114",
"description": "If Camera Plus is so good, why is there no Camera Plus 2?",
"gameVersion": "1.37.4",
"dependsOn": {
Expand Down

0 comments on commit f05e9d2

Please sign in to comment.