Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of SlopperMode v1.0.0
plugins/SlopperMode/SlopperMode.dll
Decompiled a week agousing System; using System.Collections.Generic; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Configuration; using UnityEngine; using UnityEngine.SceneManagement; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("SlopperMode")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("SlopperMode")] [assembly: AssemblyTitle("SlopperMode")] [assembly: AssemblyVersion("1.0.0.0")] namespace SlopperMode; [BepInPlugin("com.slopper.ror2.sloppermode", "Slopper Mode", "1.0.0")] public sealed class SlopperModePlugin : BaseUnityPlugin { private enum Flavor { Popup, Warning, Sticker, Camera, Meter, BossBar, Receipt, Banner, Chat, Crosshair } private sealed class Operator { public readonly string Title; public readonly string Message; public readonly Flavor Flavor; public Operator(string title, string message, Flavor flavor) { Title = title; Message = message; Flavor = flavor; } } private sealed class ActiveThing { public Operator Operator; public int Number; public Rect Bounds; public float Born; public float Lifetime; public float Seed; public Color Accent; } public const string PluginGuid = "com.slopper.ror2.sloppermode"; public const string PluginName = "Slopper Mode"; public const string PluginVersion = "1.0.0"; private static readonly Operator[] Operators = new Operator[50] { new Operator("SLOP LEAK", "THE FLOOR IS 80% GRAVY", Flavor.Warning), new Operator("VENT POSSUM", "SOMETHING IS BREATHING IN CAM 4", Flavor.Camera), new Operator("FRAUDULENT LOOT", "LEGENDARY: WET SOCK x3", Flavor.Receipt), new Operator("SLOP.EXE", "AN UNHELPFUL WINDOW HAS APPEARED", Flavor.Popup), new Operator("BOGOS BINTED", "YOUR VISOR HAS BEEN BINTED", Flavor.Sticker), new Operator("SILLY TAX", "YOU OWE 4,000 SLOP COINS", Flavor.Popup), new Operator("CAMERA PANIC", "CAM 06 IS LOOKING BACK", Flavor.Camera), new Operator("THE BIG OOPS", "UNAUTHORIZED GOO DETECTED", Flavor.Warning), new Operator("FAKE UPDATE", "INSTALLING MORE SLOP... 99%", Flavor.Meter), new Operator("DOOM RECTANGLE", "YOU HAVE BEEN SELECTED", Flavor.Crosshair), new Operator("SLOP KING", "THE EMPEROR OF MAYONNAISE", Flavor.BossBar), new Operator("URGENT EMAIL", "RE: RE: RE: PLEASE SEE SLOP", Flavor.Chat), new Operator("INSPECTOR GOO", "YOUR SOCKS FAILED INSPECTION", Flavor.Popup), new Operator("DERIVATIVE INCIDENT", "d/dx (SANITY) = -INFINITY", Flavor.Banner), new Operator("FALSE ALARM", "THIS IS A REAL FAKE EMERGENCY", Flavor.Warning), new Operator("MICROWAVE READY", "THE INVISIBLE SOUP IS HOT", Flavor.Sticker), new Operator("NO SIGNAL", "THE WALLS ARE USING WIFI", Flavor.Camera), new Operator("SLOP RECEIPT", "1x GRAVY / 9x REGRET / NO REFUNDS", Flavor.Receipt), new Operator("OH NO", "A DISGRUNTLED RECTANGLE APPROACHES", Flavor.Crosshair), new Operator("DEBUFF APPLIED", "EMOTIONAL DAMAGE +999", Flavor.Banner), new Operator("SLOPPIFICATION", "YOU ARE NOW 72% SLOPPY", Flavor.Meter), new Operator("FAKE DM", "UNKNOWN: u got games on ur pip-boy?", Flavor.Chat), new Operator("CHAOS AUDIT", "YOU DID NOT FILE FORM 50/20", Flavor.Popup), new Operator("THE GLOOP", "IT HAS 14 HEALTH BARS (NOT REALLY)", Flavor.BossBar), new Operator("BANANA ALERT", "FRUIT HAS BREACHED CONTAINMENT", Flavor.Warning), new Operator("BOSS MUSIC", "IMAGINE A VERY LOUD TUBA", Flavor.Sticker), new Operator("LEFT DOOR", "DOOR STATUS: THERE IS NO DOOR", Flavor.Camera), new Operator("RIGHT DOOR", "DOOR STATUS: ALSO NO DOOR", Flavor.Camera), new Operator("CRITICAL LOW HP", "HP: PROBABLY ENOUGH??", Flavor.Meter), new Operator("SHOPPING CART", "17x QUESTIONABLE MUSHROOM", Flavor.Receipt), new Operator("MATRIX ATTACK", "det(SLOP) = ABSOLUTELY NOT", Flavor.Banner), new Operator("IT'S BEHIND YOU", "(IT IS NOT ACTUALLY BEHIND YOU)", Flavor.Warning), new Operator("POPUP REMINDER", "DRINK WATER. ALSO SLOP.", Flavor.Popup), new Operator("LOUD THOUGHTS", "AAAAAAA (VISUAL EDITION)", Flavor.Sticker), new Operator("CAM 20", "EVERY PIXEL IS A SUSPECT", Flavor.Camera), new Operator("PRESTIGE SLOP", "SLOP LEVEL UP! NOTHING CHANGED", Flavor.Banner), new Operator("IMPORTANT PING", "@EVERYONE THE FLOOR IS WET", Flavor.Chat), new Operator("FORBIDDEN GAUGE", "PANIC METER: YES", Flavor.Meter), new Operator("MYSTERY BOSS", "THE SENTIENT BREADSTICK", Flavor.BossBar), new Operator("CURSED COUPON", "50% OFF HALF OF ONE SLOP", Flavor.Receipt), new Operator("ACCURATE AIM", "THE CURSOR IS NOT THE CROSSHAIR", Flavor.Crosshair), new Operator("SLOP LICENSE", "EXPIRED 900 YEARS AGO", Flavor.Popup), new Operator("THE GOO KNOWS", "DO NOT MAKE EYE CONTACT WITH JELLY", Flavor.Warning), new Operator("SEND HELP", "SLOP SUPPORT HAS LEFT THE CHAT", Flavor.Chat), new Operator("CAM 50", "THE CAMERAS ARE ALSO CONFUSED", Flavor.Camera), new Operator("FLOATING TEXT", "THIS WINDOW PAYS RENT HERE", Flavor.Sticker), new Operator("FAKE ACHIEVEMENT", "UNLOCKED: TOO MUCH INFORMATION", Flavor.Banner), new Operator("BUDGET OVERFLOW", "SLOP BALANCE: -$999,999", Flavor.Receipt), new Operator("SLOP OVERLORD", "ULTIMATE CUSTOM SLOP 50/20", Flavor.BossBar), new Operator("NO THOUGHTS", "HEAD EMPTY, SCREEN FULL", Flavor.Warning) }; private static readonly Color[] Palette = (Color[])(object)new Color[6] { new Color(1f, 0.24f, 0.37f), new Color(0.25f, 1f, 0.65f), new Color(1f, 0.8f, 0.2f), new Color(0.32f, 0.72f, 1f), new Color(1f, 0.4f, 0.94f), new Color(1f, 0.56f, 0.27f) }; private readonly List<ActiveThing> _things = new List<ActiveThing>(); private readonly Random _random = new Random(); private readonly int[] _deck = new int[Operators.Length]; private int _deckPosition; private int _spawnCount; private float _nextSpawn; private float _nextSlopStorm; private float _stormUntil; private float _startedAt; private bool _visible = true; private bool _settingsVisible; private GUIStyle _label; private GUIStyle _button; private Texture2D _noise; private AudioSource _speaker; private AudioClip _beep; private float _lastBeep = -100f; private ConfigEntry<int> _aggression; private ConfigEntry<int> _maxWindows; private ConfigEntry<float> _opacity; private ConfigEntry<bool> _hideInMenus; private ConfigEntry<bool> _reducedMotion; private ConfigEntry<bool> _soundEnabled; private ConfigEntry<KeyCode> _toggleKey; private ConfigEntry<KeyCode> _panicKey; private ConfigEntry<KeyCode> _presetKey; private ConfigEntry<KeyCode> _settingsKey; private void Awake() { //IL_0025: Unknown result type (might be due to invalid IL or missing references) //IL_002f: Expected O, but got Unknown //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0063: Expected O, but got Unknown //IL_0097: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Expected O, but got Unknown _aggression = ((BaseUnityPlugin)this).Config.Bind<int>("50-20 Chaos", "Aggression", 20, new ConfigDescription("1 = slight nonsense, 20 = ULTIMATE SLOP", (AcceptableValueBase)(object)new AcceptableValueRange<int>(1, 20), Array.Empty<object>())); _maxWindows = ((BaseUnityPlugin)this).Config.Bind<int>("50-20 Chaos", "MaxActiveEffects", 38, new ConfigDescription("Maximum simultaneous visual effects", (AcceptableValueBase)(object)new AcceptableValueRange<int>(5, 60), Array.Empty<object>())); _opacity = ((BaseUnityPlugin)this).Config.Bind<float>("Visuals", "Opacity", 0.9f, new ConfigDescription("Overlay strength, from 0.2 to 1", (AcceptableValueBase)(object)new AcceptableValueRange<float>(0.2f, 1f), Array.Empty<object>())); _hideInMenus = ((BaseUnityPlugin)this).Config.Bind<bool>("Visuals", "HideInMenus", true, "Do not show chaos in the main menu and lobby"); _reducedMotion = ((BaseUnityPlugin)this).Config.Bind<bool>("Accessibility", "ReducedMotion", true, "Default ON: disables fast pulsing and limits movement; there are no full-screen strobes"); _soundEnabled = ((BaseUnityPlugin)this).Config.Bind<bool>("Audio", "BeepSounds", false, "Default OFF: enable soft, rate-limited synth beeps"); _toggleKey = ((BaseUnityPlugin)this).Config.Bind<KeyCode>("Controls", "ToggleOverlay", (KeyCode)289, "Show/hide all slop"); _panicKey = ((BaseUnityPlugin)this).Config.Bind<KeyCode>("Controls", "PanicStop", (KeyCode)290, "Clear all effects and stop slop until re-enabled"); _presetKey = ((BaseUnityPlugin)this).Config.Bind<KeyCode>("Controls", "CyclePreset", (KeyCode)291, "Cycle 5/20, 12/20, 20/20"); _settingsKey = ((BaseUnityPlugin)this).Config.Bind<KeyCode>("Controls", "SettingsPanel", (KeyCode)287, "Show/hide settings panel"); for (int i = 0; i < _deck.Length; i++) { _deck[i] = i; } ShuffleDeck(); _startedAt = Time.unscaledTime; _nextSpawn = _startedAt + 2f; _nextSlopStorm = _startedAt + 18f; MakeNoiseTexture(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"SLOPPER MODE: 50 operators online, multiplayer-safe client visuals loaded."); } private void OnDestroy() { if ((Object)(object)_noise != (Object)null) { Object.Destroy((Object)(object)_noise); } if ((Object)(object)_beep != (Object)null) { Object.Destroy((Object)(object)_beep); } } private void Update() { //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_0040: Unknown result type (might be due to invalid IL or missing references) //IL_006b: 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) if (Input.GetKeyDown(_toggleKey.Value)) { _visible = !_visible; if (_visible) { _nextSpawn = Time.unscaledTime + 0.3f; } } if (Input.GetKeyDown(_panicKey.Value)) { _things.Clear(); _visible = false; _settingsVisible = false; } if (Input.GetKeyDown(_presetKey.Value)) { _aggression.Value = ((_aggression.Value >= 20) ? 5 : ((_aggression.Value < 12) ? 12 : 20)); ((BaseUnityPlugin)this).Logger.LogInfo((object)("Slop aggression set to " + _aggression.Value + "/20")); } if (Input.GetKeyDown(_settingsKey.Value)) { _settingsVisible = !_settingsVisible; } if (!_visible || !IsAllowedScene()) { return; } float unscaledTime = Time.unscaledTime; for (int num = _things.Count - 1; num >= 0; num--) { if (unscaledTime >= _things[num].Born + _things[num].Lifetime) { _things.RemoveAt(num); } } if (unscaledTime >= _nextSlopStorm) { if (_aggression.Value >= 12) { int num2 = ((_aggression.Value >= 18) ? 6 : 3); for (int i = 0; i < num2; i++) { SpawnThing(); } _stormUntil = unscaledTime + 3f; } _nextSlopStorm = unscaledTime + ((_aggression.Value >= 18) ? 19f : 27f); } if (unscaledTime >= _nextSpawn) { SpawnThing(); if (_aggression.Value >= 16 && _random.NextDouble() < 0.25) { SpawnThing(); } float num3 = ((float)_aggression.Value - 1f) / 19f; float num4 = Mathf.Lerp(3.6f, 0.47f, num3); _nextSpawn = unscaledTime + num4 * (0.75f + (float)_random.NextDouble() * 0.5f); } } private bool IsAllowedScene() { //IL_000f: Unknown result type (might be due to invalid IL or missing references) //IL_0014: Unknown result type (might be due to invalid IL or missing references) if (!_hideInMenus.Value) { return true; } Scene activeScene = SceneManager.GetActiveScene(); string text = ((Scene)(ref activeScene)).name.ToLowerInvariant(); if (text.Length == 0) { return false; } if (!text.Contains("title") && !text.Contains("lobby") && !text.Contains("intro") && !text.Contains("splash") && !text.Contains("mainmenu")) { return !text.Contains("characterselect"); } return false; } private void ShuffleDeck() { for (int num = _deck.Length - 1; num > 0; num--) { int num2 = _random.Next(num + 1); int num3 = _deck[num]; _deck[num] = _deck[num2]; _deck[num2] = num3; } _deckPosition = 0; } private void SpawnThing() { //IL_0196: Unknown result type (might be due to invalid IL or missing references) //IL_019b: Unknown result type (might be due to invalid IL or missing references) //IL_01f3: Unknown result type (might be due to invalid IL or missing references) //IL_01f8: Unknown result type (might be due to invalid IL or missing references) if (_things.Count >= _maxWindows.Value) { _things.RemoveAt(0); } if (_deckPosition >= _deck.Length) { ShuffleDeck(); } int num = _deck[_deckPosition++]; Operator obj = Operators[num]; float num2 = 310f; float num3 = 128f; switch (obj.Flavor) { case Flavor.Warning: num2 = 490f; num3 = 138f; break; case Flavor.Sticker: num2 = 310f; num3 = 108f; break; case Flavor.Camera: num2 = 270f; num3 = 186f; break; case Flavor.Meter: num2 = 295f; num3 = 114f; break; case Flavor.BossBar: num2 = 635f; num3 = 84f; break; case Flavor.Receipt: num2 = 290f; num3 = 193f; break; case Flavor.Banner: num2 = 530f; num3 = 98f; break; case Flavor.Chat: num2 = 320f; num3 = 117f; break; case Flavor.Crosshair: num2 = 206f; num3 = 155f; break; case Flavor.Popup: num2 = 325f; num3 = 175f; break; } float num4 = 14f + (float)_random.NextDouble() * (1280f - num2 - 28f); float num5 = 65f + (float)_random.NextDouble() * (720f - num3 - 90f); _things.Add(new ActiveThing { Number = num + 1, Operator = obj, Bounds = new Rect(num4, num5, num2, num3), Born = Time.unscaledTime, Lifetime = Mathf.Lerp(5f, 13f, (float)_random.NextDouble()), Seed = (float)_random.NextDouble() * 100f, Accent = Palette[num % Palette.Length] }); _spawnCount++; TryBeep(); } private void TryBeep() { if (!_soundEnabled.Value || Time.unscaledTime - _lastBeep < 2.2f) { return; } if ((Object)(object)_speaker == (Object)null) { _speaker = ((Component)this).gameObject.AddComponent<AudioSource>(); _speaker.playOnAwake = false; _speaker.spatialBlend = 0f; _speaker.volume = 0.22f; } if ((Object)(object)_beep == (Object)null) { float[] array = new float[2205]; for (int i = 0; i < 2205; i++) { float num = Mathf.Sin(MathF.PI * (float)i / 2205f); array[i] = Mathf.Sin(MathF.PI * 680f * (float)i / 22050f) * num * 0.13f; } _beep = AudioClip.Create("SlopSoftBeep", 2205, 1, 22050, false); _beep.SetData(array, 0); } _speaker.PlayOneShot(_beep); _lastBeep = Time.unscaledTime; } private void MakeNoiseTexture() { //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_0011: Expected O, but got Unknown //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Unknown result type (might be due to invalid IL or missing references) _noise = new Texture2D(64, 64, (TextureFormat)4, false); ((Texture)_noise).filterMode = (FilterMode)0; ((Texture)_noise).wrapMode = (TextureWrapMode)0; Color32[] array = (Color32[])(object)new Color32[4096]; for (int i = 0; i < array.Length; i++) { byte b = (byte)_random.Next(28, 224); array[i] = new Color32(b, b, b, byte.MaxValue); } _noise.SetPixels32(array); _noise.Apply(false, false); } private void EnsureGuiStyles() { //IL_0014: Unknown result type (might be due to invalid IL or missing references) //IL_001e: Expected O, but got Unknown //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0057: Expected O, but got Unknown if (_label == null) { _label = new GUIStyle(GUI.skin.label); _label.fontStyle = (FontStyle)1; _label.wordWrap = true; _label.clipping = (TextClipping)1; _button = new GUIStyle(GUI.skin.button); _button.fontSize = 13; _button.fontStyle = (FontStyle)1; } } private void OnGUI() { //IL_00a7: Unknown result type (might be due to invalid IL or missing references) //IL_00b3: Unknown result type (might be due to invalid IL or missing references) //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) if (!_visible || !IsAllowedScene()) { return; } EnsureGuiStyles(); Matrix4x4 matrix = GUI.matrix; int depth = GUI.depth; GUI.depth = -800; GUI.matrix = Matrix4x4.Scale(new Vector3((float)Screen.width / 1280f, (float)Screen.height / 720f, 1f)); try { DrawAmbientUi(); for (int num = _things.Count - 1; num >= 0; num--) { if (DrawThing(_things[num])) { _things.RemoveAt(num); } } if (_settingsVisible) { DrawSettings(); } } finally { GUI.matrix = matrix; GUI.depth = depth; GUI.color = Color.white; } } private void Quad(Rect rect, Color color, float alpha = 1f) { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0005: Unknown result type (might be due to invalid IL or missing references) //IL_000b: Unknown result type (might be due to invalid IL or missing references) //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_003a: Unknown result type (might be due to invalid IL or missing references) Color color2 = GUI.color; GUI.color = new Color(color.r, color.g, color.b, Mathf.Clamp01(color.a * _opacity.Value * alpha)); GUI.DrawTexture(rect, (Texture)(object)Texture2D.whiteTexture); GUI.color = color2; } private void Outline(Rect r, Color c, float alpha = 1f, float size = 2f) { //IL_0018: Unknown result type (might be due to invalid IL or missing references) //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Unknown result type (might be due to invalid IL or missing references) //IL_0044: Unknown result type (might be due to invalid IL or missing references) //IL_0063: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_008a: 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) Quad(new Rect(((Rect)(ref r)).x, ((Rect)(ref r)).y, ((Rect)(ref r)).width, size), c, alpha); Quad(new Rect(((Rect)(ref r)).x, ((Rect)(ref r)).yMax - size, ((Rect)(ref r)).width, size), c, alpha); Quad(new Rect(((Rect)(ref r)).x, ((Rect)(ref r)).y, size, ((Rect)(ref r)).height), c, alpha); Quad(new Rect(((Rect)(ref r)).xMax - size, ((Rect)(ref r)).y, size, ((Rect)(ref r)).height), c, alpha); } private void Text(Rect rect, string value, int fontSize, Color color, TextAnchor alignment = (TextAnchor)3, float alpha = 1f) { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002b: Unknown result type (might be due to invalid IL or missing references) //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_0039: Unknown result type (might be due to invalid IL or missing references) //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Unknown result type (might be due to invalid IL or missing references) _label.fontSize = fontSize; _label.alignment = alignment; _label.normal.textColor = new Color(color.r, color.g, color.b, Mathf.Clamp01(color.a * _opacity.Value * alpha)); GUI.Label(rect, value, _label); } private void DrawAmbientUi() { //IL_001b: Unknown result type (might be due to invalid IL or missing references) //IL_0034: Unknown result type (might be due to invalid IL or missing references) //IL_0058: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_0090: Unknown result type (might be due to invalid IL or missing references) //IL_00ab: Unknown result type (might be due to invalid IL or missing references) //IL_0114: Unknown result type (might be due to invalid IL or missing references) //IL_0178: Unknown result type (might be due to invalid IL or missing references) //IL_019d: Unknown result type (might be due to invalid IL or missing references) //IL_01b6: Unknown result type (might be due to invalid IL or missing references) //IL_01da: Unknown result type (might be due to invalid IL or missing references) //IL_01f5: Unknown result type (might be due to invalid IL or missing references) //IL_021a: Unknown result type (might be due to invalid IL or missing references) //IL_0233: Unknown result type (might be due to invalid IL or missing references) //IL_0257: Unknown result type (might be due to invalid IL or missing references) //IL_0262: Unknown result type (might be due to invalid IL or missing references) //IL_028b: Unknown result type (might be due to invalid IL or missing references) //IL_029d: Unknown result type (might be due to invalid IL or missing references) //IL_02c2: Unknown result type (might be due to invalid IL or missing references) //IL_02ce: 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_0305: Unknown result type (might be due to invalid IL or missing references) //IL_00dd: Unknown result type (might be due to invalid IL or missing references) //IL_00ef: Unknown result type (might be due to invalid IL or missing references) //IL_0357: Unknown result type (might be due to invalid IL or missing references) //IL_0370: Unknown result type (might be due to invalid IL or missing references) //IL_0396: Unknown result type (might be due to invalid IL or missing references) //IL_03a1: Unknown result type (might be due to invalid IL or missing references) //IL_03c5: Unknown result type (might be due to invalid IL or missing references) //IL_03d1: Unknown result type (might be due to invalid IL or missing references) float unscaledTime = Time.unscaledTime; Quad(new Rect(0f, 0f, 1280f, 44f), new Color(0.04f, 0.04f, 0.08f, 0.92f)); Quad(new Rect(0f, 42f, 1280f, 3f), new Color(1f, 0.2f, 0.4f)); Text(new Rect(12f, 4f, 720f, 36f), "SLOPPER // CUSTOM CHAOS 50/20 [ OPERATORS 50 ]", 22, new Color(1f, 0.88f, 0.25f), (TextAnchor)3); if (Time.unscaledTime < _stormUntil) { Text(new Rect(700f, 4f, 150f, 36f), "SLOP STORM!", 17, Palette[0], (TextAnchor)3); } Text(new Rect(835f, 4f, 435f, 36f), "AI " + _aggression.Value + "/20 ACTIVE " + _things.Count + " SPAWNED " + _spawnCount, 16, Color.white, (TextAnchor)5); Quad(new Rect(12f, 677f, 515f, 32f), new Color(0.03f, 0.03f, 0.07f, 0.88f)); Text(new Rect(20f, 680f, 505f, 26f), "F6 SETTINGS F8 TOGGLE F9 PANIC F10 PRESET", 14, new Color(0.45f, 1f, 0.66f), (TextAnchor)3); Quad(new Rect(1100f, 599f, 168f, 104f), new Color(0.02f, 0.05f, 0.08f, 0.76f)); Outline(new Rect(1100f, 599f, 168f, 104f), Palette[1], 0.72f); Text(new Rect(1110f, 603f, 148f, 24f), "VENT: SLOP", 15, Palette[1], (TextAnchor)3); Text(new Rect(1110f, 632f, 148f, 26f), "[ o o ]", 21, Color.white, (TextAnchor)4); Text(new Rect(1110f, 664f, 148f, 25f), "DO NOT FEED IT", 12, Palette[2], (TextAnchor)3); float num = 0.35f + 0.25f * Mathf.Sin(unscaledTime * (_reducedMotion.Value ? 0.4f : 1.2f)); Quad(new Rect(808f, 679f, 270f, 15f), new Color(0.08f, 0.08f, 0.08f, 0.9f)); Quad(new Rect(808f, 679f, 270f * num, 15f), Palette[0], 0.88f); Text(new Rect(815f, 655f, 260f, 22f), "SLOPOMETER (NOT REAL)", 12, Color.white, (TextAnchor)3); } private bool DrawThing(ActiveThing thing) { //IL_0046: Unknown result type (might be due to invalid IL or missing references) //IL_004b: Unknown result type (might be due to invalid IL or missing references) //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0053: 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_00f7: Unknown result type (might be due to invalid IL or missing references) //IL_012c: Unknown result type (might be due to invalid IL or missing references) //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_0179: Unknown result type (might be due to invalid IL or missing references) //IL_0186: Unknown result type (might be due to invalid IL or missing references) //IL_01bf: Unknown result type (might be due to invalid IL or missing references) //IL_01d1: Unknown result type (might be due to invalid IL or missing references) //IL_0201: Unknown result type (might be due to invalid IL or missing references) //IL_025b: 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_0280: Unknown result type (might be due to invalid IL or missing references) //IL_0285: Unknown result type (might be due to invalid IL or missing references) //IL_02ba: Unknown result type (might be due to invalid IL or missing references) //IL_02d6: Unknown result type (might be due to invalid IL or missing references) //IL_030c: Unknown result type (might be due to invalid IL or missing references) //IL_0319: Unknown result type (might be due to invalid IL or missing references) //IL_032b: Unknown result type (might be due to invalid IL or missing references) //IL_032d: Unknown result type (might be due to invalid IL or missing references) //IL_0334: Unknown result type (might be due to invalid IL or missing references) //IL_033b: Unknown result type (might be due to invalid IL or missing references) //IL_0347: Unknown result type (might be due to invalid IL or missing references) //IL_0353: Unknown result type (might be due to invalid IL or missing references) //IL_0355: Unknown result type (might be due to invalid IL or missing references) //IL_0392: Unknown result type (might be due to invalid IL or missing references) //IL_03ae: Unknown result type (might be due to invalid IL or missing references) //IL_03e7: Unknown result type (might be due to invalid IL or missing references) //IL_03f4: Unknown result type (might be due to invalid IL or missing references) //IL_0406: Unknown result type (might be due to invalid IL or missing references) //IL_0408: Unknown result type (might be due to invalid IL or missing references) //IL_043d: Unknown result type (might be due to invalid IL or missing references) //IL_0454: Unknown result type (might be due to invalid IL or missing references) //IL_056b: Unknown result type (might be due to invalid IL or missing references) //IL_056d: 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_05af: Unknown result type (might be due to invalid IL or missing references) //IL_060f: Unknown result type (might be due to invalid IL or missing references) //IL_0623: Unknown result type (might be due to invalid IL or missing references) //IL_065e: Unknown result type (might be due to invalid IL or missing references) //IL_0663: Unknown result type (might be due to invalid IL or missing references) //IL_0698: Unknown result type (might be due to invalid IL or missing references) //IL_06a5: Unknown result type (might be due to invalid IL or missing references) //IL_06b7: Unknown result type (might be due to invalid IL or missing references) //IL_06b9: Unknown result type (might be due to invalid IL or missing references) //IL_06ee: Unknown result type (might be due to invalid IL or missing references) //IL_0705: Unknown result type (might be due to invalid IL or missing references) //IL_073b: Unknown result type (might be due to invalid IL or missing references) //IL_074f: Unknown result type (might be due to invalid IL or missing references) //IL_07af: Unknown result type (might be due to invalid IL or missing references) //IL_07b4: Unknown result type (might be due to invalid IL or missing references) //IL_07e9: Unknown result type (might be due to invalid IL or missing references) //IL_07f6: Unknown result type (might be due to invalid IL or missing references) //IL_0808: Unknown result type (might be due to invalid IL or missing references) //IL_0819: Unknown result type (might be due to invalid IL or missing references) //IL_0825: Unknown result type (might be due to invalid IL or missing references) //IL_0836: Unknown result type (might be due to invalid IL or missing references) //IL_0873: Unknown result type (might be due to invalid IL or missing references) //IL_087f: Unknown result type (might be due to invalid IL or missing references) //IL_08b8: Unknown result type (might be due to invalid IL or missing references) //IL_08d5: Unknown result type (might be due to invalid IL or missing references) //IL_090e: Unknown result type (might be due to invalid IL or missing references) //IL_091a: Unknown result type (might be due to invalid IL or missing references) //IL_092c: Unknown result type (might be due to invalid IL or missing references) //IL_0942: Unknown result type (might be due to invalid IL or missing references) //IL_094e: Unknown result type (might be due to invalid IL or missing references) //IL_0950: Unknown result type (might be due to invalid IL or missing references) //IL_098a: Unknown result type (might be due to invalid IL or missing references) //IL_0997: Unknown result type (might be due to invalid IL or missing references) //IL_09cd: Unknown result type (might be due to invalid IL or missing references) //IL_09da: Unknown result type (might be due to invalid IL or missing references) //IL_09ec: Unknown result type (might be due to invalid IL or missing references) //IL_09ee: Unknown result type (might be due to invalid IL or missing references) //IL_0a23: Unknown result type (might be due to invalid IL or missing references) //IL_0a3a: Unknown result type (might be due to invalid IL or missing references) //IL_0a70: Unknown result type (might be due to invalid IL or missing references) //IL_0a7d: Unknown result type (might be due to invalid IL or missing references) //IL_0a91: Unknown result type (might be due to invalid IL or missing references) //IL_0ab4: Unknown result type (might be due to invalid IL or missing references) //IL_0ab9: Unknown result type (might be due to invalid IL or missing references) //IL_0ad1: Unknown result type (might be due to invalid IL or missing references) //IL_0aed: Unknown result type (might be due to invalid IL or missing references) //IL_0af2: Unknown result type (might be due to invalid IL or missing references) //IL_0b01: Unknown result type (might be due to invalid IL or missing references) //IL_0b03: Unknown result type (might be due to invalid IL or missing references) //IL_0b3d: Unknown result type (might be due to invalid IL or missing references) //IL_0b4a: Unknown result type (might be due to invalid IL or missing references) //IL_0b80: Unknown result type (might be due to invalid IL or missing references) //IL_0b8d: Unknown result type (might be due to invalid IL or missing references) //IL_023e: Unknown result type (might be due to invalid IL or missing references) //IL_050a: Unknown result type (might be due to invalid IL or missing references) //IL_0516: Unknown result type (might be due to invalid IL or missing references) //IL_054f: Unknown result type (might be due to invalid IL or missing references) //IL_055c: Unknown result type (might be due to invalid IL or missing references) //IL_046b: 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_04c8: Unknown result type (might be due to invalid IL or missing references) float num = Time.unscaledTime - thing.Born; float num2 = Mathf.Clamp01(num / 0.25f); float num3 = Mathf.Clamp01((thing.Lifetime - num) / 0.9f); float num4 = Mathf.Min(num2, num3); if (num4 <= 0f) { return false; } Operator obj = thing.Operator; Rect bounds = thing.Bounds; Color accent = thing.Accent; if (!_reducedMotion.Value) { ((Rect)(ref bounds)).x = ((Rect)(ref bounds)).x + Mathf.Sin(Time.unscaledTime * 2f + thing.Seed) * 12f; ((Rect)(ref bounds)).y = ((Rect)(ref bounds)).y + Mathf.Cos(Time.unscaledTime * 1.5f + thing.Seed) * 9f; } switch (obj.Flavor) { case Flavor.Popup: Panel(bounds, accent, num4); Text(new Rect(((Rect)(ref bounds)).x + 12f, ((Rect)(ref bounds)).y + 9f, ((Rect)(ref bounds)).width - 60f, 29f), "SLOP APP: " + obj.Title, 16, accent, (TextAnchor)3, num4); Text(new Rect(((Rect)(ref bounds)).x + 15f, ((Rect)(ref bounds)).y + 57f, ((Rect)(ref bounds)).width - 30f, 48f), obj.Message, 17, Color.white, (TextAnchor)4, num4); Text(new Rect(((Rect)(ref bounds)).x + 15f, ((Rect)(ref bounds)).y + 122f, ((Rect)(ref bounds)).width - 30f, 19f), "error 50/20 | this notice is fake", 12, Palette[2], (TextAnchor)3, num4); if (GUI.Button(new Rect(((Rect)(ref bounds)).xMax - 39f, ((Rect)(ref bounds)).y + 9f, 28f, 26f), "X", _button)) { return true; } if (GUI.Button(new Rect(((Rect)(ref bounds)).x + 116f, ((Rect)(ref bounds)).yMax - 32f, 94f, 26f), "NOPE", _button)) { return true; } break; case Flavor.Warning: Panel(bounds, accent, num4); Quad(new Rect(((Rect)(ref bounds)).x, ((Rect)(ref bounds)).y, 12f, ((Rect)(ref bounds)).height), accent, num4); Text(new Rect(((Rect)(ref bounds)).x + 22f, ((Rect)(ref bounds)).y + 7f, ((Rect)(ref bounds)).width - 35f, 52f), "!! " + obj.Title + " !!", 27, accent, (TextAnchor)4, num4); Text(new Rect(((Rect)(ref bounds)).x + 16f, ((Rect)(ref bounds)).y + 61f, ((Rect)(ref bounds)).width - 32f, 56f), obj.Message, 20, Color.white, (TextAnchor)4, num4); break; case Flavor.Sticker: Quad(bounds, new Color(accent.r, accent.g, accent.b, 0.86f), num4); Outline(bounds, Color.white, num4, 4f); Text(new Rect(((Rect)(ref bounds)).x + 10f, ((Rect)(ref bounds)).y + 8f, ((Rect)(ref bounds)).width - 20f, 40f), obj.Title, 25, new Color(0.08f, 0.08f, 0.08f), (TextAnchor)4, num4); Text(new Rect(((Rect)(ref bounds)).x + 10f, ((Rect)(ref bounds)).y + 51f, ((Rect)(ref bounds)).width - 20f, 48f), obj.Message, 15, Color.black, (TextAnchor)4, num4); break; case Flavor.Camera: Panel(bounds, accent, num4); Text(new Rect(((Rect)(ref bounds)).x + 9f, ((Rect)(ref bounds)).y + 6f, ((Rect)(ref bounds)).width - 18f, 24f), "REC [FAKE] // " + obj.Title, 14, accent, (TextAnchor)3, num4); if ((Object)(object)_noise != (Object)null) { Color color = GUI.color; GUI.color = new Color(1f, 1f, 1f, 0.25f * num4 * _opacity.Value); GUI.DrawTexture(new Rect(((Rect)(ref bounds)).x + 9f, ((Rect)(ref bounds)).y + 39f, ((Rect)(ref bounds)).width - 18f, 88f), (Texture)(object)_noise); GUI.color = color; } Text(new Rect(((Rect)(ref bounds)).x + 10f, ((Rect)(ref bounds)).y + 52f, ((Rect)(ref bounds)).width - 20f, 63f), "[ . . ]\n /___\\", 20, Color.white, (TextAnchor)4, num4); Text(new Rect(((Rect)(ref bounds)).x + 10f, ((Rect)(ref bounds)).y + 132f, ((Rect)(ref bounds)).width - 20f, 47f), obj.Message, 12, accent, (TextAnchor)4, num4); break; case Flavor.Meter: { Panel(bounds, accent, num4); Text(new Rect(((Rect)(ref bounds)).x + 10f, ((Rect)(ref bounds)).y + 9f, ((Rect)(ref bounds)).width - 20f, 28f), obj.Title, 17, accent, (TextAnchor)3, num4); float num6 = 0.35f + 0.6f * Mathf.Abs(Mathf.Sin(Time.unscaledTime * 0.33f + thing.Seed)); Quad(new Rect(((Rect)(ref bounds)).x + 16f, ((Rect)(ref bounds)).y + 48f, ((Rect)(ref bounds)).width - 32f, 22f), new Color(0.15f, 0.15f, 0.15f), num4); Quad(new Rect(((Rect)(ref bounds)).x + 16f, ((Rect)(ref bounds)).y + 48f, (((Rect)(ref bounds)).width - 32f) * num6, 22f), accent, num4); Text(new Rect(((Rect)(ref bounds)).x + 11f, ((Rect)(ref bounds)).y + 77f, ((Rect)(ref bounds)).width - 22f, 30f), obj.Message, 13, Color.white, (TextAnchor)4, num4); break; } case Flavor.BossBar: { Panel(bounds, accent, num4); Text(new Rect(((Rect)(ref bounds)).x + 10f, ((Rect)(ref bounds)).y + 3f, ((Rect)(ref bounds)).width - 20f, 35f), "BOSS: " + obj.Title, 19, accent, (TextAnchor)4, num4); Quad(new Rect(((Rect)(ref bounds)).x + 18f, ((Rect)(ref bounds)).y + 42f, ((Rect)(ref bounds)).width - 36f, 18f), new Color(0.12f, 0.06f, 0.06f), num4); float num5 = 0.55f + 0.4f * Mathf.Sin(Time.unscaledTime * 0.12f + thing.Seed); Quad(new Rect(((Rect)(ref bounds)).x + 18f, ((Rect)(ref bounds)).y + 42f, (((Rect)(ref bounds)).width - 36f) * num5, 18f), accent, num4); Text(new Rect(((Rect)(ref bounds)).x + 18f, ((Rect)(ref bounds)).y + 64f, ((Rect)(ref bounds)).width - 36f, 17f), obj.Message, 11, Color.white, (TextAnchor)4, num4); break; } case Flavor.Receipt: Quad(bounds, new Color(0.92f, 0.9f, 0.77f), num4); Outline(bounds, new Color(0.19f, 0.15f, 0.12f), num4, 3f); Text(new Rect(((Rect)(ref bounds)).x + 10f, ((Rect)(ref bounds)).y + 10f, ((Rect)(ref bounds)).width - 20f, 28f), "*** SLOP RECEIPT ***", 18, Color.black, (TextAnchor)4, num4); Text(new Rect(((Rect)(ref bounds)).x + 13f, ((Rect)(ref bounds)).y + 50f, ((Rect)(ref bounds)).width - 26f, 58f), obj.Title + "\n" + obj.Message, 16, Color.black, (TextAnchor)4, num4); Text(new Rect(((Rect)(ref bounds)).x + 13f, ((Rect)(ref bounds)).y + 130f, ((Rect)(ref bounds)).width - 26f, 40f), "TOTAL: TOO MUCH\nNO REFUNDS", 14, Color.black, (TextAnchor)4, num4); break; case Flavor.Banner: Quad(bounds, new Color(0.1f, 0.06f, 0.14f, 0.94f), num4); Outline(bounds, accent, num4, 4f); Text(new Rect(((Rect)(ref bounds)).x + 12f, ((Rect)(ref bounds)).y + 4f, ((Rect)(ref bounds)).width - 24f, 43f), obj.Title, 29, accent, (TextAnchor)4, num4); Text(new Rect(((Rect)(ref bounds)).x + 16f, ((Rect)(ref bounds)).y + 51f, ((Rect)(ref bounds)).width - 32f, 37f), obj.Message, 17, Color.white, (TextAnchor)4, num4); break; case Flavor.Chat: Panel(bounds, accent, num4); Text(new Rect(((Rect)(ref bounds)).x + 12f, ((Rect)(ref bounds)).y + 8f, ((Rect)(ref bounds)).width - 24f, 26f), "[FAKE CHAT] " + obj.Title, 14, accent, (TextAnchor)3, num4); Text(new Rect(((Rect)(ref bounds)).x + 16f, ((Rect)(ref bounds)).y + 42f, ((Rect)(ref bounds)).width - 32f, 63f), obj.Message, 18, Color.white, (TextAnchor)4, num4); break; case Flavor.Crosshair: Quad(new Rect(((Rect)(ref bounds)).center.x - 1f, ((Rect)(ref bounds)).y, 2f, ((Rect)(ref bounds)).height), accent, 0.6f * num4); Quad(new Rect(((Rect)(ref bounds)).x, ((Rect)(ref bounds)).center.y - 1f, ((Rect)(ref bounds)).width, 2f), accent, 0.6f * num4); Outline(bounds, accent, num4); Text(new Rect(((Rect)(ref bounds)).x + 4f, ((Rect)(ref bounds)).y + 8f, ((Rect)(ref bounds)).width - 8f, 30f), obj.Title, 15, accent, (TextAnchor)4, num4); Text(new Rect(((Rect)(ref bounds)).x + 5f, ((Rect)(ref bounds)).yMax - 45f, ((Rect)(ref bounds)).width - 10f, 39f), obj.Message, 11, Color.white, (TextAnchor)4, num4); break; } return false; } private void Panel(Rect rect, Color accent, float fade) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0016: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0023: Unknown result type (might be due to invalid IL or missing references) Quad(rect, new Color(0.025f, 0.035f, 0.08f, 0.93f), fade); Outline(rect, accent, fade, 3f); } private void DrawSettings() { //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0031: Unknown result type (might be due to invalid IL or missing references) //IL_0041: Unknown result type (might be due to invalid IL or missing references) //IL_0048: Unknown result type (might be due to invalid IL or missing references) //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_00a8: Unknown result type (might be due to invalid IL or missing references) //IL_00b4: Unknown result type (might be due to invalid IL or missing references) //IL_00d9: Unknown result type (might be due to invalid IL or missing references) //IL_0108: Unknown result type (might be due to invalid IL or missing references) //IL_012c: Unknown result type (might be due to invalid IL or missing references) //IL_0189: Unknown result type (might be due to invalid IL or missing references) //IL_01bf: Unknown result type (might be due to invalid IL or missing references) //IL_01e3: Unknown result type (might be due to invalid IL or missing references) //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_027b: Unknown result type (might be due to invalid IL or missing references) //IL_02af: Unknown result type (might be due to invalid IL or missing references) //IL_02c1: Unknown result type (might be due to invalid IL or missing references) //IL_02e5: Unknown result type (might be due to invalid IL or missing references) Rect val = default(Rect); ((Rect)(ref val))..ctor(384f, 146f, 520f, 397f); Quad(val, new Color(0.02f, 0.02f, 0.05f, 1f)); Outline(val, Palette[1], 1f, 4f); Text(new Rect(410f, 166f, 475f, 40f), "SLOP CONTROL CENTER", 26, Palette[1], (TextAnchor)3); Text(new Rect(410f, 213f, 465f, 43f), "50 unique operators. 20 aggression levels.\nNothing here affects damage, loot, enemies, or networking.", 15, Color.white, (TextAnchor)3); Text(new Rect(410f, 276f, 460f, 24f), "AGGRESSION: " + _aggression.Value + "/20", 18, Palette[2], (TextAnchor)3); int num = Mathf.Clamp(Mathf.RoundToInt(GUI.HorizontalSlider(new Rect(417f, 313f, 450f, 27f), (float)_aggression.Value, 1f, 20f)), 1, 20); if (num != _aggression.Value) { _aggression.Value = num; } Text(new Rect(410f, 353f, 460f, 26f), "OVERLAY OPACITY: " + (int)(_opacity.Value * 100f) + "%", 17, Palette[3], (TextAnchor)3); float num2 = GUI.HorizontalSlider(new Rect(417f, 390f, 450f, 25f), _opacity.Value, 0.2f, 1f); if (Mathf.Abs(num2 - _opacity.Value) > 0.015f) { _opacity.Value = num2; } _reducedMotion.Value = GUI.Toggle(new Rect(415f, 426f, 270f, 29f), _reducedMotion.Value, " Reduced motion (safer default)"); _soundEnabled.Value = GUI.Toggle(new Rect(415f, 458f, 270f, 29f), _soundEnabled.Value, " Gentle beep sounds (off by default)"); Text(new Rect(410f, 506f, 400f, 24f), "F9 = INSTANT STOP | F8 = RESTART", 14, Palette[0], (TextAnchor)3); if (GUI.Button(new Rect(777f, 496f, 103f, 32f), "CLOSE", _button)) { _settingsVisible = false; } } }