Skip to content

Commit

Permalink
forrmatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Futuremappermydud committed Sep 26, 2023
1 parent 66c3903 commit 4c6d4b1
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 41 deletions.
8 changes: 1 addition & 7 deletions Patches/SetDataPatch.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down Expand Up @@ -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");
}
Expand Down
16 changes: 1 addition & 15 deletions Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace BetterPause
{
[Plugin(RuntimeOptions.SingleStartInit)]
[Plugin(RuntimeOptions.SingleStartInit), NoEnableDisable]
public class Plugin
{
internal static Plugin Instance { get; private set; }
Expand All @@ -21,20 +21,6 @@ public Plugin(IPALogger logger, Config conf, Zenjector zenjector)
zenjector.Install<BetterPauseMenuInstaller>(Location.Menu);
zenjector.Install<BetterPauseGameInstaller>(Location.StandardPlayer);
PluginConfig.Instance = conf.Generated<PluginConfig>();

}

[OnStart]
public void OnApplicationStart()
{
Plugin.Log.Info("OnApplicationStart");
}

[OnExit]
public void OnApplicationQuit()
{

}

}
}
14 changes: 7 additions & 7 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand All @@ -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)]

Expand All @@ -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")]
7 changes: 1 addition & 6 deletions Providers/ColorResolver.cs
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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);
}

Expand Down
1 change: 0 additions & 1 deletion UI/ImageContentBehaviour.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using HMUI;
using UnityEngine;
using UnityEngine.UI;

namespace BetterPause.UI
{
Expand Down
12 changes: 7 additions & 5 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 4c6d4b1

Please sign in to comment.