using System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using Il2Cpp; using ManILoveFrogs; using MelonLoader; using UnityEngine; using UnityEngine.Events; using UnityEngine.UI; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: MelonInfo(typeof(global::ManILoveFrogs.ManILoveFrogs), "ManILoveFrogs", "1.0.0", "Mute", null)] [assembly: MelonGame(null, null)] [assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")] [assembly: AssemblyCompany("ManILoveFrogs")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("ManILoveFrogs")] [assembly: AssemblyTitle("ManILoveFrogs")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace ManILoveFrogs; public class ManILoveFrogs : MelonMod { private enum GiftBoxAnimState { Idle, Shaking, Opening, Done } private bool _menuOpen; private bool _giftOpened; private GameObject _menuRoot; private GiftBoxAnimState _giftState; private float _giftAnimTimer; private float _lidY; private float _lidTargetY; private float _bounceTimer; private GameObject _giftBox; private GameObject _giftLid; private GameObject _unlockPanel; private Text _statusText; private GameObject _card; private float _cardAnimTimer; private bool _cardAnimActive; private const float CARD_ANIM_DUR = 0.32f; private static readonly Color C_BG_OVERLAY = new Color(0.02f, 0.04f, 0.1f, 0.8f); private static readonly Color C_CARD_BG = new Color(0.08f, 0.1f, 0.18f, 1f); private static readonly Color C_HEADER_BG = new Color(0.05f, 0.07f, 0.14f, 1f); private static readonly Color C_ACCENT = new Color(0.42f, 0.8f, 1f, 1f); private static readonly Color C_ACCENT_DIM = new Color(0.26f, 0.52f, 0.78f, 1f); private static readonly Color C_GREEN = new Color(0.2f, 0.88f, 0.56f, 1f); private static readonly Color C_GREEN_DARK = new Color(0.1f, 0.55f, 0.34f, 1f); private static readonly Color C_GREEN_BTN_TXT = new Color(0.02f, 0.12f, 0.06f, 1f); private static readonly Color C_RED_CLOSE = new Color(0.88f, 0.26f, 0.26f, 1f); private static readonly Color C_TEXT_BRIGHT = new Color(0.92f, 0.96f, 1f, 1f); private static readonly Color C_TEXT_DIM = new Color(0.46f, 0.56f, 0.72f, 1f); private static readonly Color C_SEPARATOR = new Color(0.16f, 0.22f, 0.38f, 1f); private static readonly Color C_SHADOW = new Color(0f, 0f, 0f, 0.6f); private static readonly Color C_BOX_BODY = new Color(0.84f, 0.18f, 0.26f, 1f); private static readonly Color C_BOX_DARK = new Color(0.6f, 0.1f, 0.16f, 1f); private static readonly Color C_RIBBON = new Color(1f, 0.88f, 0.18f, 1f); private static readonly Color C_RIBBON_DARK = new Color(0.88f, 0.68f, 0.08f, 1f); private static readonly Color C_LID = new Color(0.94f, 0.22f, 0.3f, 1f); private const float CARD_W = 380f; private const float CARD_H = 480f; private const float HDR_H = 52f; private const float FOOTER_H = 46f; public override void OnUpdate() { //IL_0099: Unknown result type (might be due to invalid IL or missing references) //IL_0197: Unknown result type (might be due to invalid IL or missing references) //IL_025e: Unknown result type (might be due to invalid IL or missing references) //IL_0119: Unknown result type (might be due to invalid IL or missing references) //IL_01ea: Unknown result type (might be due to invalid IL or missing references) if (Input.GetKeyDown((KeyCode)286)) { ToggleMenu(); } if ((Object)(object)_menuRoot == (Object)null) { return; } if (_cardAnimActive && (Object)(object)_card != (Object)null) { _cardAnimTimer += Time.deltaTime; float num = Mathf.Clamp01(_cardAnimTimer / 0.32f); float num2 = 1f - Mathf.Pow(1f - num, 3f); float num3 = Mathf.Lerp(0.86f, 1f, num2); _card.transform.localScale = new Vector3(num3, num3, 1f); if (num >= 1f) { _cardAnimActive = false; } } if (_giftState == GiftBoxAnimState.Idle && (Object)(object)_giftBox != (Object)null && _giftBox.activeSelf) { _bounceTimer += Time.deltaTime; RectTransform component = _giftBox.GetComponent(); if ((Object)(object)component != (Object)null) { component.anchoredPosition = new Vector2(0f, Mathf.Sin(_bounceTimer * 1.6f) * 6f); } } if (_giftState == GiftBoxAnimState.Shaking) { _giftAnimTimer += Time.deltaTime; float num4 = Mathf.Sin(_giftAnimTimer * 28f) * 8f * Mathf.Clamp01(1f - _giftAnimTimer / 0.8f); if ((Object)(object)_giftBox != (Object)null) { _giftBox.transform.localRotation = Quaternion.Euler(0f, 0f, num4); } if (_giftAnimTimer > 0.9f) { _giftState = GiftBoxAnimState.Opening; _giftAnimTimer = 0f; _lidTargetY = 90f; if ((Object)(object)_giftBox != (Object)null) { _giftBox.transform.localRotation = Quaternion.identity; } } } else { if (_giftState != GiftBoxAnimState.Opening) { return; } _giftAnimTimer += Time.deltaTime; _lidY = Mathf.Lerp(_lidY, _lidTargetY, Time.deltaTime * 7f); if ((Object)(object)_giftLid != (Object)null) { _giftLid.transform.localPosition = new Vector3(0f, _lidY, 0f); } if (_giftAnimTimer > 0.65f) { _giftState = GiftBoxAnimState.Done; _giftOpened = true; if ((Object)(object)_giftBox != (Object)null) { _giftBox.SetActive(false); } if ((Object)(object)_unlockPanel != (Object)null) { _unlockPanel.SetActive(true); } } } } private void ToggleMenu() { _menuOpen = !_menuOpen; if (_menuOpen) { if ((Object)(object)_menuRoot == (Object)null) { BuildMenu(); } _menuRoot.SetActive(true); _cardAnimTimer = 0f; _cardAnimActive = true; _bounceTimer = 0f; } else if ((Object)(object)_menuRoot != (Object)null) { _menuRoot.SetActive(false); } } private void BuildMenu() { //IL_0005: Unknown result type (might be due to invalid IL or missing references) //IL_000b: Expected O, but got Unknown //IL_0040: Unknown result type (might be due to invalid IL or missing references) //IL_0066: Unknown result type (might be due to invalid IL or missing references) //IL_0084: Unknown result type (might be due to invalid IL or missing references) //IL_0089: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Unknown result type (might be due to invalid IL or missing references) //IL_00be: Unknown result type (might be due to invalid IL or missing references) //IL_00cd: Unknown result type (might be due to invalid IL or missing references) //IL_00dc: Unknown result type (might be due to invalid IL or missing references) //IL_00eb: Unknown result type (might be due to invalid IL or missing references) //IL_0105: Unknown result type (might be due to invalid IL or missing references) //IL_0126: Unknown result type (might be due to invalid IL or missing references) //IL_0135: Unknown result type (might be due to invalid IL or missing references) //IL_0144: Unknown result type (might be due to invalid IL or missing references) //IL_0153: Unknown result type (might be due to invalid IL or missing references) //IL_016d: Unknown result type (might be due to invalid IL or missing references) //IL_0191: Unknown result type (might be due to invalid IL or missing references) //IL_01b7: Unknown result type (might be due to invalid IL or missing references) //IL_01bc: 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_01db: Unknown result type (might be due to invalid IL or missing references) //IL_01ea: Unknown result type (might be due to invalid IL or missing references) //IL_01f9: Unknown result type (might be due to invalid IL or missing references) //IL_0208: Unknown result type (might be due to invalid IL or missing references) //IL_0222: Unknown result type (might be due to invalid IL or missing references) //IL_0232: Unknown result type (might be due to invalid IL or missing references) //IL_025d: Unknown result type (might be due to invalid IL or missing references) //IL_0263: Expected O, but got Unknown //IL_0281: Unknown result type (might be due to invalid IL or missing references) //IL_028c: Unknown result type (might be due to invalid IL or missing references) //IL_02a1: Unknown result type (might be due to invalid IL or missing references) //IL_02b5: Unknown result type (might be due to invalid IL or missing references) //IL_02c5: Unknown result type (might be due to invalid IL or missing references) GameObject val = new GameObject("MILF_Canvas"); Object.DontDestroyOnLoad((Object)(object)val); Canvas obj = val.AddComponent(); obj.renderMode = (RenderMode)0; obj.sortingOrder = 9999; CanvasScaler obj2 = val.AddComponent(); obj2.uiScaleMode = (ScaleMode)1; obj2.referenceResolution = new Vector2(1920f, 1080f); obj2.matchWidthOrHeight = 0.5f; val.AddComponent(); GameObject val2 = MakePanelStretch(val.transform, "Overlay", C_BG_OVERLAY); ((Graphic)val2.GetComponent()).raycastTarget = true; Button obj3 = val2.AddComponent