[ChatBoxExtensions] Updated for the latest API.

This commit is contained in:
kafeijao 2023-04-26 19:38:28 +01:00
parent 62eb612d73
commit 37ad5a8f9c
No known key found for this signature in database
GPG key ID: E99978723E454B4C
9 changed files with 88 additions and 40 deletions

View file

@ -9,14 +9,14 @@ internal class ChilloutVRBaseCommands : CommandBase
public static void RegisterCommands()
{
Commands.RegisterCommand("respawn",
onCommandSent: (message, sound) =>
onCommandSent: (message, sound, displayMsg) =>
{
LocalCommandIgnoreOthers(message, args =>
{
RootLogic.Instance.Respawn();
});
},
onCommandReceived: (sender, message, sound) =>
onCommandReceived: (sender, message, sound, displayMsg) =>
{
RemoteCommandListenForAll(message, (args) =>
{
@ -25,14 +25,14 @@ internal class ChilloutVRBaseCommands : CommandBase
});
Commands.RegisterCommand("mute",
onCommandSent: (message, sound) =>
onCommandSent: (message, sound, displayMsg) =>
{
LocalCommandIgnoreOthers(message, args =>
{
Audio.SetMicrophoneActive(true);
});
},
onCommandReceived: (sender, message, sound) =>
onCommandReceived: (sender, message, sound, displayMsg) =>
{
RemoteCommandListenForAll(message, args =>
{
@ -40,4 +40,4 @@ internal class ChilloutVRBaseCommands : CommandBase
});
});
}
}
}