mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-03 06:49:22 +00:00
[PropUndoButton] Fixes for 2025r180
This commit is contained in:
parent
e378a717d3
commit
aaeb187b9e
3 changed files with 13 additions and 13 deletions
|
@ -16,17 +16,17 @@ namespace NAK.PropUndoButton;
|
||||||
|
|
||||||
public class PropUndoButton : MelonMod
|
public class PropUndoButton : MelonMod
|
||||||
{
|
{
|
||||||
public static readonly MelonPreferences_Category Category =
|
private static readonly MelonPreferences_Category Category =
|
||||||
MelonPreferences.CreateCategory(nameof(PropUndoButton));
|
MelonPreferences.CreateCategory(nameof(PropUndoButton));
|
||||||
|
|
||||||
public static readonly MelonPreferences_Entry<bool> EntryEnabled =
|
private static readonly MelonPreferences_Entry<bool> EntryEnabled =
|
||||||
Category.CreateEntry("Enabled", true, description: "Toggle Undo Prop Button.");
|
Category.CreateEntry("Enabled", true, description: "Toggle Undo Prop Button.");
|
||||||
|
|
||||||
public static readonly MelonPreferences_Entry<bool> EntryUseSFX =
|
private static readonly MelonPreferences_Entry<bool> EntryUseSFX =
|
||||||
Category.CreateEntry("Use SFX", true,
|
Category.CreateEntry("Use SFX", true,
|
||||||
description: "Toggle audio queues for prop spawn, undo, redo, and warning.");
|
description: "Toggle audio queues for prop spawn, undo, redo, and warning.");
|
||||||
|
|
||||||
internal static List<DeletedProp> deletedProps = new();
|
private static readonly List<DeletedProp> deletedProps = [];
|
||||||
|
|
||||||
// audio clip names, InterfaceAudio adds "PropUndo_" prefix
|
// audio clip names, InterfaceAudio adds "PropUndo_" prefix
|
||||||
private const string sfx_spawn = "PropUndo_sfx_spawn";
|
private const string sfx_spawn = "PropUndo_sfx_spawn";
|
||||||
|
@ -92,11 +92,11 @@ public class PropUndoButton : MelonMod
|
||||||
if (!File.Exists(clipPath))
|
if (!File.Exists(clipPath))
|
||||||
{
|
{
|
||||||
// read the clip data from embedded resources
|
// read the clip data from embedded resources
|
||||||
byte[] clipData = null;
|
byte[] clipData;
|
||||||
var resourceName = "PropUndoButton.SFX." + clipName;
|
var resourceName = "PropUndoButton.SFX." + clipName;
|
||||||
using (Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(resourceName))
|
using (Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(resourceName))
|
||||||
{
|
{
|
||||||
clipData = new byte[stream.Length];
|
clipData = new byte[stream!.Length];
|
||||||
stream.Read(clipData, 0, clipData.Length);
|
stream.Read(clipData, 0, clipData.Length);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ using System.Reflection;
|
||||||
downloadLink: "https://github.com/NotAKidoS/NAK_CVR_Mods/tree/main/UndoPropButton"
|
downloadLink: "https://github.com/NotAKidoS/NAK_CVR_Mods/tree/main/UndoPropButton"
|
||||||
)]
|
)]
|
||||||
|
|
||||||
[assembly: MelonGame("Alpha Blend Interactive", "ChilloutVR")]
|
[assembly: MelonGame("ChilloutVR", "ChilloutVR")]
|
||||||
[assembly: MelonPlatform(MelonPlatformAttribute.CompatiblePlatforms.WINDOWS_X64)]
|
[assembly: MelonPlatform(MelonPlatformAttribute.CompatiblePlatforms.WINDOWS_X64)]
|
||||||
[assembly: MelonPlatformDomain(MelonPlatformDomainAttribute.CompatibleDomains.MONO)]
|
[assembly: MelonPlatformDomain(MelonPlatformDomainAttribute.CompatibleDomains.MONO)]
|
||||||
[assembly: MelonColor(255, 246, 25, 99)] // red-pink
|
[assembly: MelonColor(255, 246, 25, 99)] // red-pink
|
||||||
|
@ -27,6 +27,6 @@ using System.Reflection;
|
||||||
namespace NAK.PropUndoButton.Properties;
|
namespace NAK.PropUndoButton.Properties;
|
||||||
internal static class AssemblyInfoParams
|
internal static class AssemblyInfoParams
|
||||||
{
|
{
|
||||||
public const string Version = "1.0.3";
|
public const string Version = "1.0.4";
|
||||||
public const string Author = "NotAKidoS";
|
public const string Author = "NotAKidoS";
|
||||||
}
|
}
|
|
@ -1,9 +1,9 @@
|
||||||
{
|
{
|
||||||
"_id": 147,
|
"_id": 147,
|
||||||
"name": "PropUndoButton",
|
"name": "PropUndoButton",
|
||||||
"modversion": "1.0.3",
|
"modversion": "1.0.4",
|
||||||
"gameversion": "2025r179",
|
"gameversion": "2025r180",
|
||||||
"loaderversion": "0.6.1",
|
"loaderversion": "0.7.2",
|
||||||
"modtype": "Mod",
|
"modtype": "Mod",
|
||||||
"author": "NotAKidoS",
|
"author": "NotAKidoS",
|
||||||
"description": "**CTRL+Z** to undo latest spawned prop. **CTRL+SHIFT+Z** to redo deleted prop.\nIncludes optional SFX for prop spawn, undo, redo, warn, and deny, which can be disabled in settings.\n\nYou can replace the sfx in 'ChilloutVR\\ChilloutVR_Data\\StreamingAssets\\Cohtml\\UIResources\\GameUI\\mods\\PropUndo\\audio'.",
|
"description": "**CTRL+Z** to undo latest spawned prop. **CTRL+SHIFT+Z** to redo deleted prop.\nIncludes optional SFX for prop spawn, undo, redo, warn, and deny, which can be disabled in settings.\n\nYou can replace the sfx in 'ChilloutVR\\ChilloutVR_Data\\StreamingAssets\\Cohtml\\UIResources\\GameUI\\mods\\PropUndo\\audio'.",
|
||||||
|
@ -16,8 +16,8 @@
|
||||||
"requirements": [
|
"requirements": [
|
||||||
"None"
|
"None"
|
||||||
],
|
],
|
||||||
"downloadlink": "https://github.com/NotAKidoS/NAK_CVR_Mods/releases/download/r46/PropUndoButton.dll",
|
"downloadlink": "https://github.com/NotAKidoS/NAK_CVR_Mods/releases/download/r47/PropUndoButton.dll",
|
||||||
"sourcelink": "https://github.com/NotAKidoS/NAK_CVR_Mods/tree/main/PropUndoButton/",
|
"sourcelink": "https://github.com/NotAKidoS/NAK_CVR_Mods/tree/main/PropUndoButton/",
|
||||||
"changelog": "- Recompiled for 2025r179",
|
"changelog": "- Fixes for 2025r180",
|
||||||
"embedcolor": "#00FFFF"
|
"embedcolor": "#00FFFF"
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue