Skip to content

Commit

Permalink
All features except controller colliders have been implemented by Mai…
Browse files Browse the repository at this point in the history
…nGameVR repo. Removed that code from here
  • Loading branch information
thojmr committed Aug 7, 2021
1 parent db4213f commit 4d4a345
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 383 deletions.
19 changes: 0 additions & 19 deletions KK_VREnhancement/GUI/VREnhancementPlugin.Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ namespace KK_VREnhancement
{
public partial class VRPlugin
{
public static ConfigEntry<bool> MoveWithTalkScene { get; private set; }
public static ConfigEntry<bool> EnableControllerColliders { get; private set; }
public static ConfigEntry<bool> SqueezeToTurn { get; private set; }

Expand All @@ -15,10 +14,6 @@ public partial class VRPlugin
/// </summary>
public void PluginConfigInit()
{
MoveWithTalkScene = Config.Bind<bool>("VR General", "Enable move with scene", true,
"Will move the VR camera view in front of the heroine as they move around during TalkScene/HScene. This mimics the default KK behavior. \n\nWhen disabled, you stay put as the heroine moves around.");
MoveWithTalkScene.SettingChanged += MoveWithTalkScene_SettingsChanged;

EnableControllerColliders = Config.Bind<bool>("VR General", "Enable VR controller collision (boop!)", true,
"Allows collision of VR controllers with all dynamic bones.\n\nBoop!");
EnableControllerColliders.SettingChanged += EnableControllerColliders_SettingsChanged;
Expand All @@ -29,20 +24,6 @@ public void PluginConfigInit()
}


internal void MoveWithTalkScene_SettingsChanged(object sender, System.EventArgs e)
{
if (!MoveWithTalkScene.Value)
{
VRCameraController.ClearLastPosition();
VRCameraHooks.UnInitHooks(GUID + "_camera");
}
else
{
VRCameraHooks.InitHooks();
}
}


internal void EnableControllerColliders_SettingsChanged(object sender, System.EventArgs e)
{
if (!EnableControllerColliders.Value)
Expand Down
5 changes: 0 additions & 5 deletions KK_VREnhancement/KK_VREnhancement.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,10 @@

<ItemGroup>
<Compile Include="VREnhancementPlugin.cs" />
<Compile Include="VRCamera.Hooks.cs" />
<Compile Include="VRCamera.cs" />
<Compile Include="VRCamera.GameCustomFunctionController.cs" />
<Compile Include="VRCamera.Helper.cs" />
<Compile Include="VRController.Collider.Helper.cs" />
<Compile Include="VRController.Hooks.cs" />
<Compile Include="VRController.Collider.cs" />
<Compile Include="VRController.Collider.GameCustomFunctionController.cs" />
<Compile Include="VRController.Input.cs" />
<Compile Include="GUI/VREnhancementPlugin.Config.cs" />
<Compile Include="..\..\#DebugTools\DebugTools.cs" />
</ItemGroup>
Expand Down
37 changes: 0 additions & 37 deletions KK_VREnhancement/VRCamera.GameCustomFunctionController.cs

This file was deleted.

30 changes: 0 additions & 30 deletions KK_VREnhancement/VRCamera.Helper.cs

This file was deleted.

133 changes: 0 additions & 133 deletions KK_VREnhancement/VRCamera.Hooks.cs

This file was deleted.

105 changes: 0 additions & 105 deletions KK_VREnhancement/VRCamera.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ protected override void OnGameLoad(GameSaveLoadEventArgs args)

//Set up controller colliders when main game starts
VRControllerColliderHelper.TriggerHelperCoroutine();
VRControllerInput.OnGameLoad();
}
}
}
Loading

0 comments on commit 4d4a345

Please sign in to comment.