Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of AlwaysShowClock v1.0.0
plugins/AlwaysShowClock/AlwaysShowClock.dll
Decompiled 2 years agousing System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using HarmonyLib; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("AccurateScan")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("AccurateScan")] [assembly: AssemblyCopyright("Copyright © 2023")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("e3d271c3-e3fe-4966-88e7-6dc6e8e47ce7")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: AssemblyVersion("1.0.0.0")] namespace AlwaysShowClock { [BepInPlugin("AUniqueName.AlwaysShowClock", "AlwaysShowClock", "1.0.0")] public class ScanFixer : BaseUnityPlugin { private const string modGUID = "AUniqueName.AlwaysShowClock"; private const string modName = "AlwaysShowClock"; private const string modVersion = "1.0.0"; private readonly Harmony harmony = new Harmony("AUniqueName.AlwaysShowClock"); private void Awake() { harmony.PatchAll(Assembly.GetExecutingAssembly()); } } } namespace AlwaysShowClock.Patches { [HarmonyPatch] internal class HUDManagerPatch { [HarmonyPrefix] [HarmonyPatch(typeof(HUDManager), "Update")] private static bool Update(ref HUDElement ___Clock) { ___Clock.targetAlpha = 1f; return true; } } }