Initial commit
This commit is contained in:
commit
c7b2028f4d
20 changed files with 898 additions and 0 deletions
15
Patches/CarSpawnListener_OnEnable_Patch.cs
Normal file
15
Patches/CarSpawnListener_OnEnable_Patch.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using HarmonyLib;
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace AudioSettings.Patches
|
||||
{
|
||||
[HarmonyPatch(typeof(CarSpawnListener), "OnEnable")]
|
||||
public static class CarSpawnListener_OnEnable_Patch
|
||||
{
|
||||
public static void Postfix(CarSpawnListener __instance)
|
||||
{
|
||||
Plugin.CarVolume.Add(__instance.GetComponent<AudioSource>(), 0.1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
6
Patches/SFXInstance_Patches.cs
Normal file
6
Patches/SFXInstance_Patches.cs
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
namespace AudioSettings.Patches
|
||||
{
|
||||
public static partial class SFXInstance_Patches
|
||||
{
|
||||
}
|
||||
}
|
||||
17
Patches/SFXInstance_PlayCheckoutSFX_Patch.cs
Normal file
17
Patches/SFXInstance_PlayCheckoutSFX_Patch.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using HarmonyLib;
|
||||
using UnityEngine;
|
||||
|
||||
namespace AudioSettings.Patches
|
||||
{
|
||||
public static partial class SFXInstance_Patches
|
||||
{
|
||||
[HarmonyPatch(typeof(SFXInstance), "PlayCheckoutSFX")]
|
||||
public static class SFXInstance_PlayCheckoutSFX_Patch
|
||||
{
|
||||
public static void Prefix(SFXInstance __instance)
|
||||
{
|
||||
Plugin.CheckoutCompleteVolume.Add(__instance.transform.GetChild(1).GetComponent<AudioSource>(), 0.3f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
17
Patches/SFXInstance_PlayScanningProductSFX_Patch.cs
Normal file
17
Patches/SFXInstance_PlayScanningProductSFX_Patch.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using HarmonyLib;
|
||||
using UnityEngine;
|
||||
|
||||
namespace AudioSettings.Patches
|
||||
{
|
||||
public static partial class SFXInstance_Patches
|
||||
{
|
||||
[HarmonyPatch(typeof(SFXInstance), "PlayScanningProductSFX")]
|
||||
public static class SFXInstance_PlayScanningProductSFX_Patch
|
||||
{
|
||||
public static void Prefix(SFXInstance __instance)
|
||||
{
|
||||
Plugin.ScanningProductVolume.Add(__instance.transform.GetChild(0).GetComponent<AudioSource>(), 0.3f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
6
Patches/SFXManager_Patches.cs
Normal file
6
Patches/SFXManager_Patches.cs
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
namespace AudioSettings.Patches
|
||||
{
|
||||
public static partial class SFXManager_Patches
|
||||
{
|
||||
}
|
||||
}
|
||||
17
Patches/SFXManager_PlayCashRegister_Patch.cs
Normal file
17
Patches/SFXManager_PlayCashRegister_Patch.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using HarmonyLib;
|
||||
|
||||
namespace AudioSettings.Patches
|
||||
{
|
||||
public static partial class SFXManager_Patches
|
||||
{
|
||||
[HarmonyPatch(typeof(SFXManager), "PlayCashRegister")]
|
||||
public static class SFXManager_PlayCashRegister_Patch
|
||||
{
|
||||
public static void Prefix(SFXManager __instance)
|
||||
{
|
||||
Plugin.CashRegisterVolume.Add(__instance.m_CashRegisterOpen, 0.7f);
|
||||
Plugin.CashRegisterVolume.Add(__instance.m_CashRegisterClose, 0.7f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
16
Patches/SFXManager_PlayCheckoutSFX_Patch.cs
Normal file
16
Patches/SFXManager_PlayCheckoutSFX_Patch.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
using HarmonyLib;
|
||||
|
||||
namespace AudioSettings.Patches
|
||||
{
|
||||
public static partial class SFXManager_Patches
|
||||
{
|
||||
[HarmonyPatch(typeof(SFXManager), "PlayCheckoutSFX")]
|
||||
public static class SFXManager_PlayCheckoutSFX_Patch
|
||||
{
|
||||
public static void Prefix(SFXManager __instance)
|
||||
{
|
||||
Plugin.CheckoutCompleteVolume.Add(__instance.m_Checkout, 0.7f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
16
Patches/SFXManager_PlayCheckoutWarningSFX_Patch.cs
Normal file
16
Patches/SFXManager_PlayCheckoutWarningSFX_Patch.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
using HarmonyLib;
|
||||
|
||||
namespace AudioSettings.Patches
|
||||
{
|
||||
public static partial class SFXManager_Patches
|
||||
{
|
||||
[HarmonyPatch(typeof(SFXManager), "PlayCheckoutWarningSFX")]
|
||||
public static class SFXManager_PlayCheckoutWarningSFX_Patch
|
||||
{
|
||||
public static void Prefix(SFXManager __instance)
|
||||
{
|
||||
Plugin.CheckoutWarningVolume.Add(__instance.m_CheckoutWarning, 0.5f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
18
Patches/SFXManager_PlayCoinSFX_Patch.cs
Normal file
18
Patches/SFXManager_PlayCoinSFX_Patch.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
using HarmonyLib;
|
||||
|
||||
namespace AudioSettings.Patches
|
||||
{
|
||||
public static partial class SFXManager_Patches
|
||||
{
|
||||
[HarmonyPatch(typeof(SFXManager), "PlayCoinSFX")]
|
||||
[HarmonyPatch(typeof(SFXManager), "PlayMoneyPaperSFX")]
|
||||
public static class SFXManager_PlayCoinSFX_Patch
|
||||
{
|
||||
public static void Prefix(SFXManager __instance)
|
||||
{
|
||||
Plugin.TakingChangeVolume.Add(__instance.m_CoinSFX, 1);
|
||||
Plugin.TakingChangeVolume.Add(__instance.m_MoneyPaperSFX, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
18
Patches/SFXManager_PlayDroppingBoxSFX_Patch.cs
Normal file
18
Patches/SFXManager_PlayDroppingBoxSFX_Patch.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
using HarmonyLib;
|
||||
|
||||
namespace AudioSettings.Patches
|
||||
{
|
||||
public static partial class SFXManager_Patches
|
||||
{
|
||||
[HarmonyPatch(typeof(SFXManager), "PlayDroppingBoxSFX")]
|
||||
[HarmonyPatch(typeof(SFXManager), "PlayPickingUpBoxSFX")]
|
||||
public static class SFXManager_PlayDroppingBoxSFX_Patch
|
||||
{
|
||||
public static void Prefix(SFXManager __instance)
|
||||
{
|
||||
Plugin.BoxSoundsVolume.Add(__instance.m_DroppingBoxSFX, 0.8f);
|
||||
Plugin.BoxSoundsVolume.Add(__instance.m_PickingUpBox, 0.2f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
16
Patches/SFXManager_PlayMouseClickSFX_Patch.cs
Normal file
16
Patches/SFXManager_PlayMouseClickSFX_Patch.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
using HarmonyLib;
|
||||
|
||||
namespace AudioSettings.Patches
|
||||
{
|
||||
public static partial class SFXManager_Patches
|
||||
{
|
||||
[HarmonyPatch(typeof(SFXManager), "PlayMouseClickSFX")]
|
||||
public static class SFXManager_PlayMouseClickSFX_Patch
|
||||
{
|
||||
public static void Prefix(SFXManager __instance)
|
||||
{
|
||||
Plugin.MouseClickVolume.Add(__instance.m_MouseClick, 0.5f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
16
Patches/SFXManager_PlayPlacingProductSFX_Patch.cs
Normal file
16
Patches/SFXManager_PlayPlacingProductSFX_Patch.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
using HarmonyLib;
|
||||
|
||||
namespace AudioSettings.Patches
|
||||
{
|
||||
public static partial class SFXManager_Patches
|
||||
{
|
||||
[HarmonyPatch(typeof(SFXManager), "PlayPlacingProductSFX")]
|
||||
public static class SFXManager_PlayPlacingProductSFX_Patch
|
||||
{
|
||||
public static void Prefix(SFXManager __instance)
|
||||
{
|
||||
Plugin.MovingProductVolume.Add(__instance.m_PlacingProduct, 0.7f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
16
Patches/SFXManager_PlayScanningProductSFX_Patch.cs
Normal file
16
Patches/SFXManager_PlayScanningProductSFX_Patch.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
using HarmonyLib;
|
||||
|
||||
namespace AudioSettings.Patches
|
||||
{
|
||||
public static partial class SFXManager_Patches
|
||||
{
|
||||
[HarmonyPatch(typeof(SFXManager), "PlayScanningProductSFX")]
|
||||
public static class SFXManager_PlayScanningProductSFX_Patch
|
||||
{
|
||||
public static void Prefix(SFXManager __instance)
|
||||
{
|
||||
Plugin.ScanningProductVolume.Add(__instance.m_ScanningProduct, 0.2f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
17
Patches/SFXManager_PlaySwitchSFX_Patch.cs
Normal file
17
Patches/SFXManager_PlaySwitchSFX_Patch.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using HarmonyLib;
|
||||
|
||||
namespace AudioSettings.Patches
|
||||
{
|
||||
public static partial class SFXManager_Patches
|
||||
{
|
||||
[HarmonyPatch(typeof(SFXManager), "PlaySwitchSFX")]
|
||||
public static class SFXManager_PlaySwitchSFX_Patch
|
||||
{
|
||||
public static void Prefix(SFXManager __instance)
|
||||
{
|
||||
Plugin.LightSwitchVolume.Add(__instance.m_SwitchOn, 1);
|
||||
Plugin.LightSwitchVolume.Add(__instance.m_SwitchOff, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue