Decompiled source of RumbleSexMod v1.0.0

Mods/RumbleSexMod.dll

Decompiled 5 months ago
using System;
using System.Collections;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using Il2CppRUMBLE.Interactions.InteractionBase;
using Il2CppTMPro;
using MelonLoader;
using RumbleModdingAPI.RMAPI;
using RumbleSexMod;
using UnityEngine;
using UnityEngine.Events;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: MelonInfo(typeof(Core), "RumbleSexMod", "1.0.0", "TacoSlayer36", null)]
[assembly: MelonGame("Buckethead Entertainment", "RUMBLE")]
[assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
[assembly: AssemblyCompany("RumbleSexMod")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("RumbleSexMod")]
[assembly: AssemblyTitle("RumbleSexMod")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace RumbleSexMod;

public static class BuildInfo
{
	public const string Name = "RumbleSexMod";

	public const string Author = "TacoSlayer36";

	public const string Version = "1.0.0";

	public const string Description = "Rumble Sex Mod";

	public const string Company = "";
}
public class Core : MelonMod
{
	public override void OnSceneWasLoaded(int buildIndex, string sceneName)
	{
		if (sceneName == "Gym")
		{
			ModifySettingsBoard(MenuSlab.GetGameObject());
		}
		if (sceneName == "Park")
		{
			MelonCoroutines.Start(_());
		}
		static IEnumerator _()
		{
			yield return (object)new WaitForSeconds(1.5f);
			ModifySettingsBoard(GameObject.Find("Settings Clone"));
		}
	}

	private static void ModifySettingsBoard(GameObject settingsBoard)
	{
		//IL_003a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0062: Unknown result type (might be due to invalid IL or missing references)
		//IL_007d: Unknown result type (might be due to invalid IL or missing references)
		//IL_00c4: Unknown result type (might be due to invalid IL or missing references)
		//IL_00e4: Unknown result type (might be due to invalid IL or missing references)
		//IL_018a: Unknown result type (might be due to invalid IL or missing references)
		//IL_01ab: Unknown result type (might be due to invalid IL or missing references)
		if (!((Object)(object)settingsBoard == (Object)null))
		{
			GameObject gameObject = ((Component)settingsBoard.transform.GetChild(0)).gameObject;
			gameObject.transform.localPosition = new Vector3(1.081f, 0.291f, 0.036f);
			Transform child = gameObject.transform.GetChild(0);
			child.localPosition = new Vector3(0f, -0.07f, 0f);
			child.localScale = new Vector3(0.42f, 0.83f, 0.2f);
			GameObject gameObject2 = ((Component)gameObject.transform.GetChild(2)).gameObject;
			GameObject val = Object.Instantiate<GameObject>(gameObject2);
			val.transform.SetParent(gameObject2.transform.parent);
			val.transform.rotation = gameObject2.transform.rotation;
			val.transform.localPosition = new Vector3(0.1082f, -0.3678f, 0.109f);
			((Object)val).name = "QuitButton";
			InteractionButton componentInChildren = val.GetComponentInChildren<InteractionButton>();
			((UnityEventBase)componentInChildren.OnPressed).RemoveAllListeners();
			componentInChildren.OnPressed.AddListener(UnityAction.op_Implicit((Action)delegate
			{
				Application.Quit();
			}));
			GameObject gameObject3 = ((Component)gameObject.transform.GetChild(3).GetChild(5)).gameObject;
			GameObject val2 = Object.Instantiate<GameObject>(gameObject3);
			val2.transform.SetParent(gameObject3.transform.parent);
			val2.transform.rotation = gameObject3.transform.rotation;
			val2.transform.localPosition = new Vector3(0f, -0.3585f, 0f);
			((TMP_Text)val2.GetComponent<TextMeshPro>()).text = "QUIT GAME";
			((Object)val2).name = "QuitGameText";
		}
	}
}