Skip to content
This repository was archived by the owner on Mar 12, 2022. It is now read-only.

Commit c6aceff

Browse files
authored
Merge pull request #8 from ItsMeZeppelin/master
Fixed pin button and filter issues
2 parents 26b6f0a + 070b81b commit c6aceff

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

Main.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static class ModBuildInfo {
1717
public const string Name = "DesktopCamera";
1818
public const string Author = "nitro.";
1919
public const string Company = null;
20-
public const string Version = "1.0.7";
20+
public const string Version = "1.0.8";
2121
public const string DownloadLink = "https://github.com/nitrog0d/DesktopCamera/releases/latest/download/DesktopCamera.dll";
2222
public const string GameDeveloper = "VRChat";
2323
public const string Game = "VRChat";
@@ -180,7 +180,8 @@ private IEnumerator Setup() {
180180
}
181181
switchPinButton.setText("Cycle Pin\n<color=#845bff>" + pin + "</color>");
182182
// Eventually change this to the same way I do the other buttons, I suppose it changes every VRChat update so yeah as soon as possible please Lucas...
183-
VRCUtils.GetUserCameraController().Method_Public_Void_Int32_3(newPin);
183+
// It seemed that setting method to '3' made clicking on pins button crash the game
184+
VRCUtils.GetUserCameraController().Method_Public_Void_Int32_0(newPin);
184185
}
185186
}));
186187

@@ -294,7 +295,8 @@ private IEnumerator Setup() {
294295
button.setAction((Action)(() => {
295296
if (Settings.cameraEnabled) {
296297
// Eventually change this to the same way I do the other buttons, I suppose it changes every VRChat update so yeah as soon as possible please Lucas...
297-
VRCUtils.GetUserCameraController().Method_Public_Void_Int32_0(filter.Value);
298+
// Setting method to '0' makes the filter not work for some reason [thanks to my friend for helping me with this]
299+
VRCUtils.GetUserCameraController().Method_Public_Void_Int32_4(filter.Value);
298300
}
299301
}));
300302
position++;

Utils/VRCUtils.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ public static VRCUiManager GetVRCUiManager() {
6464
}
6565

6666
public static void QueueHudMessage(string message) {
67-
GetVRCUiManager().Method_Public_Void_String_2(message);
67+
// Old method was somehow broken [thanks to my friend for helping me with this]
68+
GetVRCUiManager().Method_Public_Boolean_String_2(message);
6869
}
6970
}
7071
}

0 commit comments

Comments
 (0)