From 4c6d4b18c0f6c8f3704feb5902e20e5290155f95 Mon Sep 17 00:00:00 2001 From: Futuremappermydud <54294576+Futuremappermydud@users.noreply.github.com> Date: Mon, 25 Sep 2023 20:42:23 -0400 Subject: [PATCH] forrmatting --- Patches/SetDataPatch.cs | 8 +------- Plugin.cs | 16 +--------------- Properties/AssemblyInfo.cs | 14 +++++++------- Providers/ColorResolver.cs | 7 +------ UI/ImageContentBehaviour.cs | 1 - manifest.json | 12 +++++++----- 6 files changed, 17 insertions(+), 41 deletions(-) diff --git a/Patches/SetDataPatch.cs b/Patches/SetDataPatch.cs index cca4dd2..53c08ac 100644 --- a/Patches/SetDataPatch.cs +++ b/Patches/SetDataPatch.cs @@ -1,16 +1,10 @@ using BetterPause.Providers; using BetterPause.UI; using HMUI; -using IPA.Utilities; using SiraUtil.Affinity; -using System; -using System.Collections.Generic; using System.Linq; -using System.Text; -using System.Threading.Tasks; using TMPro; using UnityEngine; -using static PlayerSaveData; namespace BetterPause.Patches { @@ -38,7 +32,7 @@ public void Postfix(LevelBar __instance, IPreviewBeatmapLevel previewBeatmapLeve var con = buttons.Find("ContinueButton").gameObject; var IForgor = buttons.parent.parent.Find("IFUIContainer"); - if(IForgor != null) + if (IForgor != null) { IForgor = IForgor.Find("IFUIBackground"); } diff --git a/Plugin.cs b/Plugin.cs index b8e2288..ad09177 100644 --- a/Plugin.cs +++ b/Plugin.cs @@ -7,7 +7,7 @@ namespace BetterPause { - [Plugin(RuntimeOptions.SingleStartInit)] + [Plugin(RuntimeOptions.SingleStartInit), NoEnableDisable] public class Plugin { internal static Plugin Instance { get; private set; } @@ -21,20 +21,6 @@ public Plugin(IPALogger logger, Config conf, Zenjector zenjector) zenjector.Install(Location.Menu); zenjector.Install(Location.StandardPlayer); PluginConfig.Instance = conf.Generated(); - } - - [OnStart] - public void OnApplicationStart() - { - Plugin.Log.Info("OnApplicationStart"); - } - - [OnExit] - public void OnApplicationQuit() - { - - } - } } diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 2db09f6..46b897f 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -2,7 +2,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -// General Information about an assembly is controlled through the following +// General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("BetterPause")] @@ -14,8 +14,8 @@ [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] @@ -25,12 +25,12 @@ // Version information for an assembly consists of the following four values: // // Major Version -// Minor Version +// Minor Version // Build Number // Revision // -// You can specify all the values or you can default the Build and Revision Numbers +// You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.0.1")] -[assembly: AssemblyFileVersion("0.0.1")] +[assembly: AssemblyVersion("1.0.0")] +[assembly: AssemblyFileVersion("1.0.0")] diff --git a/Providers/ColorResolver.cs b/Providers/ColorResolver.cs index bde5d04..0454f92 100644 --- a/Providers/ColorResolver.cs +++ b/Providers/ColorResolver.cs @@ -1,9 +1,4 @@ using BetterPause.UI; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using UnityEngine; namespace BetterPause.Providers @@ -53,7 +48,7 @@ public bool IForgorInstalled public (Color, Color) GetDiffColor() { - var color = config.EnableDiffColor ? config.DiffColor: Color.white.ColorWithAlpha(0.75f); + var color = config.EnableDiffColor ? config.DiffColor : Color.white.ColorWithAlpha(0.75f); return (color, color); } diff --git a/UI/ImageContentBehaviour.cs b/UI/ImageContentBehaviour.cs index 45a493f..2c19d3d 100644 --- a/UI/ImageContentBehaviour.cs +++ b/UI/ImageContentBehaviour.cs @@ -1,6 +1,5 @@ using HMUI; using UnityEngine; -using UnityEngine.UI; namespace BetterPause.UI { diff --git a/manifest.json b/manifest.json index c9754a4..fe185e3 100644 --- a/manifest.json +++ b/manifest.json @@ -2,11 +2,13 @@ "$schema": "https://raw.githubusercontent.com/bsmg/BSIPA-MetadataFileSchema/master/Schema.json", "id": "BetterPause", "name": "BetterPause", - "author": "", - "version": "0.0.1", - "description": "", - "gameVersion": "1.18.3", + "author": "FutureMapper", + "version": "1.0.0", + "description": "Allows you to fix the uncustomizable and ugly pause menu and replace it with a better one (with too many options).", + "gameVersion": "1.29.1", "dependsOn": { - "BSIPA": "^4.2.0" + "BSIPA": "^4.2.0", + "BeatSaberMarkupLanguage": "^1.6.0", + "SiraUtil": "^3.1.0" } } \ No newline at end of file