Skip to content

Commit

Permalink
Added profile switching between game scene and menu scene.
Browse files Browse the repository at this point in the history
  • Loading branch information
Snow1226 committed May 19, 2020
1 parent 7c10937 commit 71b7c2f
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CameraPlus/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ private IEnumerator DelayedActiveSceneChanged(Scene from, Scene to)
{
if (_rootConfig.ProfileSceneChange)
{
if (to.name == "GameCore")
if (to.name == "GameCore" && _rootConfig.GameProfile != "")
{
_profileChanger.ProfileChange(_rootConfig.GameProfile);
}
else if (to.name == "MenuCore")
else if (to.name == "MenuCore" && _rootConfig.MenuProfile != "")
_profileChanger.ProfileChange(_rootConfig.MenuProfile);
}

Expand Down
4 changes: 2 additions & 2 deletions CameraPlus/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.1.3")]
[assembly: AssemblyFileVersion("4.1.3")]
[assembly: AssemblyVersion("4.2.0")]
[assembly: AssemblyFileVersion("4.2.0")]
2 changes: 1 addition & 1 deletion CameraPlus/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"gameVersion": "1.9.1",
"id": "CameraPlus",
"name": "CameraPlus",
"version": "4.1.3",
"version": "4.2.0",
"features": [],
"dependsOn": {
}
Expand Down
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,23 @@ To edit the settings of any camera in real time, right click on the Beat Saber g

Press <kbd>F1</kbd> to toggle the main camera between first and third person.

## RootConfig
After you run the game once, a `CameraPlus.ini` file is created within the folder Beat Saber\UserData. This file controls profile switching between menu scenes and game scenes.
Edit that file to configure Profile change:

| Parameter | Description |
|-----------------------------|----------------------------------------------------------------------------------------------|
| **ProfileSceneChange** | When set to True, profile switching is enabled in the Menu scene and Game scene. |
| **MenuProfile** | Enter the profile name to be read in the Menu scene. |
| **GameProfile** | Enter the profile name to be read in the Game scene. |
### Profile Name
[ProfaileName](https://github.com/Snow1226/CameraPlus/blob/master/ScreenShot_ProfileChange.png)
Open the Profile menu from Profile Saver in the right-click menu.
The profile name is displayed under Cullently Selected.
Please describe this in ini above.
Example) MenuProfile = "CameraPlusProfile"

## CameraConfig
After you run the game once, a `cameraplus.cfg` file is created within the folder Beat Saber\UserData\CameraPlus. Any cfg files located in this folder will be used to render additional cameras.
Edit that file to configure CameraPlus:

Expand Down
Binary file added ScreenShot_ProfileChange.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 71b7c2f

Please sign in to comment.