Decompiled source of UWlessStretchedHUD v1.0.0

plugins/UWlessstretchedHUD.dll

Decompiled 2 days 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", "0.1.0")]
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)
			((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);
		}
	}

	public const string modGUID = "UWlessstretchedHUD";

	public const string modName = "UWlessstretchedHUD";

	public const string modVersion = "0.1.0";

	public static Plugin instance;

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

	public static ManualLogSource mls;

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