Decompiled source of TimeScaleInvarientGridAnimation v1.0.0

Mods/TimeScaleInvarientGridAnimation.dll

Decompiled 2 days ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using HarmonyLib;
using Il2CppSLZ.Bonelab;
using MelonLoader;
using TimeScaleInvarientGridAnimation;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyDescription("Multiplies default value of the monobehaviour that animates menus opening by the timescale.")]
[assembly: AssemblyCopyright("Developed by doge15567")]
[assembly: AssemblyFileVersion("1.0.0")]
[assembly: AssemblyTrademark("")]
[assembly: MelonInfo(typeof(Mod), "TimeScaleInvarientGridAnimation", "1.0.0", "doge15567", "https://thunderstore.io/c/bonelab/p/doge15567/TimeScaleInvarientGridAnimation/")]
[assembly: MelonColor(255, 255, 255, 255)]
[assembly: MelonGame("Stress Level Zero", "BONELAB")]
[assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace TimeScaleInvarientGridAnimation;

internal class Mod : MelonMod
{
	internal const string Name = "TimeScaleInvarientGridAnimation";

	internal const string Description = "Multiplies default value of the monobehaviour that animates menus opening by the timescale.";

	internal const string Author = "doge15567";

	internal const string Company = "";

	internal const string Version = "1.0.0";

	internal const string DownloadLink = "https://thunderstore.io/c/bonelab/p/doge15567/TimeScaleInvarientGridAnimation/";
}
[HarmonyPatch(typeof(UIGridEnable), "FXChange")]
public static class UIGridEnablePatch
{
	public static void Prefix(UIGridEnable __instance)
	{
		float timeScale = Time.timeScale;
		float timeToSpace = 0.25f * timeScale;
		__instance.timeToSpace = timeToSpace;
	}
}