Decompiled source of UWlessStretchedHUD v1.0.1

UWlessstretchedHUD.dll

Decompiled 4 months ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("UWlessstretchedHUD")]
[assembly: AssemblyDescription("UWlessstretchedHUD")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Sneakls")]
[assembly: AssemblyProduct("UWlessstretchedHUD")]
[assembly: AssemblyCopyright("Copyright ©  2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("70edf1be-a892-48f9-9180-41e23c73930f")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace UWlessstretchedHUD;

[BepInPlugin("UWlessstretchedHUD", "UWlessstretchedHUD", "1.0.1")]
public class Plugin : BaseUnityPlugin
{
	[HarmonyPatch(typeof(GraphicsManager), "Update")]
	public class GraphicsManagerUpdatePatch
	{
		private static void Prefix()
		{
			//IL_0029: Unknown result type (might be due to invalid IL or missing references)
			//IL_005c: Unknown result type (might be due to invalid IL or missing references)
			//IL_008f: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c2: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f5: Unknown result type (might be due to invalid IL or missing references)
			//IL_0128: Unknown result type (might be due to invalid IL or missing references)
			//IL_015b: Unknown result type (might be due to invalid IL or missing references)
			//IL_018e: Unknown result type (might be due to invalid IL or missing references)
			//IL_01c1: Unknown result type (might be due to invalid IL or missing references)
			//IL_01f4: Unknown result type (might be due to invalid IL or missing references)
			//IL_0227: Unknown result type (might be due to invalid IL or missing references)
			//IL_025a: Unknown result type (might be due to invalid IL or missing references)
			//IL_028d: Unknown result type (might be due to invalid IL or missing references)
			//IL_02c0: Unknown result type (might be due to invalid IL or missing references)
			//IL_02f3: Unknown result type (might be due to invalid IL or missing references)
			//IL_0326: Unknown result type (might be due to invalid IL or missing references)
			//IL_0359: Unknown result type (might be due to invalid IL or missing references)
			//IL_038c: Unknown result type (might be due to invalid IL or missing references)
			//IL_03b0: Unknown result type (might be due to invalid IL or missing references)
			//IL_03d4: Unknown result type (might be due to invalid IL or missing references)
			//IL_03f8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0425: Unknown result type (might be due to invalid IL or missing references)
			//IL_0449: Unknown result type (might be due to invalid IL or missing references)
			//IL_046d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0492: Unknown result type (might be due to invalid IL or missing references)
			//IL_04c2: Unknown result type (might be due to invalid IL or missing references)
			//IL_050b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0534: Unknown result type (might be due to invalid IL or missing references)
			//IL_0579: Unknown result type (might be due to invalid IL or missing references)
			//IL_05a2: Unknown result type (might be due to invalid IL or missing references)
			//IL_05ec: Unknown result type (might be due to invalid IL or missing references)
			//IL_0615: Unknown result type (might be due to invalid IL or missing references)
			//IL_065f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0688: Unknown result type (might be due to invalid IL or missing references)
			//IL_06d2: Unknown result type (might be due to invalid IL or missing references)
			//IL_06fb: Unknown result type (might be due to invalid IL or missing references)
			//IL_0745: Unknown result type (might be due to invalid IL or missing references)
			//IL_076e: Unknown result type (might be due to invalid IL or missing references)
			//IL_07b8: Unknown result type (might be due to invalid IL or missing references)
			//IL_07e1: Unknown result type (might be due to invalid IL or missing references)
			//IL_082b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0854: Unknown result type (might be due to invalid IL or missing references)
			//IL_089e: Unknown result type (might be due to invalid IL or missing references)
			//IL_08c7: Unknown result type (might be due to invalid IL or missing references)
			//IL_0911: Unknown result type (might be due to invalid IL or missing references)
			//IL_093a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0984: Unknown result type (might be due to invalid IL or missing references)
			//IL_09ad: Unknown result type (might be due to invalid IL or missing references)
			((Component)GameObject.Find("Health").gameObject.GetComponent<HealthUI>()).transform.localScale = new Vector3(0.8f, 0.9f, 1f);
			((Component)GameObject.Find("Energy").gameObject.GetComponent<EnergyUI>()).transform.localScale = new Vector3(0.8f, 0.9f, 1f);
			((Component)GameObject.Find("Haul Goal").gameObject.GetComponent<GoalUI>()).transform.localScale = new Vector3(0.8f, 0.9f, 1f);
			((Component)GameObject.Find("Tax Haul").gameObject.GetComponent<HaulUI>()).transform.localScale = new Vector3(0.8f, 0.9f, 1f);
			((Component)GameObject.Find("Stats").gameObject.GetComponent<StatsUI>()).transform.localScale = new Vector3(0.8f, 0.9f, 1f);
			((Component)GameObject.Find("Intentory").gameObject.GetComponent<InventoryUI>()).transform.localScale = new Vector3(0.8f, 1f, 1f);
			((Component)GameObject.Find("Big Message").gameObject.GetComponent<BigMessageUI>()).transform.localScale = new Vector3(0.8f, 1f, 1f);
			((Component)GameObject.Find("Item Info Extra").gameObject.GetComponent<ItemInfoExtraUI>()).transform.localScale = new Vector3(0.8f, 1f, 1f);
			((Component)GameObject.Find("Mission").gameObject.GetComponent<MissionUI>()).transform.localScale = new Vector3(0.8f, 1f, 1f);
			((Component)GameObject.Find("Arena").gameObject.GetComponent<ArenaMessageUI>()).transform.localScale = new Vector3(0.8f, 1f, 1f);
			((Component)GameObject.Find("Arena Win").gameObject.GetComponent<ArenaMessageWinUI>()).transform.localScale = new Vector3(0.8f, 1f, 1f);
			((Component)GameObject.Find("Item Info").gameObject.GetComponent<ItemInfoUI>()).transform.localScale = new Vector3(0.8f, 0.9f, 1f);
			((Component)GameObject.Find("Spectate Name").gameObject.GetComponent<SpectateNameUI>()).transform.localScale = new Vector3(0.8f, 0.9f, 1f);
			((Component)GameObject.Find("Spectate List").gameObject.GetComponent<MenuSpectateList>()).transform.localScale = new Vector3(0.8f, 0.9f, 1f);
			((Component)GameObject.Find("Currency").gameObject.GetComponent<CurrencyUI>()).transform.localScale = new Vector3(0.8f, 0.9f, 1f);
			((Component)GameObject.Find("Shop Cost").gameObject.GetComponent<ShopCostUI>()).transform.localScale = new Vector3(0.8f, 0.9f, 1f);
			((Component)GameObject.Find("BatteryUI").gameObject.GetComponent<BatteryUI>()).transform.localScale = new Vector3(0.8f, 1f, 1f);
			((Component)GameObject.Find("Tutorial").gameObject.GetComponent<TutorialUI>()).transform.localScale = new Vector3(0.8f, 1f, 1f);
			float x = ((Component)GameObject.Find("Mission").gameObject.GetComponent<MissionUI>()).transform.position.x;
			float y = ((Component)GameObject.Find("Mission").gameObject.GetComponent<MissionUI>()).transform.position.y;
			float z = ((Component)GameObject.Find("Mission").gameObject.GetComponent<MissionUI>()).transform.position.z;
			((Component)GameObject.Find("Mission").gameObject.GetComponent<MissionUI>()).transform.position = new Vector3(x - 60f, y, z);
			float x2 = ((Component)GameObject.Find("Big Message").gameObject.GetComponent<BigMessageUI>()).transform.position.x;
			float y2 = ((Component)GameObject.Find("Big Message").gameObject.GetComponent<BigMessageUI>()).transform.position.y;
			float z2 = ((Component)GameObject.Find("Big Message").gameObject.GetComponent<BigMessageUI>()).transform.position.z;
			((Component)GameObject.Find("Big Message").gameObject.GetComponent<BigMessageUI>()).transform.position = new Vector3(x2 + 20f, y2, z2);
			if (Object.op_Implicit((Object)(object)GameObject.Find("Menu Button - Continue")))
			{
				((Component)GameObject.Find("Menu Button - Continue").gameObject.GetComponent<MenuButton>()).transform.localScale = new Vector3(0.7f, 0.9f, 1f);
				GameObject.Find("Menu Button - Continue").gameObject.GetComponent<RectTransform>().sizeDelta = new Vector2(65f, 27f);
			}
			if (Object.op_Implicit((Object)(object)GameObject.Find("Menu Button - Settings")))
			{
				((Transform)GameObject.Find("Menu Button - Settings").gameObject.GetComponent<RectTransform>()).localScale = new Vector3(0.7f, 0.9f, 1f);
				GameObject.Find("Menu Button - Settings").gameObject.GetComponent<RectTransform>().sizeDelta = new Vector2(62f, 27f);
			}
			if (Object.op_Implicit((Object)(object)GameObject.Find("Menu Button - Self Destruct")))
			{
				((Component)GameObject.Find("Menu Button - Self Destruct").gameObject.GetComponent<MenuButton>()).transform.localScale = new Vector3(0.7f, 0.9f, 1f);
				GameObject.Find("Menu Button - Self Destruct").gameObject.GetComponent<RectTransform>().sizeDelta = new Vector2(105f, 27f);
			}
			if (Object.op_Implicit((Object)(object)GameObject.Find("Menu Button - Main Menu")))
			{
				((Component)GameObject.Find("Menu Button - Main Menu").gameObject.GetComponent<MenuButton>()).transform.localScale = new Vector3(0.7f, 0.9f, 1f);
				GameObject.Find("Menu Button - Main Menu").gameObject.GetComponent<RectTransform>().sizeDelta = new Vector2(85f, 27f);
			}
			if (Object.op_Implicit((Object)(object)GameObject.Find("Menu Button - Tutorial")))
			{
				((Component)GameObject.Find("Menu Button - Tutorial").gameObject.GetComponent<MenuButton>()).transform.localScale = new Vector3(0.7f, 0.9f, 1f);
				GameObject.Find("Menu Button - Tutorial").gameObject.GetComponent<RectTransform>().sizeDelta = new Vector2(62f, 27f);
			}
			if (Object.op_Implicit((Object)(object)GameObject.Find("Menu Button - singleplayer")))
			{
				((Component)GameObject.Find("Menu Button - singleplayer").gameObject.GetComponent<MenuButton>()).transform.localScale = new Vector3(0.7f, 0.9f, 1f);
				GameObject.Find("Menu Button - singleplayer").gameObject.GetComponent<RectTransform>().sizeDelta = new Vector2(90f, 27f);
			}
			if (Object.op_Implicit((Object)(object)GameObject.Find("Menu Button - host game")))
			{
				((Component)GameObject.Find("Menu Button - host game").gameObject.GetComponent<MenuButton>()).transform.localScale = new Vector3(0.7f, 0.9f, 1f);
				GameObject.Find("Menu Button - host game").gameObject.GetComponent<RectTransform>().sizeDelta = new Vector2(72f, 27f);
			}
			if (Object.op_Implicit((Object)(object)GameObject.Find("Menu Button - join game")))
			{
				((Component)GameObject.Find("Menu Button - join game").gameObject.GetComponent<MenuButton>()).transform.localScale = new Vector3(0.7f, 0.9f, 1f);
				GameObject.Find("Menu Button - join game").gameObject.GetComponent<RectTransform>().sizeDelta = new Vector2(72f, 27f);
			}
			if (Object.op_Implicit((Object)(object)GameObject.Find("Menu Button - Quit game")))
			{
				((Component)GameObject.Find("Menu Button - Quit game").gameObject.GetComponent<MenuButton>()).transform.localScale = new Vector3(0.7f, 0.9f, 1f);
				GameObject.Find("Menu Button - Quit game").gameObject.GetComponent<RectTransform>().sizeDelta = new Vector2(72f, 27f);
			}
			if (Object.op_Implicit((Object)(object)GameObject.Find("Menu Button - < GO BACK")))
			{
				((Component)GameObject.Find("Menu Button - < GO BACK").gameObject.GetComponent<MenuButton>()).transform.localScale = new Vector3(0.7f, 0.9f, 1f);
				GameObject.Find("Menu Button - < GO BACK").gameObject.GetComponent<RectTransform>().sizeDelta = new Vector2(83f, 35f);
			}
			if (Object.op_Implicit((Object)(object)GameObject.Find("Menu Button - NEW GAME")))
			{
				((Component)GameObject.Find("Menu Button - NEW GAME").gameObject.GetComponent<MenuButton>()).transform.localScale = new Vector3(0.7f, 0.9f, 1f);
				GameObject.Find("Menu Button - NEW GAME").gameObject.GetComponent<RectTransform>().sizeDelta = new Vector2(67f, 27f);
			}
		}
	}

	public const string modGUID = "UWlessstretchedHUD";

	public const string modName = "UWlessstretchedHUD";

	public const string modVersion = "1.0.1";

	public static Plugin instance;

	public readonly Harmony harmony = new Harmony("UWlessstretchedHUD");

	public static ManualLogSource mls;

	private void Awake()
	{
		instance = this;
		harmony.PatchAll();
	}
}