From 491677eb2e40edda35c4bbdf61c7589e3c62c7e4 Mon Sep 17 00:00:00 2001 From: Gurge44 Date: Tue, 19 May 2026 14:06:43 +0200 Subject: [PATCH] a --- Main.cs | 1 - Modules/SimpleButton.cs | 13 ++++++++++++- Patches/OutroPatch.cs | 6 +++++- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/Main.cs b/Main.cs index 0fde12dfa..e24a5d6bd 100644 --- a/Main.cs +++ b/Main.cs @@ -429,7 +429,6 @@ public class Main : BasePlugin Preset18 = Config.Bind("Preset Name Options", "Preset18", "Preset_18"); Preset19 = Config.Bind("Preset Name Options", "Preset19", "Preset_19"); Preset20 = Config.Bind("Preset Name Options", "Preset20", "Preset_20"); - Config.Bind("Other", "WebhookURL", "none"); BetaBuildUrl = Config.Bind("Other", "BetaBuildURL", string.Empty); MessageWait = Config.Bind("Other", "MessageWait", 0); LastKillCooldown = Config.Bind("Other", "LastKillCooldown", (float)30); diff --git a/Modules/SimpleButton.cs b/Modules/SimpleButton.cs index bdbe43c8b..dd4c16a8d 100644 --- a/Modules/SimpleButton.cs +++ b/Modules/SimpleButton.cs @@ -7,6 +7,7 @@ namespace EHR; public class SimpleButton { private static PassiveButton BaseButton; + private static BoxCollider2D ButtonCollider; /// Creates a new button /// Parent object @@ -33,7 +34,7 @@ public class SimpleButton Label = Button.transform.Find("FontPlacer/Text_TMP").GetComponent(); NormalSprite = Button.inactiveSprites.GetComponent(); HoverSprite = Button.activeSprites.GetComponent(); - Button.GetComponent(); + ButtonCollider = Button.GetComponent(); // Center the label Transform container = Label.transform.parent; @@ -55,6 +56,16 @@ public class SimpleButton public TextMeshPro Label { get; } public SpriteRenderer NormalSprite { get; } public SpriteRenderer HoverSprite { get; } + + public Vector2 Scale + { + set => NormalSprite.size = HoverSprite.size = ButtonCollider.size = value; + } + + public float FontSize + { + set => Label.fontSize = Label.fontSizeMin = Label.fontSizeMax = value; + } public static void SetBase(PassiveButton passiveButton) { diff --git a/Patches/OutroPatch.cs b/Patches/OutroPatch.cs index 89799f484..d63b101c1 100644 --- a/Patches/OutroPatch.cs +++ b/Patches/OutroPatch.cs @@ -715,7 +715,11 @@ internal static class SetEverythingUpPatch Main.ShowResult = setToActive; ResultsToggleButton.Label.text = GetString(setToActive ? "HideResults" : "ShowResults"); }, - GetString(showInitially ? "HideResults" : "ShowResults")); + GetString(showInitially ? "HideResults" : "ShowResults")) + { + Scale = new(1.5f, 0.5f), + FontSize = 2f + }; if (Options.CurrentGameMode == CustomGameMode.Standard) {