using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using System.Text; using BepInEx; using BepInEx.Configuration; using Microsoft.CodeAnalysis; using UnityEngine; using UnityEngine.Networking; using UnityEngine.Video; [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("Empress")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0+c574138cfea486cfa7104eae1a6f135c166daf8b")] [assembly: AssemblyProduct("EmpressOmniXP")] [assembly: AssemblyTitle("EmpressOmniXP")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace Empress.XP { [BepInPlugin("empress.repo.xp", "Empress XP", "5.8.0")] public class EmpressXPPlugin : BaseUnityPlugin { public class PhotoFile { public string Name; public Texture2D Texture; } private enum OSState { Boot_BIOS, Boot_Splash, Setup_Welcome, Setup_TOS, Setup_Login, Desktop, BSOD, RSOD, RunningGame } private enum MSNState { Login, ContactList, Chat } private class MsnContact { public string Name; public string Status; public Color StatusColor; public string PersonalMessage; public List History = new List(); } private class WireFile { public string Name; public string Author; public float SizeMB; public float Progress; public float TotalTime; public float ElapsedTime; public bool IsComplete; public string Status; public int Quality; } private class Card { public int Suit; public int Rank; public bool FaceUp; public string GetDisplay() { string obj = ((Rank == 1) ? "A" : ((Rank == 11) ? "J" : ((Rank == 12) ? "Q" : ((Rank == 13) ? "K" : Rank.ToString())))); string text = ((Suit == 0) ? "♥" : ((Suit == 1) ? "♦" : ((Suit == 2) ? "♣" : "â™\u00a0"))); return obj + text; } public Color GetColor() { //IL_0017: 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) if (Suit != 0 && Suit != 1) { return Color.black; } return Color.red; } } private ConfigEntry _isSetupComplete; private ConfigEntry _usernameConfig; private ConfigEntry _soulCount; private ConfigEntry _limewireDownloads; private ConfigEntry _repoInstalledConfig; private ConfigEntry _boconHungerConfig; private ConfigEntry _boconHappyConfig; private ConfigEntry _boconEnergyConfig; private OSState _currentState; private bool _showClicker; private bool _showTerminal; private bool _showSolitaire; private bool _showBrowser; private bool _showFlappy; private bool _showPhotos; private bool _showRepo; private bool _showTetris; private bool _showNorton; private bool _showLimewire; private bool _showMediaPlayer; private bool _showBocon; private bool _showSkript; private bool _showInstaller; private bool _showMinesweeper; private bool _showPaint; private bool _showMSN; private bool _showGame1; private bool _showGame2; private List _windowZOrder = new List(); private bool _startMenuOpen; private bool _hasDownloadedLinkinPark; private bool _hasDownloadedBBD; private bool _hasDownloadedSkript; private bool _virusActive; private bool _hasGame1; private bool _hasGame2; private bool _videoIsReady; private string _videoError = ""; private Texture2D _texBliss; private Texture2D _texLake; private Texture2D _texXPBlue; private Texture2D _texXPBlueGrad; private Texture2D _texXPGreen; private Texture2D _texXPCream; private Texture2D _texXPRed; private Texture2D _texWhite; private Texture2D _texBlack; private Texture2D _texBSOD; private Texture2D _texRSOD; private Texture2D _texIconGeneric; private Texture2D _texIconTrash; private Texture2D _texIconSolitaire; private Texture2D _texIconBrowser; private Texture2D _texIconFlappy; private Texture2D _texIconPhotos; private Texture2D _texIconRepo; private Texture2D _texIconTetris; private Texture2D _texIconFolder; private Texture2D _texIconNorton; private Texture2D _texIconLimewire; private Texture2D _texIconHDD; private Texture2D _texIconLinkinPark; private Texture2D _texIconSouls; private Texture2D _texIconCMD; private Texture2D _texIconBBD; private Texture2D _texIconSkript; private Texture2D _texIconFitGirl; private Texture2D _texFitGirlFace; private Texture2D _texIconMine; private Texture2D _texIconPaint; private Texture2D _texIconMSN; private Texture2D _texIconGame1; private Texture2D _texIconGame2; private AudioSource _audioSource; private AudioClip _startupClip; private AudioClip _sfxTMove; private AudioClip _sfxTRotate; private AudioClip _sfxTLine; private AudioClip _sfxTDrop; private AudioClip _sfxTOver; private AudioClip _installerSong; private bool _hasPlayedStartup; private VideoPlayer _videoPlayer; private RenderTexture _videoTexture; private float _bootTimer; private string _bootLog = ""; private float _lastClickTime; private string _inputUsername = "Admin"; private Vector2 _scrollPos; private double _currentSouls; private double _clickPower = 1.0; private string _termInput = ""; private string _termLog = "Microsoft Windows XP [Version 5.1.2600]\n(C) Copyright 1985-2001 Microsoft Corp.\n"; private List _photoFiles = new List(); private PhotoFile _openedPhoto; private Vector2 _photoScroll = Vector2.zero; private string _browserUrl = "https://www.google.com"; private string _browserInput = ""; private WWW _browserWWW; private Texture2D _browserTex; private RenderTexture _repoTex; private Rect _repoRect = new Rect(100f, 50f, 660f, 525f); private GUIStyle _styleDesktopIcon; private GUIStyle _styleWindowHeader; private GUIStyle _styleStartBtn; private GUIStyle _styleCard; private GUIStyle _styleTaskbarClock; private GUIStyle _styleFolderIcon; private Vector2 _windowPosOffset; private string _draggedWindowKey; private Rect _clickerRect = new Rect(100f, 50f, 350f, 400f); private Rect _terminalRect = new Rect(400f, 100f, 500f, 350f); private Rect _solitaireRect = new Rect(150f, 80f, 700f, 500f); private Rect _browserRect = new Rect(200f, 100f, 800f, 600f); private Rect _flappyRect = new Rect(300f, 150f, 400f, 600f); private Rect _photosRect = new Rect(250f, 100f, 600f, 500f); private Rect _tetrisRect = new Rect(400f, 100f, 350f, 600f); private Rect _nortonRect = new Rect(200f, 200f, 500f, 400f); private Rect _limewireRect = new Rect(150f, 100f, 800f, 550f); private Rect _mediaPlayerRect = new Rect(150f, 100f, 640f, 540f); private Rect _boconRect = new Rect(250f, 150f, 300f, 400f); private Rect _skriptRect = new Rect(100f, 50f, 800f, 600f); private Rect _installerRect = new Rect(200f, 150f, 600f, 400f); private Rect _mineRect = new Rect(300f, 200f, 300f, 400f); private Rect _paintRect = new Rect(150f, 100f, 600f, 500f); private Rect _msnRect = new Rect(200f, 100f, 300f, 500f); private Rect _game1Rect = new Rect(300f, 200f, 300f, 200f); private Rect _game2Rect = new Rect(300f, 200f, 300f, 300f); private float _installTimer; private bool _installerMusicEnabled = true; private Dictionary _assetCache = new Dictionary(); private float _boconHunger; private float _boconHappy; private float _boconEnergy; private float _boconSaveTimer; private bool _flappyGameActive; private bool _flappyWaitingForSpace; private float _flappyY = 300f; private float _flappyVel; private float _pipeX = Screen.width; private float _pipeGapY = 200f; private bool _flappyDead; private int[,] _mineGrid; private bool[,] _mineRevealed; private bool[,] _mineFlagged; private bool _mineGameOver; private bool _mineWin; private int _mineRows = 9; private int _mineCols = 9; private int _totalMines = 10; private Texture2D _texMineFlag; private Texture2D _texMineBomb; private Texture2D _paintTexture; private Color _paintColor = Color.black; private float _paintBrushSize = 1f; private Vector2 _lastPaintPos; private bool _isPainting; private int _g1Target; private string _g1Input = ""; private string _g1Msg = "I'm thinking of a number 1-100."; private string[] _g2Board = new string[9]; private bool _g2XTurn = true; private string _g2Winner = ""; private MSNState _msnState; private string _msnEmail = ""; private string _msnPassword = ""; private string _msnTitle = "MSN Messenger"; private Vector2 _msnScrollPos; private List _msnContacts = new List(); private MsnContact _currentChatContact; private string _msnChatInput = ""; private ChatEngine _chatEngine; private bool _installerMusicStarted; private bool _nortonScanning; private float _nortonProgress; private string _nortonCurrentFile = ""; private float _nortonFileTimer; private string[] _nortonFakePaths = new string[6] { "C:\\Windows\\System32\\drivers\\", "C:\\Program Files\\Empress\\", "C:\\Users\\Admin\\AppData\\Local\\", "HKLM\\SOFTWARE\\Microsoft\\", "C:\\Windows\\Fonts\\", "D:\\Backups\\Souls\\" }; private string[] _nortonFakeFiles = new string[12] { "kernel32.dll", "user32.dll", "soul_driver.sys", "doom_tracker.log", "winlogon.exe", "svchost.exe", "explorer.exe", "not_a_virus.vbs", "hal.dll", "ntoskrnl.exe", "registry_hive.dat", "memory_dump.bin" }; private List _nortonLog = new List(); private Vector2 _nortonScroll; private List _wireFiles = new List(); private Vector2 _wireScroll; private bool _wireInitialized; private RenderTexture _skriptRT; private GameObject _skriptRoot; private Camera _skriptCam; private List _skriptEnemies = new List(); private float _skriptSpawnTimer; private int _skriptScore; private bool _skriptInMenu = true; private bool _skriptGameOver; private List _deck = new List(); private List[] _tableau = new List[7]; private List[] _foundations = new List[4]; private List _waste = new List(); private Card _selectedCard; private int _selectedSourceType = -1; private int _selectedSourceIndex = -1; private int[,] _tGrid = new int[10, 20]; private bool _tPlaying; private bool _tGameOver; private int _tScore; private float _tTimer; private float _tStep = 0.5f; private int _tPX; private int _tPY; private int _tPT; private int _tPR; private Color[] _tColors = (Color[])(object)new Color[8] { Color.clear, Color.cyan, Color.yellow, new Color(0.5f, 0f, 0.5f), Color.green, Color.red, Color.blue, new Color(1f, 0.5f, 0f) }; private readonly int[][][,] _tShapes = new int[8][][,] { null, new int[2][,] { new int[4, 4] { { 0, 0, 0, 0 }, { 1, 1, 1, 1 }, { 0, 0, 0, 0 }, { 0, 0, 0, 0 } }, new int[4, 4] { { 0, 0, 1, 0 }, { 0, 0, 1, 0 }, { 0, 0, 1, 0 }, { 0, 0, 1, 0 } } }, new int[1][,] { new int[2, 2] { { 1, 1 }, { 1, 1 } } }, new int[4][,] { new int[3, 3] { { 0, 1, 0 }, { 1, 1, 1 }, { 0, 0, 0 } }, new int[3, 3] { { 0, 1, 0 }, { 0, 1, 1 }, { 0, 1, 0 } }, new int[3, 3] { { 0, 0, 0 }, { 1, 1, 1 }, { 0, 1, 0 } }, new int[3, 3] { { 0, 1, 0 }, { 1, 1, 0 }, { 0, 1, 0 } } }, new int[2][,] { new int[3, 3] { { 0, 1, 1 }, { 1, 1, 0 }, { 0, 0, 0 } }, new int[3, 3] { { 0, 1, 0 }, { 0, 1, 1 }, { 0, 0, 1 } } }, new int[2][,] { new int[3, 3] { { 1, 1, 0 }, { 0, 1, 1 }, { 0, 0, 0 } }, new int[3, 3] { { 0, 0, 1 }, { 0, 1, 1 }, { 0, 1, 0 } } }, new int[4][,] { new int[3, 3] { { 1, 0, 0 }, { 1, 1, 1 }, { 0, 0, 0 } }, new int[3, 3] { { 0, 1, 1 }, { 0, 1, 0 }, { 0, 1, 0 } }, new int[3, 3] { { 0, 0, 0 }, { 1, 1, 1 }, { 0, 0, 1 } }, new int[3, 3] { { 0, 1, 0 }, { 0, 1, 0 }, { 1, 1, 0 } } }, new int[4][,] { new int[3, 3] { { 0, 0, 1 }, { 1, 1, 1 }, { 0, 0, 0 } }, new int[3, 3] { { 0, 1, 0 }, { 0, 1, 0 }, { 0, 1, 1 } }, new int[3, 3] { { 0, 0, 0 }, { 1, 1, 1 }, { 1, 0, 0 } }, new int[3, 3] { { 1, 1, 0 }, { 0, 1, 0 }, { 0, 1, 0 } } } }; private void Awake() { //IL_0173: Unknown result type (might be due to invalid IL or missing references) //IL_017d: Expected O, but got Unknown //IL_0196: Unknown result type (might be due to invalid IL or missing references) ((Component)this).gameObject.transform.parent = null; ((Object)((Component)this).gameObject).hideFlags = (HideFlags)61; Object.DontDestroyOnLoad((Object)(object)((Component)this).gameObject); Time.timeScale = 0f; _isSetupComplete = ((BaseUnityPlugin)this).Config.Bind("General", "SetupComplete", false, (ConfigDescription)null); _usernameConfig = ((BaseUnityPlugin)this).Config.Bind("General", "Username", "Admin", (ConfigDescription)null); _soulCount = ((BaseUnityPlugin)this).Config.Bind("GameData", "SoulsHarvested", 0.0, (ConfigDescription)null); _limewireDownloads = ((BaseUnityPlugin)this).Config.Bind("GameData", "LimewireDownloads", "", (ConfigDescription)null); _repoInstalledConfig = ((BaseUnityPlugin)this).Config.Bind("GameData", "RepoInstalled", false, (ConfigDescription)null); _boconHungerConfig = ((BaseUnityPlugin)this).Config.Bind("Bocon", "Hunger", 100f, (ConfigDescription)null); _boconHappyConfig = ((BaseUnityPlugin)this).Config.Bind("Bocon", "Happy", 100f, (ConfigDescription)null); _boconEnergyConfig = ((BaseUnityPlugin)this).Config.Bind("Bocon", "Energy", 100f, (ConfigDescription)null); _currentSouls = _soulCount.Value; _audioSource = ((Component)this).gameObject.AddComponent(); _audioSource.playOnAwake = false; _videoTexture = new RenderTexture(640, 480, 16, (RenderTextureFormat)0); _videoTexture.Create(); RenderTexture.active = _videoTexture; GL.Clear(true, true, Color.black); RenderTexture.active = null; SetupVideoPlayer(); GenerateProceduralAssets(); ((MonoBehaviour)this).StartCoroutine(LoadExternalAssets()); InitSolitaire(); InitLimewire(); LoadPhotos(); InitBocon(); InitMinesweeper(); InitPaint(); InitMSN(); if (_isSetupComplete.Value) { _currentState = OSState.Boot_BIOS; _bootLog = "Memory Test: 640K OK\nPrimary Master: EMPRESS-HD 666GB\n"; } else { _currentState = OSState.Boot_BIOS; _bootLog = "BIOS DATE 06/06/06 18:00:00 VER 1.0\n"; } } public void ActivateVirus() { _virusActive = true; } public void ActivateGame1() { _hasGame1 = true; } public void ActivateGame2() { _hasGame2 = true; } private void SetupVideoPlayer() { //IL_0089: Unknown result type (might be due to invalid IL or missing references) //IL_0093: Expected O, but got Unknown //IL_00a0: Unknown result type (might be due to invalid IL or missing references) //IL_00aa: Expected O, but got Unknown _videoPlayer = ((Component)this).gameObject.AddComponent(); _videoPlayer.playOnAwake = false; _videoPlayer.isLooping = true; _videoPlayer.renderMode = (VideoRenderMode)2; _videoPlayer.targetTexture = _videoTexture; _videoPlayer.audioOutputMode = (VideoAudioOutputMode)1; _videoPlayer.SetTargetAudioSource((ushort)0, _audioSource); _videoPlayer.skipOnDrop = true; _videoPlayer.waitForFirstFrame = true; _videoPlayer.errorReceived += (ErrorEventHandler)delegate(VideoPlayer vp, string msg) { _videoError = msg; Debug.LogError((object)("Empress XP Video Error: " + msg)); }; _videoPlayer.prepareCompleted += (EventHandler)delegate { _videoIsReady = true; }; } private void OpenWindow(string key) { if (!_windowZOrder.Contains(key)) { _windowZOrder.Add(key); } else { _windowZOrder.Remove(key); _windowZOrder.Add(key); } if (key == null) { return; } switch (key.Length) { case 3: switch (key[0]) { case 'C': if (key == "CMD") { _showTerminal = true; } break; case 'M': if (key == "MSN") { _showMSN = true; } break; } break; case 9: switch (key[0]) { case 'S': if (key == "Solitaire") { _showSolitaire = true; } break; case 'I': if (key == "Installer") { _showInstaller = true; } break; } break; case 6: switch (key[0]) { case 'F': if (key == "Flappy") { _showFlappy = true; } break; case 'P': if (key == "Photos") { _showPhotos = true; } break; case 'T': if (key == "Tetris") { _showTetris = true; } break; case 'N': if (key == "Norton") { _showNorton = true; } break; case 'S': if (key == "Skript") { _showSkript = true; } break; } break; case 5: switch (key[4]) { case 'a': if (key == "Media") { _showMediaPlayer = true; } break; case 'n': if (key == "Bocon") { _showBocon = true; } break; case 't': if (key == "Paint") { _showPaint = true; } break; case '1': if (key == "Game1") { _showGame1 = true; InitGame1(); } break; case '2': if (key == "Game2") { _showGame2 = true; InitGame2(); } break; } break; case 13: if (key == "SoulHarvester") { _showClicker = true; } break; case 7: if (key == "Browser") { _showBrowser = true; } break; case 8: if (key == "Limewire") { _showLimewire = true; } break; case 11: if (key == "Minesweeper") { _showMinesweeper = true; } break; case 4: case 10: case 12: break; } } private void BringToFront(string key) { if (_windowZOrder.Contains(key)) { _windowZOrder.Remove(key); _windowZOrder.Add(key); } } private void Update() { if (_currentState == OSState.RunningGame) { if (Time.timeScale == 0f) { Time.timeScale = 1f; } return; } Time.timeScale = 0f; Cursor.visible = true; Cursor.lockState = (CursorLockMode)0; if (_currentState == OSState.BSOD || _currentState == OSState.RSOD) { return; } if (_showInstaller) { UpdateInstaller(); } if (_currentState == OSState.Boot_BIOS) { _bootTimer += Time.unscaledDeltaTime; if (Random.value > 0.92f) { _bootLog = _bootLog + "\nLoading Driver: " + Guid.NewGuid().ToString().Substring(0, 8) + ".sys ... OK"; } if (_bootTimer > 3f) { _bootTimer = 0f; _currentState = OSState.Boot_Splash; } } else if (_currentState == OSState.Boot_Splash) { _bootTimer += Time.unscaledDeltaTime; if (_bootTimer > 3f) { _currentState = (_isSetupComplete.Value ? OSState.Desktop : OSState.Setup_Welcome); } } if (_currentState == OSState.Desktop && !_hasPlayedStartup) { _hasPlayedStartup = true; if ((Object)(object)_startupClip != (Object)null) { _audioSource.PlayOneShot(_startupClip); } } if (_flappyGameActive && !_flappyDead) { _flappyVel += 0.25f; _flappyY += _flappyVel; _pipeX -= 2f; if (_pipeX < -100f) { _pipeX = 400f; _pipeGapY = Random.Range(100, 400); } if ((_pipeX < 100f && _pipeX > 20f && (_flappyY < _pipeGapY - 80f || _flappyY > _pipeGapY + 80f)) || _flappyY > 520f || _flappyY < 0f) { _flappyDead = true; } } if (_tPlaying && !_tGameOver) { UpdateTetrisLogic(); } UpdateNorton(); UpdateLimewire(); UpdateBocon(); UpdateSkript(); } private void OnGUI() { //IL_005e: 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_0099: Unknown result type (might be due to invalid IL or missing references) //IL_009e: Unknown result type (might be due to invalid IL or missing references) //IL_00a4: Unknown result type (might be due to invalid IL or missing references) //IL_00b3: Expected O, but got Unknown //IL_00d6: Unknown result type (might be due to invalid IL or missing references) //IL_0101: Unknown result type (might be due to invalid IL or missing references) //IL_0139: Unknown result type (might be due to invalid IL or missing references) //IL_0177: Unknown result type (might be due to invalid IL or missing references) //IL_01a7: Unknown result type (might be due to invalid IL or missing references) //IL_01d3: Unknown result type (might be due to invalid IL or missing references) //IL_0211: Unknown result type (might be due to invalid IL or missing references) //IL_025f: Unknown result type (might be due to invalid IL or missing references) //IL_05fe: Unknown result type (might be due to invalid IL or missing references) //IL_0621: Unknown result type (might be due to invalid IL or missing references) //IL_0626: Unknown result type (might be due to invalid IL or missing references) //IL_0753: Unknown result type (might be due to invalid IL or missing references) //IL_0776: Unknown result type (might be due to invalid IL or missing references) //IL_077b: Unknown result type (might be due to invalid IL or missing references) //IL_0893: Unknown result type (might be due to invalid IL or missing references) //IL_08b6: Unknown result type (might be due to invalid IL or missing references) //IL_08bb: Unknown result type (might be due to invalid IL or missing references) //IL_053e: Unknown result type (might be due to invalid IL or missing references) //IL_0561: Unknown result type (might be due to invalid IL or missing references) //IL_0566: Unknown result type (might be due to invalid IL or missing references) //IL_057e: Unknown result type (might be due to invalid IL or missing references) //IL_05a1: Unknown result type (might be due to invalid IL or missing references) //IL_05a6: Unknown result type (might be due to invalid IL or missing references) //IL_063e: Unknown result type (might be due to invalid IL or missing references) //IL_0661: Unknown result type (might be due to invalid IL or missing references) //IL_0666: Unknown result type (might be due to invalid IL or missing references) //IL_0853: Unknown result type (might be due to invalid IL or missing references) //IL_0876: Unknown result type (might be due to invalid IL or missing references) //IL_087b: Unknown result type (might be due to invalid IL or missing references) //IL_0913: Unknown result type (might be due to invalid IL or missing references) //IL_0937: Unknown result type (might be due to invalid IL or missing references) //IL_093c: Unknown result type (might be due to invalid IL or missing references) //IL_0793: Unknown result type (might be due to invalid IL or missing references) //IL_07b6: Unknown result type (might be due to invalid IL or missing references) //IL_07bb: 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_0971: Unknown result type (might be due to invalid IL or missing references) //IL_0976: Unknown result type (might be due to invalid IL or missing references) //IL_0713: Unknown result type (might be due to invalid IL or missing references) //IL_0736: 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_067e: Unknown result type (might be due to invalid IL or missing references) //IL_06b6: Unknown result type (might be due to invalid IL or missing references) //IL_06bb: Unknown result type (might be due to invalid IL or missing references) //IL_0813: 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_083b: Unknown result type (might be due to invalid IL or missing references) //IL_06d3: Unknown result type (might be due to invalid IL or missing references) //IL_06f6: 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_05be: Unknown result type (might be due to invalid IL or missing references) //IL_05e1: Unknown result type (might be due to invalid IL or missing references) //IL_05e6: Unknown result type (might be due to invalid IL or missing references) //IL_07d3: 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_07fb: Unknown result type (might be due to invalid IL or missing references) //IL_0988: Unknown result type (might be due to invalid IL or missing references) //IL_09ab: Unknown result type (might be due to invalid IL or missing references) //IL_09b0: Unknown result type (might be due to invalid IL or missing references) //IL_08d3: Unknown result type (might be due to invalid IL or missing references) //IL_08f6: Unknown result type (might be due to invalid IL or missing references) //IL_08fb: Unknown result type (might be due to invalid IL or missing references) if (_currentState == OSState.RunningGame) { return; } if (_styleDesktopIcon == null || _styleFolderIcon == null) { SetupStyles(); } if (_currentState == OSState.BSOD) { DrawBSOD(); return; } if (_currentState == OSState.RSOD) { DrawRSOD(); return; } if (_currentState == OSState.Boot_BIOS) { GUI.DrawTexture(new Rect(0f, 0f, (float)Screen.width, (float)Screen.height), (Texture)(object)_texBlack); Rect val = new Rect(20f, 20f, (float)Screen.width, (float)Screen.height); string bootLog = _bootLog; GUIStyle val2 = new GUIStyle(GUI.skin.label); val2.normal.textColor = Color.white; GUI.Label(val, bootLog, val2); return; } if (_currentState == OSState.Boot_Splash) { GUI.DrawTexture(new Rect(0f, 0f, (float)Screen.width, (float)Screen.height), (Texture)(object)_texBlack); DrawCenteredText(Screen.width / 2, Screen.height / 2 - 20, "Windows", 40, Color.white, bold: true); DrawCenteredText(Screen.width / 2 + 70, Screen.height / 2 - 35, "XP", 20, new Color(1f, 0.5f, 0f), bold: true); float num = _bootTimer / 3f * 200f; GUI.DrawTexture(new Rect((float)(Screen.width / 2 - 100), (float)(Screen.height / 2 + 50), 200f, 15f), (Texture)(object)_texWhite); GUI.DrawTexture(new Rect((float)(Screen.width / 2 - 98), (float)(Screen.height / 2 + 52), 196f, 11f), (Texture)(object)_texBlack); GUI.DrawTexture(new Rect((float)(Screen.width / 2 - 98), (float)(Screen.height / 2 + 52), num, 11f), (Texture)(object)_texXPBlue); return; } Texture2D val3 = (_virusActive ? _texLake : _texBliss); GUI.DrawTexture(new Rect(0f, 0f, (float)Screen.width, (float)Screen.height), (Texture)(object)val3, (ScaleMode)1); if (_currentState == OSState.Setup_Welcome || _currentState == OSState.Setup_TOS || _currentState == OSState.Setup_Login) { DrawXPWindow(new Rect((float)(Screen.width / 2 - 250), (float)(Screen.height / 2 - 200), 500f, 400f), "Windows Setup", DrawSetupContent); } else { if (_currentState != OSState.Desktop) { return; } DrawDesktopIcons(); foreach (string item in new List(_windowZOrder)) { switch (item) { case "SoulHarvester": if (_showClicker) { _clickerRect = DrawDraggableXPWindow(_clickerRect, "SoulHarvester.exe", item, DrawClickerContent, delegate { _showClicker = false; }); } break; case "CMD": if (_showTerminal) { _terminalRect = DrawDraggableXPWindow(_terminalRect, "Command Prompt", item, DrawTerminalContent, delegate { _showTerminal = false; }); } break; case "Solitaire": if (_showSolitaire) { _solitaireRect = DrawDraggableXPWindow(_solitaireRect, "Solitaire", item, DrawSolitaireContent, delegate { _showSolitaire = false; }); } break; case "Browser": if (_showBrowser) { _browserRect = DrawDraggableXPWindow(_browserRect, "Empress Explorer", item, DrawBrowserContent, delegate { _showBrowser = false; }); } break; case "Flappy": if (_showFlappy) { _flappyRect = DrawDraggableXPWindow(_flappyRect, "Flappy Bird", item, DrawFlappyContent, delegate { _showFlappy = false; _flappyGameActive = false; _flappyWaitingForSpace = false; }); } break; case "Photos": if (_showPhotos) { _photosRect = DrawDraggableXPWindow(_photosRect, "C:\\Users\\" + _usernameConfig.Value + "\\My Photos", item, DrawPhotosContent, delegate { _showPhotos = false; _openedPhoto = null; }); } break; case "Tetris": if (_showTetris) { _tetrisRect = DrawDraggableXPWindow(_tetrisRect, "Oetris", item, DrawTetrisContent, delegate { _showTetris = false; _tPlaying = false; }); } break; case "Norton": if (_showNorton) { _nortonRect = DrawDraggableXPWindow(_nortonRect, "Norton Antivirus 2003", item, DrawNortonContent, delegate { _showNorton = false; }); } break; case "Limewire": if (_showLimewire) { _limewireRect = DrawDraggableXPWindow(_limewireRect, "Limewire PRO", item, DrawLimewireContent, delegate { _showLimewire = false; }); } break; case "Media": if (_showMediaPlayer) { _mediaPlayerRect = DrawDraggableXPWindow(_mediaPlayerRect, "Windows Media Player", item, DrawMediaPlayerContent, delegate { _showMediaPlayer = false; _videoPlayer.Stop(); }); } break; case "Bocon": if (_showBocon) { _boconRect = DrawDraggableXPWindow(_boconRect, "Bocon's Barbie DreamHouse", item, DrawBoconContent, delegate { _showBocon = false; }); } break; case "Skript": if (_showSkript) { _skriptRect = DrawDraggableXPWindow(_skriptRect, "Skript: AiA", item, DrawSkriptContent, delegate { CloseSkript(); }); } break; case "Installer": if (!_showInstaller) { break; } _installerRect = DrawDraggableXPWindow(_installerRect, "R.E.P.O. Installer", item, DrawInstallerContent, delegate { _showInstaller = false; if ((Object)(object)_audioSource.clip == (Object)(object)_installerSong) { _audioSource.Stop(); } }); break; case "Minesweeper": if (_showMinesweeper) { _mineRect = DrawDraggableXPWindow(_mineRect, "Minesweeper", item, DrawMinesweeperContent, delegate { _showMinesweeper = false; }); } break; case "Paint": if (_showPaint) { _paintRect = DrawDraggableXPWindow(_paintRect, "MS Paint", item, DrawPaintContent, delegate { _showPaint = false; }); } break; case "MSN": if (_showMSN) { _msnRect = DrawDraggableXPWindow(_msnRect, _msnTitle, item, DrawMSNContent, delegate { _showMSN = false; }); } break; case "Game1": if (_showGame1) { _game1Rect = DrawDraggableXPWindow(_game1Rect, "Number Guess", item, DrawGame1Content, delegate { _showGame1 = false; }); } break; case "Game2": if (_showGame2) { _game2Rect = DrawDraggableXPWindow(_game2Rect, "TicTacToe", item, DrawGame2Content, delegate { _showGame2 = false; }); } break; } } DrawTaskBar(); } } private void OnDestroy() { Time.timeScale = 1f; if ((Object)(object)_skriptRoot != (Object)null) { Object.Destroy((Object)(object)_skriptRoot); } if ((Object)(object)_paintTexture != (Object)null) { Object.Destroy((Object)(object)_paintTexture); } } private void DrawBrowserContent() { //IL_0098: Unknown result type (might be due to invalid IL or missing references) GUILayout.BeginHorizontal(Array.Empty()); GUILayout.Label("Address:", (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(60f) }); _browserInput = GUILayout.TextField(_browserUrl, Array.Empty()); if (GUILayout.Button("Go", (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(50f) })) { _browserUrl = _browserInput; ((MonoBehaviour)this).StartCoroutine(LoadWebPage(_browserUrl)); } GUILayout.EndHorizontal(); if ((Object)(object)_browserTex != (Object)null) { GUI.DrawTexture(GUILayoutUtility.GetRect(780f, 500f), (Texture)(object)_browserTex, (ScaleMode)2); } else { GUILayout.Label("Loading or unsupported (Unity WWW)...", Array.Empty()); } } private IEnumerator LoadWebPage(string url) { url = NormalizeBrowserUrl(url); WWW browserWWW; try { browserWWW = new WWW(url); } catch { yield break; } _browserWWW = browserWWW; yield return _browserWWW; if (_browserWWW.isDone && string.IsNullOrEmpty(_browserWWW.error) && (Object)(object)_browserWWW.texture != (Object)null) { _browserTex = _browserWWW.texture; } } private string NormalizeBrowserUrl(string url) { url = (url ?? "").Trim(); int num = url.IndexOf("](", StringComparison.Ordinal); if (url.StartsWith("[", StringComparison.Ordinal) && num > 0 && url.EndsWith(")", StringComparison.Ordinal)) { url = url.Substring(num + 2, url.Length - num - 3).Trim(); } if (string.IsNullOrWhiteSpace(url)) { return "https://www.google.com"; } if (!url.StartsWith("http://", StringComparison.OrdinalIgnoreCase) && !url.StartsWith("https://", StringComparison.OrdinalIgnoreCase)) { url = "https://" + url; } if (!Uri.TryCreate(url, UriKind.Absolute, out Uri result)) { return "https://www.google.com"; } if (!string.Equals(result.Scheme, Uri.UriSchemeHttp, StringComparison.OrdinalIgnoreCase) && !string.Equals(result.Scheme, Uri.UriSchemeHttps, StringComparison.OrdinalIgnoreCase)) { return "https://www.google.com"; } return result.AbsoluteUri; } private void DrawPhotosContent() { //IL_014e: 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_0159: Unknown result type (might be due to invalid IL or missing references) //IL_016d: Expected O, but got Unknown //IL_019a: Unknown result type (might be due to invalid IL or missing references) //IL_01a4: Unknown result type (might be due to invalid IL or missing references) //IL_01a9: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Unknown result type (might be due to invalid IL or missing references) //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0094: Unknown result type (might be due to invalid IL or missing references) //IL_011f: Unknown result type (might be due to invalid IL or missing references) //IL_0289: Unknown result type (might be due to invalid IL or missing references) //IL_028e: Unknown result type (might be due to invalid IL or missing references) //IL_029f: Unknown result type (might be due to invalid IL or missing references) if (_openedPhoto != null) { GUILayout.BeginHorizontal(Array.Empty()); if (GUILayout.Button("Back to Folder", (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(100f) })) { _openedPhoto = null; } GUILayout.FlexibleSpace(); string name = _openedPhoto.Name; GUIStyle val = new GUIStyle(GUI.skin.label) { fontStyle = (FontStyle)1 }; val.normal.textColor = Color.black; GUILayout.Label(name, val, Array.Empty()); GUILayout.FlexibleSpace(); GUILayout.EndHorizontal(); Rect rect = GUILayoutUtility.GetRect(500f, 400f); if ((Object)(object)_openedPhoto.Texture != (Object)null) { float num = (float)((Texture)_openedPhoto.Texture).width / (float)((Texture)_openedPhoto.Texture).height; float num2 = ((Rect)(ref rect)).width / num; if (num2 > ((Rect)(ref rect)).height) { num2 = ((Rect)(ref rect)).height; } float num3 = num2 * num; GUI.DrawTexture(new Rect(((Rect)(ref rect)).x + (((Rect)(ref rect)).width - num3) / 2f, ((Rect)(ref rect)).y + (((Rect)(ref rect)).height - num2) / 2f, num3, num2), (Texture)(object)_openedPhoto.Texture); } return; } GUILayout.BeginHorizontal(Array.Empty()); GUIStyle val2 = new GUIStyle(GUI.skin.label); val2.normal.textColor = Color.black; GUILayout.Label("File Edit View Favorites Tools Help", val2, Array.Empty()); GUILayout.EndHorizontal(); GUILayout.Box("", (GUILayoutOption[])(object)new GUILayoutOption[2] { GUILayout.Height(2f), GUILayout.ExpandWidth(true) }); _photoScroll = GUILayout.BeginScrollView(_photoScroll, Array.Empty()); int num4 = 4; int num5 = Mathf.CeilToInt((float)_photoFiles.Count / (float)num4); for (int i = 0; i < num5; i++) { GUILayout.BeginHorizontal(Array.Empty()); for (int j = 0; j < num4; j++) { int num6 = i * num4 + j; if (num6 >= _photoFiles.Count) { continue; } PhotoFile photoFile = _photoFiles[num6]; GUILayout.BeginVertical((GUILayoutOption[])(object)new GUILayoutOption[2] { GUILayout.Width(100f), GUILayout.Height(100f) }); if (GUILayout.Button("", GUIStyle.none, (GUILayoutOption[])(object)new GUILayoutOption[2] { GUILayout.Width(80f), GUILayout.Height(70f) })) { if (Time.unscaledTime - _lastClickTime < 0.5f) { _openedPhoto = photoFile; } _lastClickTime = Time.unscaledTime; } Rect lastRect = GUILayoutUtility.GetLastRect(); if ((Object)(object)photoFile.Texture != (Object)null) { GUI.DrawTexture(lastRect, (Texture)(object)photoFile.Texture, (ScaleMode)2); } GUILayout.Label(photoFile.Name, _styleFolderIcon ?? GUI.skin.label, Array.Empty()); GUILayout.EndVertical(); } GUILayout.EndHorizontal(); } GUILayout.EndScrollView(); } private void DrawRepoContent() { } private void CloseRepo() { } private void DrawClickerContent() { //IL_001f: 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_002c: 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_0046: Expected O, but got Unknown string text = $"Souls: {_currentSouls:F0}"; GUIStyle val = new GUIStyle(GUI.skin.label) { fontSize = 18 }; val.normal.textColor = Color.black; GUILayout.Label(text, val, Array.Empty()); GUILayout.Space(10f); if (GUILayout.Button("Harvest Soul", (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Height(50f) })) { _currentSouls += _clickPower; _soulCount.Value = _currentSouls; } GUILayout.Space(10f); if (GUILayout.Button($"Install Adware (Upgrade) Cost: {10.0 * _clickPower:F0}", Array.Empty()) && _currentSouls >= 10.0 * _clickPower) { _currentSouls -= 10.0 * _clickPower; _clickPower *= 2.0; } } private void DrawTerminalContent() { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Unknown result type (might be due to invalid IL or missing references) //IL_0025: Unknown result type (might be due to invalid IL or missing references) //IL_0043: Expected O, but got Unknown //IL_0044: 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_00bb: Invalid comparison between Unknown and I4 GUI.backgroundColor = Color.black; string termLog = _termLog; GUIStyle val = new GUIStyle(GUI.skin.textArea); val.normal.textColor = Color.white; GUILayout.TextArea(termLog, val, (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.ExpandHeight(true) }); GUI.backgroundColor = Color.white; GUILayout.BeginHorizontal(Array.Empty()); GUILayout.Label("C:\\Users\\" + _usernameConfig.Value + ">", (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(120f) }); _termInput = GUILayout.TextField(_termInput, Array.Empty()); if (Event.current.isKey && (int)Event.current.keyCode == 13 && _termInput.Length > 0) { string text = _termInput.ToUpper().Trim(); _termLog = _termLog + "\nC:\\Users\\" + _usernameConfig.Value + "> " + _termInput; switch (text) { case "HELP": _termLog += "\nCOMMANDS: HELP, CLS, SOULS, EXIT, REPO"; break; case "CLS": _termLog = ""; break; case "SOULS": _termLog += $"\nTotal Souls: {_currentSouls}"; break; case "EXIT": _showTerminal = false; break; case "REPO": LaunchGame(); break; default: _termLog = _termLog + "\n'" + text + "' is not recognized."; break; } _termInput = ""; Event.current.Use(); } GUILayout.EndHorizontal(); } private void DrawMediaPlayerContent() { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001e: 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_0038: Expected O, but got Unknown //IL_006d: Unknown result type (might be due to invalid IL or missing references) //IL_0072: Unknown result type (might be due to invalid IL or missing references) //IL_0073: 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_00ce: Unknown result type (might be due to invalid IL or missing references) //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00f2: Unknown result type (might be due to invalid IL or missing references) //IL_00f9: Unknown result type (might be due to invalid IL or missing references) //IL_00ff: Unknown result type (might be due to invalid IL or missing references) //IL_0109: Unknown result type (might be due to invalid IL or missing references) //IL_0116: Expected O, but got Unknown //IL_0122: Unknown result type (might be due to invalid IL or missing references) //IL_0134: Unknown result type (might be due to invalid IL or missing references) //IL_014e: Unknown result type (might be due to invalid IL or missing references) //IL_0162: Unknown result type (might be due to invalid IL or missing references) //IL_0167: Unknown result type (might be due to invalid IL or missing references) //IL_016e: Unknown result type (might be due to invalid IL or missing references) //IL_0174: Unknown result type (might be due to invalid IL or missing references) //IL_0183: Expected O, but got Unknown //IL_0261: Unknown result type (might be due to invalid IL or missing references) //IL_0266: Unknown result type (might be due to invalid IL or missing references) //IL_026c: Unknown result type (might be due to invalid IL or missing references) //IL_0280: Expected O, but got Unknown GUILayout.BeginHorizontal(Array.Empty()); GUIStyle val = new GUIStyle(GUI.skin.label); val.normal.textColor = Color.black; GUILayout.Label("File View Play Tools Help", val, Array.Empty()); GUILayout.EndHorizontal(); GUILayout.Box("", (GUILayoutOption[])(object)new GUILayoutOption[2] { GUILayout.Height(2f), GUILayout.ExpandWidth(true) }); Rect rect = GUILayoutUtility.GetRect(640f, 400f); GUI.DrawTexture(rect, (Texture)(object)_texBlack); if ((Object)(object)_videoTexture != (Object)null) { GUI.DrawTexture(rect, (Texture)(object)_videoTexture, (ScaleMode)2); if (!string.IsNullOrEmpty(_videoError)) { Rect val2 = new Rect(((Rect)(ref rect)).x + 20f, ((Rect)(ref rect)).y + 100f, 600f, 100f); string text = "MEDIA ERROR:\n" + _videoError; GUIStyle val3 = new GUIStyle(GUI.skin.label) { alignment = (TextAnchor)4 }; val3.normal.textColor = Color.red; val3.fontSize = 16; GUI.Label(val2, text, val3); } else if (!_videoIsReady) { Rect val4 = new Rect(((Rect)(ref rect)).center.x - 50f, ((Rect)(ref rect)).center.y - 10f, 100f, 20f); GUIStyle val5 = new GUIStyle(GUI.skin.label) { alignment = (TextAnchor)4 }; val5.normal.textColor = Color.white; GUI.Label(val4, "Buffering...", val5); } } GUILayout.Space(5f); GUILayout.Box("", (GUILayoutOption[])(object)new GUILayoutOption[2] { GUILayout.Height(2f), GUILayout.ExpandWidth(true) }); GUILayout.Space(5f); GUILayout.BeginHorizontal(Array.Empty()); if (GUILayout.Button("||", (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(40f) })) { _videoPlayer.Pause(); } if (GUILayout.Button(">", (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(40f) }) && _videoIsReady) { _videoPlayer.Play(); } if (GUILayout.Button("[]", (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(40f) })) { _videoPlayer.Stop(); } GUILayout.FlexibleSpace(); GUIStyle val6 = new GUIStyle(GUI.skin.label); val6.normal.textColor = Color.black; GUILayout.Label("Now Playing: LinkinPark", val6, Array.Empty()); GUILayout.EndHorizontal(); } private void LaunchGame() { ((BaseUnityPlugin)this).Config.Save(); _currentState = OSState.RunningGame; Time.timeScale = 1f; } private void LoadAssetsFromBin() { _assetCache.Clear(); string path = Path.Combine(Path.GetDirectoryName(((BaseUnityPlugin)this).Info.Location), "omnixp.bin"); if (!File.Exists(path)) { return; } try { using FileStream fileStream = File.OpenRead(path); using BinaryReader binaryReader = new BinaryReader(fileStream); if (Encoding.ASCII.GetString(binaryReader.ReadBytes(4)) != "XORB") { return; } binaryReader.ReadInt32(); string s = "e1911"; byte[] bytes = Encoding.UTF8.GetBytes(s); while (fileStream.Position < fileStream.Length) { int count = binaryReader.ReadInt32(); string @string = Encoding.UTF8.GetString(binaryReader.ReadBytes(count)); long num = binaryReader.ReadInt64(); byte[] array = binaryReader.ReadBytes((int)num); for (int i = 0; i < array.Length; i++) { array[i] ^= bytes[i % bytes.Length]; } if (!_assetCache.ContainsKey(@string)) { _assetCache.Add(@string, array); } } } catch (Exception ex) { Debug.LogError((object)("Empress XP: Bin Load Error: " + ex.Message)); } } private byte[] GetBytesFromCache(string targetFilename) { if (_assetCache.ContainsKey(targetFilename)) { return _assetCache[targetFilename]; } foreach (KeyValuePair item in _assetCache) { if (string.Equals(Path.GetFileName(item.Key), targetFilename, StringComparison.OrdinalIgnoreCase)) { return item.Value; } } return null; } private Texture2D LoadCustomImage(string filename) { //IL_000d: Unknown result type (might be due to invalid IL or missing references) //IL_0013: Expected O, but got Unknown //IL_0046: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Expected O, but got Unknown byte[] bytesFromCache = GetBytesFromCache(filename); if (bytesFromCache != null) { Texture2D val = new Texture2D(2, 2); if (ImageConversion.LoadImage(val, bytesFromCache)) { return val; } } string path = Path.Combine(Path.GetDirectoryName(((BaseUnityPlugin)this).Info.Location), filename); if (File.Exists(path)) { byte[] array = File.ReadAllBytes(path); Texture2D val2 = new Texture2D(2, 2); if (ImageConversion.LoadImage(val2, array)) { return val2; } } return null; } private string ExtractToTempFile(string filename) { byte[] bytesFromCache = GetBytesFromCache(filename); string path = filename; if (bytesFromCache == null) { string[] array = new string[3] { ".mp4", ".webm", ".ogg" }; foreach (string text in array) { bytesFromCache = GetBytesFromCache(filename + text); if (bytesFromCache != null) { path = filename + text; break; } } } if (bytesFromCache != null) { string text2 = Path.Combine(Application.temporaryCachePath, Path.GetFileName(path)); File.WriteAllBytes(text2, bytesFromCache); return text2; } string text3 = Path.Combine(Path.GetDirectoryName(((BaseUnityPlugin)this).Info.Location), filename); if (File.Exists(text3)) { return text3; } return null; } private IEnumerator LoadExternalAssets() { LoadAssetsFromBin(); _texBliss = LoadCustomImage("wallpaper.png"); _texLake = LoadCustomImage("lake.png"); _texIconFlappy = LoadCustomImage("flappy.png"); _texIconTrash = LoadCustomImage("bin.png"); _texIconSolitaire = LoadCustomImage("cards.png"); _texIconBrowser = LoadCustomImage("internet.png"); _texIconRepo = LoadCustomImage("Repo.png"); _texIconTetris = LoadCustomImage("tetris.png"); _texIconFolder = LoadCustomImage("folder.png"); _texIconNorton = LoadCustomImage("NortonAV.png"); _texIconLimewire = LoadCustomImage("Limewire.png"); _texIconHDD = LoadCustomImage("hdd.png"); _texIconLinkinPark = LoadCustomImage("LinkinPark.png"); _texIconSouls = LoadCustomImage("Souls.png"); _texIconCMD = LoadCustomImage("CMD.png"); _texIconBBD = LoadCustomImage("BBD.png"); _texIconSkript = LoadCustomImage("Skript.png"); _texIconFitGirl = LoadCustomImage("fitgirl.png"); _texFitGirlFace = LoadCustomImage("face.png"); _texIconMine = LoadCustomImage("mine.png"); _texIconPaint = LoadCustomImage("paint.png"); _texIconMSN = LoadCustomImage("msn.png"); _texIconGame1 = LoadCustomImage("game1.png"); _texIconGame2 = LoadCustomImage("game2.png"); string text = ExtractToTempFile("startup.ogg"); if (text != null) { UnityWebRequest uwr2 = UnityWebRequestMultimedia.GetAudioClip("file://" + text, (AudioType)14); try { yield return uwr2.SendWebRequest(); if ((int)uwr2.result == 1) { _startupClip = DownloadHandlerAudioClip.GetContent(uwr2); } } finally { ((IDisposable)uwr2)?.Dispose(); } } string text2 = ExtractToTempFile("song.ogg"); if (text2 != null) { UnityWebRequest uwr2 = UnityWebRequestMultimedia.GetAudioClip("file://" + text2, (AudioType)14); try { yield return uwr2.SendWebRequest(); if ((int)uwr2.result == 1) { _installerSong = DownloadHandlerAudioClip.GetContent(uwr2); } else { Debug.LogError((object)("Empress XP: Failed to load song.ogg: " + uwr2.error)); } } finally { ((IDisposable)uwr2)?.Dispose(); } } string text3 = ExtractToTempFile("LinkinPark"); if (text3 != null) { _videoPlayer.source = (VideoSource)1; _videoPlayer.url = "file://" + text3; _videoPlayer.Prepare(); } } private void LoadPhotos() { //IL_00a6: Unknown result type (might be due to invalid IL or missing references) //IL_00ac: Expected O, but got Unknown _photoFiles.Clear(); foreach (string item in (from k in _assetCache.Keys where k.EndsWith(".png", StringComparison.OrdinalIgnoreCase) where char.IsDigit(Path.GetFileName(k)[0]) orderby k select k).ToList()) { byte[] array = _assetCache[item]; Texture2D val = new Texture2D(2, 2); if (ImageConversion.LoadImage(val, array)) { _photoFiles.Add(new PhotoFile { Name = Path.GetFileName(item), Texture = val }); } } } private AudioClip MakeTone(string name, float freq, float dur, float vol = 0.5f) { int num = (int)(44100f * dur); float[] array = new float[num]; for (int i = 0; i < num; i++) { array[i] = Mathf.Sin(MathF.PI * 2f * freq * (float)i / 44100f) * vol; } AudioClip obj = AudioClip.Create(name, num, 1, 44100, false); obj.SetData(array, 0); return obj; } private void GenerateProceduralAssets() { //IL_0003: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Expected O, but got Unknown //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown //IL_0031: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Expected O, but got Unknown //IL_0057: 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_0075: Expected O, but got Unknown //IL_007d: Unknown result type (might be due to invalid IL or missing references) //IL_0091: Unknown result type (might be due to invalid IL or missing references) //IL_009b: Expected O, but got Unknown //IL_00a3: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Unknown result type (might be due to invalid IL or missing references) //IL_00c1: Expected O, but got Unknown //IL_00c9: 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_00e7: Expected O, but got Unknown //IL_00ef: Unknown result type (might be due to invalid IL or missing references) //IL_0103: Unknown result type (might be due to invalid IL or missing references) //IL_010d: Expected O, but got Unknown //IL_0116: Unknown result type (might be due to invalid IL or missing references) //IL_0120: Expected O, but got Unknown //IL_0144: Unknown result type (might be due to invalid IL or missing references) //IL_0158: Unknown result type (might be due to invalid IL or missing references) //IL_015e: Unknown result type (might be due to invalid IL or missing references) //IL_0187: Unknown result type (might be due to invalid IL or missing references) //IL_0191: Expected O, but got Unknown //IL_0232: Unknown result type (might be due to invalid IL or missing references) //IL_023c: Expected O, but got Unknown //IL_01b2: Unknown result type (might be due to invalid IL or missing references) //IL_01c6: Unknown result type (might be due to invalid IL or missing references) //IL_01cd: Unknown result type (might be due to invalid IL or missing references) //IL_01d2: Unknown result type (might be due to invalid IL or missing references) //IL_0320: Unknown result type (might be due to invalid IL or missing references) //IL_0340: Unknown result type (might be due to invalid IL or missing references) //IL_0360: Unknown result type (might be due to invalid IL or missing references) //IL_0380: Unknown result type (might be due to invalid IL or missing references) //IL_03a0: Unknown result type (might be due to invalid IL or missing references) //IL_03c0: 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) //IL_03e2: Unknown result type (might be due to invalid IL or missing references) //IL_0402: Unknown result type (might be due to invalid IL or missing references) //IL_0422: Unknown result type (might be due to invalid IL or missing references) //IL_0442: Unknown result type (might be due to invalid IL or missing references) //IL_01fa: Unknown result type (might be due to invalid IL or missing references) //IL_0266: Unknown result type (might be due to invalid IL or missing references) //IL_027a: Unknown result type (might be due to invalid IL or missing references) //IL_0281: Unknown result type (might be due to invalid IL or missing references) //IL_0286: Unknown result type (might be due to invalid IL or missing references) //IL_02d9: Unknown result type (might be due to invalid IL or missing references) //IL_02a0: Unknown result type (might be due to invalid IL or missing references) //IL_02b4: Unknown result type (might be due to invalid IL or missing references) //IL_02c8: Unknown result type (might be due to invalid IL or missing references) //IL_02cd: Unknown result type (might be due to invalid IL or missing references) _texWhite = TexExt.WithColor(new Texture2D(1, 1), Color.white); _texBlack = TexExt.WithColor(new Texture2D(1, 1), Color.black); _texBSOD = TexExt.WithColor(new Texture2D(1, 1), new Color(0f, 0f, 0.5f)); _texRSOD = TexExt.WithColor(new Texture2D(1, 1), new Color(0.6f, 0f, 0f)); _texXPBlue = TexExt.WithColor(new Texture2D(1, 1), new Color(0.14f, 0.35f, 0.86f)); _texXPGreen = TexExt.WithColor(new Texture2D(1, 1), new Color(0.23f, 0.72f, 0.28f)); _texXPCream = TexExt.WithColor(new Texture2D(1, 1), new Color(0.92f, 0.91f, 0.84f)); _texXPRed = TexExt.WithColor(new Texture2D(1, 1), new Color(0.9f, 0.2f, 0.2f)); _texXPBlueGrad = new Texture2D(1, 32); for (int i = 0; i < 32; i++) { float num = (float)i / 31f; _texXPBlueGrad.SetPixel(0, i, Color.Lerp(new Color(0f, 0.2f, 0.8f), new Color(0.3f, 0.6f, 1f), num)); } _texXPBlueGrad.Apply(); _texBliss = new Texture2D(256, 256); for (int j = 0; j < 256; j++) { for (int k = 0; k < 256; k++) { float num2 = (float)j / 256f; Color val = Color.Lerp(new Color(0.4f, 0.7f, 1f), new Color(0f, 0.3f, 0.8f), num2); if (j > 150) { ((Color)(ref val))..ctor(0.1f, 0.6f, 0.1f); } _texBliss.SetPixel(k, j, val); } } _texBliss.Apply(); _texLake = new Texture2D(256, 256); for (int l = 0; l < 256; l++) { for (int m = 0; m < 256; m++) { float num3 = (float)l / 256f; Color val2 = Color.Lerp(new Color(0.2f, 0f, 0f), new Color(0.5f, 0f, 0f), num3); if (l > 160) { val2 = Color.Lerp(new Color(0.6f, 0f, 0f), new Color(0.1f, 0f, 0f), (float)(l - 160) / 96f); } _texLake.SetPixel(m, l, val2); } } _texLake.Apply(); _texIconGeneric = MakeIcon(new Color(1f, 0.8f, 0f)); _texIconTrash = MakeIcon(new Color(0.7f, 0.7f, 0.7f)); _texIconSolitaire = MakeIcon(new Color(0f, 0.6f, 0f)); _texIconBrowser = MakeIcon(new Color(0f, 0.6f, 1f)); _texIconFlappy = MakeIcon(new Color(1f, 0.8f, 0f)); _texIconPhotos = MakeIcon(new Color(1f, 0.4f, 0.8f)); _texIconRepo = MakeIcon(Color.red); _texIconTetris = MakeIcon(Color.cyan); _texIconFolder = MakeIcon(new Color(0.95f, 0.85f, 0.3f)); _texIconGame1 = MakeIcon(new Color(0.5f, 0f, 0.5f)); _texIconGame2 = MakeIcon(new Color(0f, 0.5f, 0.5f)); _sfxTMove = MakeTone("t_move", 400f, 0.05f); _sfxTRotate = MakeTone("t_rot", 600f, 0.05f); _sfxTDrop = MakeTone("t_drop", 150f, 0.1f); _sfxTLine = MakeTone("t_line", 900f, 0.2f); _sfxTOver = MakeTone("t_over", 100f, 0.5f); } private Texture2D MakeIcon(Color c) { //IL_0004: Unknown result type (might be due to invalid IL or missing references) //IL_000a: Expected O, but got Unknown //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_0038: Unknown result type (might be due to invalid IL or missing references) Texture2D val = new Texture2D(48, 48); for (int i = 0; i < 2304; i++) { val.SetPixel(i % 48, i / 48, Color.clear); } for (int j = 6; j < 42; j++) { for (int k = 6; k < 42; k++) { val.SetPixel(k, j, c); } } val.Apply(); return val; } private void InitBocon() { _boconHunger = _boconHungerConfig.Value; _boconHappy = _boconHappyConfig.Value; _boconEnergy = _boconEnergyConfig.Value; } private void UpdateBocon() { if (_hasDownloadedBBD) { float num = Time.unscaledDeltaTime * 0.5f; _boconHunger = Mathf.Max(0f, _boconHunger - num); _boconHappy = Mathf.Max(0f, _boconHappy - num * 0.8f); _boconEnergy = Mathf.Max(0f, _boconEnergy - num * 0.3f); _boconSaveTimer += Time.unscaledDeltaTime; if (_boconSaveTimer > 10f) { _boconSaveTimer = 0f; SaveBocon(); } } } private void SaveBocon() { _boconHungerConfig.Value = _boconHunger; _boconHappyConfig.Value = _boconHappy; _boconEnergyConfig.Value = _boconEnergy; ((BaseUnityPlugin)this).Config.Save(); } private void DrawBoconContent() { //IL_0014: Unknown result type (might be due to invalid IL or missing references) //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0056: 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_004f: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Unknown result type (might be due to invalid IL or missing references) //IL_00bf: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: 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) GUILayout.BeginVertical(Array.Empty()); Rect rect = GUILayoutUtility.GetRect(200f, 200f); GUI.DrawTexture(rect, (Texture)(object)_texWhite); GUI.color = (Color)((_boconHunger < 30f || _boconHappy < 30f) ? Color.gray : new Color(1f, 0.6f, 0.8f)); GUI.DrawTexture(new Rect(((Rect)(ref rect)).x + 50f, ((Rect)(ref rect)).y + 50f, 180f, 150f), (Texture)(object)(_texIconBBD ?? _texIconGeneric), (ScaleMode)2); GUI.color = Color.white; GUILayout.Space(10f); DrawStatBar("Hunger", _boconHunger, Color.red); DrawStatBar("Happiness", _boconHappy, Color.green); DrawStatBar("Energy", _boconEnergy, Color.yellow); GUILayout.Space(10f); GUILayout.BeginHorizontal(Array.Empty()); if (GUILayout.Button("Feed", Array.Empty())) { _boconHunger = Mathf.Min(100f, _boconHunger + 15f); _boconEnergy -= 2f; } if (GUILayout.Button("Play", Array.Empty())) { _boconHappy = Mathf.Min(100f, _boconHappy + 15f); _boconEnergy -= 5f; _boconHunger -= 5f; } if (GUILayout.Button("Sleep", Array.Empty())) { _boconEnergy = Mathf.Min(100f, _boconEnergy + 20f); _boconHunger -= 2f; } GUILayout.EndHorizontal(); GUILayout.EndVertical(); } private void DrawStatBar(string label, float value, Color c) { //IL_002d: 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_0033: Unknown result type (might be due to invalid IL or missing references) //IL_0073: 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_00c5: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Unknown result type (might be due to invalid IL or missing references) GUILayout.BeginHorizontal(Array.Empty()); GUILayout.Label(label, (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(70f) }); Rect rect = GUILayoutUtility.GetRect(150f, 20f); GUI.DrawTexture(rect, (Texture)(object)_texBlack); GUI.DrawTexture(new Rect(((Rect)(ref rect)).x + 1f, ((Rect)(ref rect)).y + 1f, ((Rect)(ref rect)).width - 2f, ((Rect)(ref rect)).height - 2f), (Texture)(object)_texWhite); GUI.color = c; GUI.DrawTexture(new Rect(((Rect)(ref rect)).x + 1f, ((Rect)(ref rect)).y + 1f, (((Rect)(ref rect)).width - 2f) * (value / 100f), ((Rect)(ref rect)).height - 2f), (Texture)(object)_texWhite); GUI.color = Color.white; GUILayout.EndHorizontal(); } private void DrawFlappyContent() { //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_0091: Unknown result type (might be due to invalid IL or missing references) //IL_00b6: Unknown result type (might be due to invalid IL or missing references) //IL_00e2: Unknown result type (might be due to invalid IL or missing references) //IL_011b: Unknown result type (might be due to invalid IL or missing references) //IL_0147: 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_0160: Unknown result type (might be due to invalid IL or missing references) //IL_0168: Unknown result type (might be due to invalid IL or missing references) //IL_016f: Unknown result type (might be due to invalid IL or missing references) //IL_0175: Unknown result type (might be due to invalid IL or missing references) //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_018b: Expected O, but got Unknown //IL_021a: Unknown result type (might be due to invalid IL or missing references) //IL_0220: Invalid comparison between Unknown and I4 //IL_01a7: Unknown result type (might be due to invalid IL or missing references) //IL_01bb: Unknown result type (might be due to invalid IL or missing references) //IL_01c0: Unknown result type (might be due to invalid IL or missing references) //IL_01c8: Unknown result type (might be due to invalid IL or missing references) //IL_01ce: Unknown result type (might be due to invalid IL or missing references) //IL_01dd: Expected O, but got Unknown //IL_01f1: 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_022e: Invalid comparison between Unknown and I4 if (!_flappyGameActive && !_flappyWaitingForSpace) { GUILayout.FlexibleSpace(); if (GUILayout.Button("Start Game", (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Height(50f) })) { _flappyWaitingForSpace = true; _flappyY = 300f; _flappyVel = 0f; _pipeX = 400f; _flappyDead = false; } GUILayout.FlexibleSpace(); return; } GUI.BeginGroup(GUILayoutUtility.GetRect(380f, 550f)); GUI.DrawTexture(new Rect(0f, 0f, 400f, 600f), (Texture)(object)_texXPBlue); GUI.DrawTexture(new Rect(80f, _flappyY, 30f, 30f), (Texture)(object)_texIconFlappy); GUI.DrawTexture(new Rect(_pipeX, 0f, 60f, _pipeGapY - 80f), (Texture)(object)_texXPGreen); GUI.DrawTexture(new Rect(_pipeX, _pipeGapY + 80f, 60f, 600f - _pipeGapY - 80f), (Texture)(object)_texXPGreen); if (_flappyWaitingForSpace) { Rect val = new Rect(50f, 200f, 300f, 50f); GUIStyle val2 = new GUIStyle(GUI.skin.label) { fontSize = 24, fontStyle = (FontStyle)1 }; val2.normal.textColor = Color.yellow; val2.alignment = (TextAnchor)4; GUI.Label(val, "PRESS SPACE TO START", val2); } if (_flappyDead) { Rect val3 = new Rect(100f, 250f, 200f, 50f); GUIStyle val4 = new GUIStyle(GUI.skin.label) { fontSize = 30 }; val4.normal.textColor = Color.red; GUI.Label(val3, "Game Over", val4); if (GUI.Button(new Rect(120f, 300f, 140f, 40f), "Retry")) { _flappyGameActive = false; _flappyWaitingForSpace = false; } } GUI.EndGroup(); if ((int)Event.current.type == 4 && (int)Event.current.keyCode == 32) { if (_flappyWaitingForSpace) { _flappyWaitingForSpace = false; _flappyGameActive = true; _flappyVel = -8f; } else if (_flappyGameActive && !_flappyDead) { _flappyVel = -8f; } } } private void InitMinesweeper() { //IL_0055: 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) _mineGrid = new int[_mineRows, _mineCols]; _mineRevealed = new bool[_mineRows, _mineCols]; _mineFlagged = new bool[_mineRows, _mineCols]; _mineGameOver = false; _mineWin = false; _texMineFlag = MakeIcon(Color.red); _texMineBomb = MakeIcon(Color.black); int num = 0; while (num < _totalMines) { int num2 = Random.Range(0, _mineRows); int num3 = Random.Range(0, _mineCols); if (_mineGrid[num2, num3] != 9) { _mineGrid[num2, num3] = 9; num++; } } for (int i = 0; i < _mineRows; i++) { for (int j = 0; j < _mineCols; j++) { if (_mineGrid[i, j] == 9) { continue; } int num4 = 0; for (int k = -1; k <= 1; k++) { for (int l = -1; l <= 1; l++) { if (i + k >= 0 && i + k < _mineRows && j + l >= 0 && j + l < _mineCols && _mineGrid[i + k, j + l] == 9) { num4++; } } } _mineGrid[i, j] = num4; } } } private void RevealMine(int r, int c) { if (r < 0 || r >= _mineRows || c < 0 || c >= _mineCols || _mineRevealed[r, c] || _mineFlagged[r, c]) { return; } _mineRevealed[r, c] = true; if (_mineGrid[r, c] == 9) { _mineGameOver = true; } else if (_mineGrid[r, c] == 0) { for (int i = -1; i <= 1; i++) { for (int j = -1; j <= 1; j++) { RevealMine(r + i, c + j); } } } CheckMineWin(); } private void CheckMineWin() { if (_mineGameOver) { return; } int num = 0; for (int i = 0; i < _mineRows; i++) { for (int j = 0; j < _mineCols; j++) { if (!_mineRevealed[i, j]) { num++; } } } if (num == _totalMines) { _mineWin = true; } } private void DrawMinesweeperContent() { //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_0059: 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_0074: Expected O, but got Unknown //IL_010d: Unknown result type (might be due to invalid IL or missing references) //IL_0113: Expected O, but got Unknown //IL_01c4: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Unknown result type (might be due to invalid IL or missing references) //IL_016f: Unknown result type (might be due to invalid IL or missing references) //IL_01b2: Unknown result type (might be due to invalid IL or missing references) //IL_01a0: Unknown result type (might be due to invalid IL or missing references) GUILayout.BeginHorizontal(Array.Empty()); if (GUILayout.Button("New Game", Array.Empty())) { InitMinesweeper(); } string obj = (_mineGameOver ? "GAME OVER" : (_mineWin ? "WINNER!" : "Playing...")); GUIStyle val = new GUIStyle(GUI.skin.label); val.normal.textColor = Color.black; val.fontStyle = (FontStyle)1; GUILayout.Label(obj, val, Array.Empty()); GUILayout.EndHorizontal(); GUILayout.Space(5f); for (int i = 0; i < _mineRows; i++) { GUILayout.BeginHorizontal(Array.Empty()); for (int j = 0; j < _mineCols; j++) { string text = ""; if (_mineRevealed[i, j]) { if (_mineGrid[i, j] == 9) { text = "X"; } else if (_mineGrid[i, j] > 0) { text = _mineGrid[i, j].ToString(); } } else if (_mineFlagged[i, j]) { text = "F"; } GUIStyle val2 = new GUIStyle(GUI.skin.button); if (_mineRevealed[i, j]) { val2.normal.background = _texWhite; if (_mineGrid[i, j] == 9) { val2.normal.textColor = Color.red; } else if (_mineGrid[i, j] == 1) { val2.normal.textColor = Color.blue; } else if (_mineGrid[i, j] == 2) { val2.normal.textColor = new Color(0f, 0.5f, 0f); } else { val2.normal.textColor = Color.black; } } else { val2.normal.textColor = Color.red; } if (GUILayout.Button(text, val2, (GUILayoutOption[])(object)new GUILayoutOption[2] { GUILayout.Width(25f), GUILayout.Height(25f) }) && !_mineGameOver && !_mineWin) { if (Event.current.button == 0) { RevealMine(i, j); } else if (Event.current.button == 1) { _mineFlagged[i, j] = !_mineFlagged[i, j]; } } } GUILayout.EndHorizontal(); } } private void InitPaint() { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_0023: Expected O, but got Unknown //IL_0034: 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) if ((Object)(object)_paintTexture == (Object)null) { _paintTexture = new Texture2D(400, 300); Color[] array = (Color[])(object)new Color[120000]; for (int i = 0; i < array.Length; i++) { array[i] = Color.white; } _paintTexture.SetPixels(array); _paintTexture.Apply(); } } private void DrawPaintContent() { //IL_007f: 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_0097: 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_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_00be: Unknown result type (might be due to invalid IL or missing references) //IL_00c3: 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_00b8: Unknown result type (might be due to invalid IL or missing references) //IL_00d6: Unknown result type (might be due to invalid IL or missing references) //IL_00cf: Unknown result type (might be due to invalid IL or missing references) //IL_00fd: Unknown result type (might be due to invalid IL or missing references) //IL_0102: Unknown result type (might be due to invalid IL or missing references) //IL_00f2: 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_0115: Unknown result type (might be due to invalid IL or missing references) //IL_010e: Unknown result type (might be due to invalid IL or missing references) //IL_013c: Unknown result type (might be due to invalid IL or missing references) //IL_0141: Unknown result type (might be due to invalid IL or missing references) //IL_0131: Unknown result type (might be due to invalid IL or missing references) //IL_0136: Unknown result type (might be due to invalid IL or missing references) //IL_0154: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Unknown result type (might be due to invalid IL or missing references) //IL_017b: Unknown result type (might be due to invalid IL or missing references) //IL_0180: Unknown result type (might be due to invalid IL or missing references) //IL_0170: Unknown result type (might be due to invalid IL or missing references) //IL_0175: Unknown result type (might be due to invalid IL or missing references) //IL_0193: Unknown result type (might be due to invalid IL or missing references) //IL_018c: Unknown result type (might be due to invalid IL or missing references) //IL_01b9: Unknown result type (might be due to invalid IL or missing references) //IL_020b: Unknown result type (might be due to invalid IL or missing references) //IL_0210: Unknown result type (might be due to invalid IL or missing references) //IL_0211: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Unknown result type (might be due to invalid IL or missing references) //IL_01af: Unknown result type (might be due to invalid IL or missing references) //IL_01b4: Unknown result type (might be due to invalid IL or missing references) //IL_02b8: Unknown result type (might be due to invalid IL or missing references) //IL_02be: Invalid comparison between Unknown and I4 //IL_025a: Unknown result type (might be due to invalid IL or missing references) //IL_0329: Unknown result type (might be due to invalid IL or missing references) //IL_032f: Invalid comparison between Unknown and I4 //IL_0272: Unknown result type (might be due to invalid IL or missing references) //IL_0279: Unknown result type (might be due to invalid IL or missing references) //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0283: Unknown result type (might be due to invalid IL or missing references) //IL_0286: Unknown result type (might be due to invalid IL or missing references) //IL_028f: Unknown result type (might be due to invalid IL or missing references) //IL_0298: 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_02a4: Unknown result type (might be due to invalid IL or missing references) //IL_02cd: Unknown result type (might be due to invalid IL or missing references) //IL_02d4: Unknown result type (might be due to invalid IL or missing references) //IL_02d9: Unknown result type (might be due to invalid IL or missing references) //IL_02de: Unknown result type (might be due to invalid IL or missing references) //IL_02e2: Unknown result type (might be due to invalid IL or missing references) //IL_02eb: Unknown result type (might be due to invalid IL or missing references) //IL_0300: Unknown result type (might be due to invalid IL or missing references) //IL_030e: Unknown result type (might be due to invalid IL or missing references) //IL_0313: Unknown result type (might be due to invalid IL or missing references) //IL_031b: Unknown result type (might be due to invalid IL or missing references) //IL_031d: Unknown result type (might be due to invalid IL or missing references) GUILayout.BeginHorizontal(Array.Empty()); GUILayout.BeginVertical((GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(50f) }); if (GUILayout.Button("Clr", Array.Empty())) { Color[] array = (Color[])(object)new Color[120000]; for (int i = 0; i < array.Length; i++) { array[i] = Color.white; } _paintTexture.SetPixels(array); _paintTexture.Apply(); } GUILayout.Space(5f); GUI.backgroundColor = ((_paintColor == Color.black) ? Color.gray : Color.white); if (GUILayout.Button("Blk", Array.Empty())) { _paintColor = Color.black; } GUI.backgroundColor = ((_paintColor == Color.red) ? Color.gray : Color.white); if (GUILayout.Button("Red", Array.Empty())) { _paintColor = Color.red; } GUI.backgroundColor = ((_paintColor == Color.blue) ? Color.gray : Color.white); if (GUILayout.Button("Blu", Array.Empty())) { _paintColor = Color.blue; } GUI.backgroundColor = ((_paintColor == Color.green) ? Color.gray : Color.white); if (GUILayout.Button("Grn", Array.Empty())) { _paintColor = Color.green; } GUI.backgroundColor = ((_paintColor == Color.white) ? Color.gray : Color.white); if (GUILayout.Button("Ers", Array.Empty())) { _paintColor = Color.white; } GUI.backgroundColor = Color.white; GUILayout.Space(5f); GUILayout.Label("Size", Array.Empty()); _paintBrushSize = GUILayout.HorizontalSlider(_paintBrushSize, 1f, 10f, Array.Empty()); GUILayout.EndVertical(); Rect rect = GUILayoutUtility.GetRect(400f, 300f); GUI.DrawTexture(rect, (Texture)(object)_paintTexture); float num = (float)((Texture)_paintTexture).width / ((Rect)(ref rect)).width; float num2 = (float)((Texture)_paintTexture).height / ((Rect)(ref rect)).height; if ((int)Event.current.type == 0 && ((Rect)(ref rect)).Contains(Event.current.mousePosition)) { _isPainting = true; Vector2 val = Event.current.mousePosition - ((Rect)(ref rect)).position; _lastPaintPos = new Vector2(val.x * num, val.y * num2); PaintAt(_lastPaintPos); } else if ((int)Event.current.type == 3 && _isPainting) { Vector2 val2 = Event.current.mousePosition - ((Rect)(ref rect)).position; Vector2 val3 = default(Vector2); ((Vector2)(ref val3))..ctor(val2.x * num, val2.y * num2); if (((Rect)(ref rect)).Contains(Event.current.mousePosition)) { PaintLine(_lastPaintPos, val3); _lastPaintPos = val3; } } else if ((int)Event.current.type == 1) { _isPainting = false; } GUILayout.EndHorizontal(); } private void PaintAt(Vector2 pos) { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0013: 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) int num = (int)pos.x; int num2 = ((Texture)_paintTexture).height - (int)pos.y; int num3 = (int)_paintBrushSize; for (int i = -num3; i <= num3; i++) { for (int j = -num3; j <= num3; j++) { if (num + i >= 0 && num + i < ((Texture)_paintTexture).width && num2 + j >= 0 && num2 + j < ((Texture)_paintTexture).height) { _paintTexture.SetPixel(num + i, num2 + j, _paintColor); } } } _paintTexture.Apply(); } private void PaintLine(Vector2 from, Vector2 to) { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0001: 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_0012: 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) float num = Vector2.Distance(from, to); for (float num2 = 0f; num2 <= 1f; num2 += 1f / num) { PaintAt(Vector2.Lerp(from, to, num2)); } } private void InitGame1() { _g1Target = Random.Range(1, 101); _g1Msg = "I'm thinking of a number 1-100."; _g1Input = ""; } private void DrawGame1Content() { //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_0015: 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_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002a: Unknown result type (might be due to invalid IL or missing references) //IL_003e: Expected O, but got Unknown string g1Msg = _g1Msg; GUIStyle val = new GUIStyle(GUI.skin.label) { fontSize = 14, alignment = (TextAnchor)4 }; val.normal.textColor = Color.black; GUILayout.Label(g1Msg, val, Array.Empty()); GUILayout.Space(20f); GUILayout.BeginHorizontal(Array.Empty()); GUILayout.FlexibleSpace(); _g1Input = GUILayout.TextField(_g1Input, 3, (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(50f) }); if (GUILayout.Button("Guess", (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(60f) })) { if (int.TryParse(_g1Input, out var result)) { if (result < _g1Target) { _g1Msg = "Higher!"; } else if (result > _g1Target) { _g1Msg = "Lower!"; } else { _g1Msg = "Correct! You win!"; } } _g1Input = ""; } GUILayout.FlexibleSpace(); GUILayout.EndHorizontal(); GUILayout.Space(20f); if (GUILayout.Button("Reset", Array.Empty())) { InitGame1(); } } private void InitGame2() { for (int i = 0; i < 9; i++) { _g2Board[i] = ""; } _g2XTurn = true; _g2Winner = ""; } private void DrawGame2Content() { //IL_0027: Unknown result type (might be due to invalid IL or missing references) //IL_002c: 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_003b: 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_0055: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009a: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_00a7: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Expected O, but got Unknown if (!string.IsNullOrEmpty(_g2Winner)) { string text = "Winner: " + _g2Winner; GUIStyle val = new GUIStyle(GUI.skin.label) { fontSize = 20, alignment = (TextAnchor)4 }; val.normal.textColor = Color.red; GUILayout.Label(text, val, Array.Empty()); if (GUILayout.Button("Play Again", Array.Empty())) { InitGame2(); } return; } string text2 = "Turn: " + (_g2XTurn ? "X" : "O"); GUIStyle val2 = new GUIStyle(GUI.skin.label) { alignment = (TextAnchor)4 }; val2.normal.textColor = Color.black; GUILayout.Label(text2, val2, Array.Empty()); for (int i = 0; i < 3; i++) { GUILayout.BeginHorizontal(Array.Empty()); GUILayout.FlexibleSpace(); for (int j = 0; j < 3; j++) { int num = i * 3 + j; if (GUILayout.Button(_g2Board[num], (GUILayoutOption[])(object)new GUILayoutOption[2] { GUILayout.Width(50f), GUILayout.Height(50f) }) && string.IsNullOrEmpty(_g2Board[num])) { _g2Board[num] = (_g2XTurn ? "X" : "O"); CheckG2Win(); _g2XTurn = !_g2XTurn; } } GUILayout.FlexibleSpace(); GUILayout.EndHorizontal(); } } private void CheckG2Win() { int[][] array = new int[8][] { new int[3] { 0, 1, 2 }, new int[3] { 3, 4, 5 }, new int[3] { 6, 7, 8 }, new int[3] { 0, 3, 6 }, new int[3] { 1, 4, 7 }, new int[3] { 2, 5, 8 }, new int[3] { 0, 4, 8 }, new int[3] { 2, 4, 6 } }; foreach (int[] array2 in array) { if (!string.IsNullOrEmpty(_g2Board[array2[0]]) && _g2Board[array2[0]] == _g2Board[array2[1]] && _g2Board[array2[1]] == _g2Board[array2[2]]) { _g2Winner = _g2Board[array2[0]]; return; } } bool flag = true; string[] g2Board = _g2Board; for (int i = 0; i < g2Board.Length; i++) { if (string.IsNullOrEmpty(g2Board[i])) { flag = false; } } if (flag && string.IsNullOrEmpty(_g2Winner)) { _g2Winner = "Draw"; } } private Rect DrawDraggableXPWindow(Rect rect, string title, string key, Action content, Action close) { //IL_0038: 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) //IL_0046: 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_00d7: Unknown result type (might be due to invalid IL or missing references) //IL_00dd: Invalid comparison between Unknown and I4 //IL_00ae: Unknown result type (might be due to invalid IL or missing references) //IL_00b4: Invalid comparison between Unknown and I4 //IL_0085: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Unknown result type (might be due to invalid IL or missing references) //IL_0091: Unknown result type (might be due to invalid IL or missing references) //IL_0096: Unknown result type (might be due to invalid IL or missing references) //IL_00fa: 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_013c: Unknown result type (might be due to invalid IL or missing references) //IL_0146: Unknown result type (might be due to invalid IL or missing references) //IL_016c: Unknown result type (might be due to invalid IL or missing references) //IL_01a4: Unknown result type (might be due to invalid IL or missing references) //IL_01ce: Unknown result type (might be due to invalid IL or missing references) //IL_0206: Unknown result type (might be due to invalid IL or missing references) //IL_0216: Unknown result type (might be due to invalid IL or missing references) //IL_0248: 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_028a: Unknown result type (might be due to invalid IL or missing references) //IL_0296: Unknown result type (might be due to invalid IL or missing references) //IL_02a6: Unknown result type (might be due to invalid IL or missing references) //IL_02ab: Unknown result type (might be due to invalid IL or missing references) //IL_02b2: Unknown result type (might be due to invalid IL or missing references) //IL_02b8: 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: Expected O, but got Unknown //IL_00bd: Unknown result type (might be due to invalid IL or missing references) //IL_00c3: Unknown result type (might be due to invalid IL or missing references) //IL_00c8: Unknown result type (might be due to invalid IL or missing references) //IL_031e: 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) Rect val = default(Rect); ((Rect)(ref val))..ctor(((Rect)(ref rect)).x + 3f, ((Rect)(ref rect)).y + 3f, ((Rect)(ref rect)).width - 6f, 25f); if ((int)Event.current.type == 0 && ((Rect)(ref rect)).Contains(Event.current.mousePosition)) { BringToFront(key); } if ((int)Event.current.type == 0 && ((Rect)(ref val)).Contains(Event.current.mousePosition)) { _draggedWindowKey = key; _windowPosOffset = Event.current.mousePosition - ((Rect)(ref rect)).position; } if (_draggedWindowKey == key && (int)Event.current.type == 3) { ((Rect)(ref rect)).position = Event.current.mousePosition - _windowPosOffset; } if ((int)Event.current.type == 1) { _draggedWindowKey = null; } GUI.color = new Color(0f, 0f, 0f, 0.3f); GUI.DrawTexture(new Rect(((Rect)(ref rect)).x + 4f, ((Rect)(ref rect)).y + 4f, ((Rect)(ref rect)).width, ((Rect)(ref rect)).height), (Texture)(object)_texWhite); GUI.color = Color.white; GUI.DrawTexture(rect, (Texture)(object)_texXPCream); GUI.DrawTexture(new Rect(((Rect)(ref rect)).x, ((Rect)(ref rect)).y, ((Rect)(ref rect)).width, 3f), (Texture)(object)_texXPBlue); GUI.DrawTexture(new Rect(((Rect)(ref rect)).x, ((Rect)(ref rect)).y + ((Rect)(ref rect)).height - 3f, ((Rect)(ref rect)).width, 3f), (Texture)(object)_texXPBlue); GUI.DrawTexture(new Rect(((Rect)(ref rect)).x, ((Rect)(ref rect)).y, 3f, ((Rect)(ref rect)).height), (Texture)(object)_texXPBlue); GUI.DrawTexture(new Rect(((Rect)(ref rect)).x + ((Rect)(ref rect)).width - 3f, ((Rect)(ref rect)).y, 3f, ((Rect)(ref rect)).height), (Texture)(object)_texXPBlue); GUI.DrawTexture(val, (Texture)(object)_texXPBlueGrad); GUI.Label(new Rect(((Rect)(ref rect)).x + 10f, ((Rect)(ref rect)).y + 4f, ((Rect)(ref rect)).width, 25f), title, _styleWindowHeader); Rect val2 = new Rect(((Rect)(ref rect)).x + ((Rect)(ref rect)).width - 25f, ((Rect)(ref rect)).y + 5f, 20f, 20f); GUI.DrawTexture(val2, (Texture)(object)_texXPRed); GUIStyle val3 = new GUIStyle(GUI.skin.label) { alignment = (TextAnchor)4 }; val3.normal.textColor = Color.white; val3.fontStyle = (FontStyle)1; GUI.Label(val2, "X", val3); if (GUI.Button(val2, "", GUIStyle.none)) { close?.Invoke(); } GUILayout.BeginArea(new Rect(((Rect)(ref rect)).x + 10f, ((Rect)(ref rect)).y + 35f, ((Rect)(ref rect)).width - 20f, ((Rect)(ref rect)).height - 45f)); content(); GUILayout.EndArea(); return rect; } private void DrawXPWindow(Rect rect, string title, Action content) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_000a: Unknown result type (might be due to invalid IL or missing references) DrawDraggableXPWindow(rect, title, "", content, null); } private void DrawDesktopIcons() { //IL_006f: 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_00b1: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: 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_016d: Unknown result type (might be due to invalid IL or missing references) //IL_01a5: Unknown result type (might be due to invalid IL or missing references) //IL_01dd: Unknown result type (might be due to invalid IL or missing references) //IL_0225: 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_029f: Unknown result type (might be due to invalid IL or missing references) //IL_02e1: Unknown result type (might be due to invalid IL or missing references) //IL_0323: Unknown result type (might be due to invalid IL or missing references) //IL_0365: Unknown result type (might be due to invalid IL or missing references) //IL_03af: Unknown result type (might be due to invalid IL or missing references) //IL_03f9: Unknown result type (might be due to invalid IL or missing references) //IL_0443: 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_0528: Unknown result type (might be due to invalid IL or missing references) //IL_04dc: Unknown result type (might be due to invalid IL or missing references) float num = 20f; float num2 = 20f; float num3 = 90f; int num4 = 0; if (_repoInstalledConfig.Value) { DrawIcon(new Rect(num + (float)(num4 * 80), num2, 64f, 80f), "R.E.P.O.", _texIconRepo, delegate { LaunchGame(); }); } else { DrawIcon(new Rect(num + (float)(num4 * 80), num2, 64f, 80f), "Setup.exe", _texIconFitGirl ?? _texIconGeneric, delegate { OpenWindow("Installer"); }); } num2 += num3; DrawIcon(new Rect(num + (float)(num4 * 80), num2, 64f, 80f), "My Souls", _texIconSouls ?? _texIconGeneric, delegate { OpenWindow("SoulHarvester"); }); num2 += num3; DrawIcon(new Rect(num + (float)(num4 * 80), num2, 64f, 80f), "CMD", _texIconCMD ?? _texIconGeneric, delegate { OpenWindow("CMD"); }); num2 += num3; DrawIcon(new Rect(num + (float)(num4 * 80), num2, 64f, 80f), "Solitaire", _texIconSolitaire, delegate { OpenWindow("Solitaire"); }); num2 += num3; DrawIcon(new Rect(num + (float)(num4 * 80), num2, 64f, 80f), "Empress Explorer", _texIconBrowser, delegate { OpenWindow("Browser"); }); num2 += num3; DrawIcon(new Rect(num + (float)(num4 * 80), num2, 64f, 80f), "Flappy Bird", _texIconFlappy, delegate { OpenWindow("Flappy"); }); num2 += num3; DrawIcon(new Rect(num + (float)(num4 * 80), num2, 64f, 80f), "My Photos", _texIconFolder ?? _texIconPhotos, delegate { OpenWindow("Photos"); }); num2 += num3; num2 = 20f; num4++; DrawIcon(new Rect(num + (float)(num4 * 80), num2, 64f, 80f), "Oetris", _texIconTetris, delegate { OpenWindow("Tetris"); }); num2 += num3; DrawIcon(new Rect(num + (float)(num4 * 80), num2, 64f, 80f), "Norton AV", _texIconNorton ?? _texIconGeneric, delegate { OpenWindow("Norton"); }); num2 += num3; DrawIcon(new Rect(num + (float)(num4 * 80), num2, 64f, 80f), "Limewire", _texIconLimewire ?? _texIconGeneric, delegate { OpenWindow("Limewire"); }); num2 += num3; DrawIcon(new Rect(num + (float)(num4 * 80), num2, 64f, 80f), "Minesweeper", _texIconMine ?? _texIconGeneric, delegate { OpenWindow("Minesweeper"); }); num2 += num3; DrawIcon(new Rect(num + (float)(num4 * 80), num2, 64f, 80f), "Paint", _texIconPaint ?? _texIconGeneric, delegate { OpenWindow("Paint"); }); num2 += num3; DrawIcon(new Rect(num + (float)(num4 * 80), num2, 64f, 80f), "MSN", _texIconMSN ?? _texIconGeneric, delegate { OpenWindow("MSN"); }); num2 += num3; if (_hasDownloadedLinkinPark) { DrawIcon(new Rect(num + (float)(num4 * 80), num2, 64f, 80f), "LinkinPark.exe", _texIconLinkinPark ?? _texIconGeneric, delegate { OpenWindow("Media"); if (!_videoPlayer.isPlaying) { _videoPlayer.Play(); } }); num2 += num3; } if (_hasDownloadedBBD) { DrawIcon(new Rect(num + (float)(num4 * 80), num2, 64f, 80f), "BBD.exe", _texIconBBD ?? _texIconGeneric, delegate { OpenWindow("Bocon"); }); num2 += num3; } if (_hasDownloadedSkript) { DrawIcon(new Rect(num + (float)(num4 * 80), num2, 64f, 80f), "SAIA.exe", _texIconSkript ?? _texIconGeneric, delegate { OpenWindow("Skript"); InitSkript(); }); num2 += num3; } num2 = 20f; num4++; if (_hasGame1) { DrawIcon(new Rect(num + (float)(num4 * 80), num2, 64f, 80f), "NumberGuess", _texIconGame1 ?? _texIconGeneric, delegate { OpenWindow("Game1"); }); num2 += num3; } if (_hasGame2) { DrawIcon(new Rect(num + (float)(num4 * 80), num2, 64f, 80f), "TicTacToe", _texIconGame2 ?? _texIconGeneric, delegate { OpenWindow("Game2"); }); num2 += num3; } DrawIcon(new Rect((float)(Screen.width - 80), (float)(Screen.height - 120), 64f, 80f), "Recycle Bin", _texIconTrash, delegate { _currentState = OSState.RSOD; }); } private void DrawIcon(Rect r, string label, Texture2D icon, Action onDblClick) { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Unknown result type (might be due to invalid IL or missing references) if (GUI.Button(r, "", GUIStyle.none)) { if (Time.unscaledTime - _lastClickTime < 0.5f) { onDblClick(); } _lastClickTime = Time.unscaledTime; } if ((Object)(object)icon != (Object)null) { GUI.DrawTexture(new Rect(((Rect)(ref r)).x + 8f, ((Rect)(ref r)).y + 4f, 48f, 48f), (Texture)(object)icon); } GUI.Label(new Rect(((Rect)(ref r)).x, ((Rect)(ref r)).y + 56f, 64f, 40f), label, _styleDesktopIcon); } private void DrawTaskBar() { //IL_0019: 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_0046: Unknown result type (might be due to invalid IL or missing references) //IL_006a: Unknown result type (might be due to invalid IL or missing references) //IL_007e: 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_008a: Unknown result type (might be due to invalid IL or missing references) //IL_0092: Unknown result type (might be due to invalid IL or missing references) //IL_0098: Unknown result type (might be due to invalid IL or missing references) //IL_00a2: Unknown result type (might be due to invalid IL or missing references) //IL_00ae: Expected O, but got Unknown //IL_00ea: Unknown result type (might be due to invalid IL or missing references) //IL_010b: Unknown result type (might be due to invalid IL or missing references) //IL_0110: Unknown result type (might be due to invalid IL or missing references) //IL_0116: Unknown result type (might be due to invalid IL or missing references) //IL_0120: Unknown result type (might be due to invalid IL or missing references) //IL_0127: Unknown result type (might be due to invalid IL or missing references) //IL_0134: Expected O, but got Unknown //IL_015a: Unknown result type (might be due to invalid IL or missing references) //IL_0185: Unknown result type (might be due to invalid IL or missing references) //IL_01b0: Unknown result type (might be due to invalid IL or missing references) //IL_01ca: Unknown result type (might be due to invalid IL or missing references) //IL_01cf: Unknown result type (might be due to invalid IL or missing references) //IL_01d6: Unknown result type (might be due to invalid IL or missing references) //IL_01dc: Unknown result type (might be due to invalid IL or missing references) //IL_01eb: Expected O, but got Unknown //IL_0206: Unknown result type (might be due to invalid IL or missing references) //IL_0238: Unknown result type (might be due to invalid IL or missing references) //IL_026f: Unknown result type (might be due to invalid IL or missing references) GUI.DrawTexture(new Rect(0f, (float)(Screen.height - 30), (float)Screen.width, 30f), (Texture)(object)_texXPBlue); Rect val = new Rect(0f, (float)(Screen.height - 30), 100f, 30f); GUI.DrawTexture(val, (Texture)(object)_texXPGreen); Rect val2 = new Rect(10f, (float)(Screen.height - 30), 100f, 30f); GUIStyle val3 = new GUIStyle(GUI.skin.label) { fontStyle = (FontStyle)3, fontSize = 18 }; val3.normal.textColor = Color.white; val3.alignment = (TextAnchor)4; GUI.Label(val2, "Start", val3); if (GUI.Button(val, "", GUIStyle.none)) { _startMenuOpen = !_startMenuOpen; } Rect val4 = new Rect((float)(Screen.width - 80), (float)(Screen.height - 30), 80f, 30f); string text = DateTime.Now.ToString("HH:mm"); GUIStyle val5 = new GUIStyle(GUI.skin.label); val5.normal.textColor = Color.white; val5.alignment = (TextAnchor)4; val5.fontSize = 14; GUI.Label(val4, text, val5); if (_startMenuOpen) { GUI.DrawTexture(new Rect(0f, (float)(Screen.height - 330), 200f, 300f), (Texture)(object)_texWhite); GUI.DrawTexture(new Rect(2f, (float)(Screen.height - 328), 196f, 40f), (Texture)(object)_texXPBlue); Rect val6 = new Rect(10f, (float)(Screen.height - 325), 180f, 30f); string value = _usernameConfig.Value; GUIStyle val7 = new GUIStyle(GUI.skin.label) { fontStyle = (FontStyle)1 }; val7.normal.textColor = Color.white; GUI.Label(val6, value, val7); if (GUI.Button(new Rect(10f, (float)(Screen.height - 280), 180f, 30f), "Run Game")) { LaunchGame(); } if (GUI.Button(new Rect(10f, (float)(Screen.height - 240), 180f, 30f), "Solitaire")) { OpenWindow("Solitaire"); } if (GUI.Button(new Rect(10f, (float)(Screen.height - 200), 180f, 30f), "Log Off")) { Application.Quit(); } } } private void DrawCenteredText(float x, float y, string text, int size, Color col, bool bold) { //IL_000a: Unknown result type (might be due to invalid IL or missing references) //IL_000f: 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_001d: 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_0033: Expected O, but got Unknown //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_003a: 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_0041: 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) //IL_005c: 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_0068: Unknown result type (might be due to invalid IL or missing references) GUIStyle val = new GUIStyle(GUI.skin.label) { fontSize = size }; val.normal.textColor = col; val.fontStyle = (FontStyle)(bold ? 1 : 0); GUIStyle val2 = val; Vector2 val3 = val2.CalcSize(new GUIContent(text)); GUI.Label(new Rect(x - val3.x / 2f, y - val3.y / 2f, val3.x, val3.y), text, val2); } private void SetupStyles() { //IL_000b: Unknown result type (might be due to invalid IL or missing references) //IL_0010: 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_001f: Unknown result type (might be due to invalid IL or missing references) //IL_0025: Unknown result type (might be due to invalid IL or missing references) //IL_002f: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Expected O, but got Unknown //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_0052: 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_0062: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Expected O, but got Unknown //IL_007a: Unknown result type (might be due to invalid IL or missing references) //IL_007f: 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_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_00a4: Expected O, but got Unknown //IL_00af: 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_00ba: 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_00cc: Unknown result type (might be due to invalid IL or missing references) //IL_00d8: Expected O, but got Unknown //IL_00e3: Unknown result type (might be due to invalid IL or missing references) //IL_00e8: 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_00f7: Unknown result type (might be due to invalid IL or missing references) //IL_00fd: Unknown result type (might be due to invalid IL or missing references) //IL_010c: Expected O, but got Unknown GUIStyle val = new GUIStyle(GUI.skin.label) { alignment = (TextAnchor)1, fontSize = 12 }; val.normal.textColor = Color.white; val.fontStyle = (FontStyle)1; _styleDesktopIcon = val; GUIStyle val2 = new GUIStyle(GUI.skin.label) { fontStyle = (FontStyle)1 }; val2.normal.textColor = Color.white; val2.fontSize = 14; _styleWindowHeader = val2; GUIStyle val3 = new GUIStyle(GUI.skin.box); val3.normal.background = _texWhite; val3.border = new RectOffset(4, 4, 4, 4); _styleCard = val3; GUIStyle val4 = new GUIStyle(GUI.skin.label); val4.normal.textColor = Color.white; val4.fontSize = 14; val4.alignment = (TextAnchor)4; _styleTaskbarClock = val4; GUIStyle val5 = new GUIStyle(GUI.skin.label) { alignment = (TextAnchor)1, fontSize = 11 }; val5.normal.textColor = Color.black; _styleFolderIcon = val5; } private void InitMSN() { //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Unknown result type (might be due to invalid IL or missing references) //IL_0091: Unknown result type (might be due to invalid IL or missing references) //IL_00d7: 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_0113: Unknown result type (might be due to invalid IL or missing references) //IL_0118: Unknown result type (might be due to invalid IL or missing references) //IL_014f: Unknown result type (might be due to invalid IL or missing references) //IL_0154: Unknown result type (might be due to invalid IL or missing references) //IL_018b: Unknown result type (might be due to invalid IL or missing references) //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_01c7: Unknown result type (might be due to invalid IL or missing references) //IL_01cc: Unknown result type (might be due to invalid IL or missing references) //IL_0203: 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) if (_chatEngine == null) { _chatEngine = new ChatEngine(); _chatEngine.Init(); } if (_msnContacts.Count == 0) { _msnContacts.Add(new MsnContact { Name = "SmarterChild", Status = "Online", StatusColor = Color.green, PersonalMessage = "Ask me anything!" }); _msnContacts.Add(new MsnContact { Name = "Bocon", Status = "Busy", StatusColor = Color.red, PersonalMessage = "Playing Barbie DreamHouse" }); _msnContacts.Add(new MsnContact { Name = "RepackerX", Status = "Away", StatusColor = new Color(1f, 0.8f, 0f), PersonalMessage = "Compressing..." }); _msnContacts.Add(new MsnContact { Name = "Skript", Status = "Online", StatusColor = Color.green, PersonalMessage = "In Argentina" }); _msnContacts.Add(new MsnContact { Name = "DarkSoul", Status = "Online", StatusColor = Color.black, PersonalMessage = "..." }); _msnContacts.Add(new MsnContact { Name = "GamerDude", Status = "Online", StatusColor = Color.green, PersonalMessage = "Gaming hard" }); _msnContacts.Add(new MsnContact { Name = "RetroFan", Status = "Online", StatusColor = Color.green, PersonalMessage = "X O X" }); _msnContacts.Add(new MsnContact { Name = "Bill Gates", Status = "Offline", StatusColor = Color.gray, PersonalMessage = "" }); } _msnState = MSNState.Login; _msnTitle = "MSN Messenger"; } public void TriggerMSNFileTransfer(string contactName, string fileName, string type) { _msnContacts.Find((MsnContact c) => c.Name == contactName)?.History.Add(new ChatMessage { Sender = contactName, Content = "Sending file: " + fileName, IsFileTransfer = true, FileName = fileName, FileAccepted = false, OnAcceptFile = delegate { if (type == "virus") { ActivateVirus(); } if (type == "game1") { ActivateGame1(); } if (type == "game2") { ActivateGame2(); } } }); } private void DrawMSNContent() { //IL_019b: Unknown result type (might be due to invalid IL or missing references) //IL_01a0: Unknown result type (might be due to invalid IL or missing references) //IL_01a7: Unknown result type (might be due to invalid IL or missing references) //IL_01af: Unknown result type (might be due to invalid IL or missing references) //IL_01b5: Unknown result type (might be due to invalid IL or missing references) //IL_01c9: Expected O, but got Unknown //IL_06ab: Unknown result type (might be due to invalid IL or missing references) //IL_06b0: 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_06bd: Unknown result type (might be due to invalid IL or missing references) //IL_06d1: Expected O, but got Unknown //IL_06e0: Unknown result type (might be due to invalid IL or missing references) //IL_0706: Unknown result type (might be due to invalid IL or missing references) //IL_0710: Unknown result type (might be due to invalid IL or missing references) //IL_0715: Unknown result type (might be due to invalid IL or missing references) //IL_0729: Unknown result type (might be due to invalid IL or missing references) //IL_072e: Unknown result type (might be due to invalid IL or missing references) //IL_0734: Unknown result type (might be due to invalid IL or missing references) //IL_073e: Unknown result type (might be due to invalid IL or missing references) //IL_0750: Expected O, but got Unknown //IL_0286: 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_0292: Unknown result type (might be due to invalid IL or missing references) //IL_0298: Unknown result type (might be due to invalid IL or missing references) //IL_02ac: Expected O, but got Unknown //IL_02bb: 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_02c8: Unknown result type (might be due to invalid IL or missing references) //IL_02cf: Unknown result type (might be due to invalid IL or missing references) //IL_02d5: Unknown result type (might be due to invalid IL or missing references) //IL_02e9: Expected O, but got Unknown //IL_02fd: Unknown result type (might be due to invalid IL or missing references) //IL_030f: 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_031e: Unknown result type (might be due to invalid IL or missing references) //IL_0351: Unknown result type (might be due to invalid IL or missing references) //IL_0356: Unknown result type (might be due to invalid IL or missing references) //IL_035d: Unknown result type (might be due to invalid IL or missing references) //IL_0363: Unknown result type (might be due to invalid IL or missing references) //IL_0377: Expected O, but got Unknown //IL_07c6: Unknown result type (might be due to invalid IL or missing references) //IL_07cb: Unknown result type (might be due to invalid IL or missing references) //IL_07d2: Unknown result type (might be due to invalid IL or missing references) //IL_07d8: Unknown result type (might be due to invalid IL or missing references) //IL_07ec: Expected O, but got Unknown //IL_094f: 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_03e4: 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_050f: 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_051c: Unknown result type (might be due to invalid IL or missing references) //IL_0530: Expected O, but got Unknown //IL_0804: Unknown result type (might be due to invalid IL or missing references) //IL_0809: Unknown result type (might be due to invalid IL or missing references) //IL_080f: Unknown result type (might be due to invalid IL or missing references) //IL_0823: Expected O, but got Unknown //IL_0428: Unknown result type (might be due to invalid IL or missing references) //IL_042d: Unknown result type (might be due to invalid IL or missing references) //IL_0433: Unknown result type (might be due to invalid IL or missing references) //IL_0447: Expected O, but got Unknown //IL_08a4: Unknown result type (might be due to invalid IL or missing references) //IL_089d: Unknown result type (might be due to invalid IL or missing references) //IL_08a9: Unknown result type (might be due to invalid IL or missing references) //IL_08b5: Unknown result type (might be due to invalid IL or missing references) //IL_08ba: Unknown result type (might be due to invalid IL or missing references) //IL_08c0: 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_08d9: Expected O, but got Unknown //IL_08ea: Unknown result type (might be due to invalid IL or missing references) //IL_08ef: Unknown result type (might be due to invalid IL or missing references) //IL_08f5: Unknown result type (might be due to invalid IL or missing references) //IL_08ff: Unknown result type (might be due to invalid IL or missing references) //IL_0910: Expected O, but got Unknown //IL_0569: Unknown result type (might be due to invalid IL or missing references) //IL_059d: Unknown result type (might be due to invalid IL or missing references) //IL_05b8: Unknown result type (might be due to invalid IL or missing references) //IL_05bd: Unknown result type (might be due to invalid IL or missing references) //IL_05c3: Unknown result type (might be due to invalid IL or missing references) //IL_05d7: Expected O, but got Unknown if (_msnState == MSNState.Login) { GUILayout.BeginVertical(Array.Empty()); GUILayout.FlexibleSpace(); GUILayout.BeginHorizontal(Array.Empty()); GUILayout.FlexibleSpace(); if ((Object)(object)_texIconMSN != (Object)null) { GUILayout.Box((Texture)(object)_texIconMSN, GUIStyle.none, (GUILayoutOption[])(object)new GUILayoutOption[2] { GUILayout.Width(64f), GUILayout.Height(64f) }); } GUILayout.FlexibleSpace(); GUILayout.EndHorizontal(); GUILayout.Space(20f); GUILayout.BeginHorizontal(Array.Empty()); GUILayout.FlexibleSpace(); GUILayout.BeginVertical((GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(200f) }); GUILayout.Label("E-mail Address:", Array.Empty()); _msnEmail = GUILayout.TextField(_msnEmail, Array.Empty()); GUILayout.Space(5f); GUILayout.Label("Password:", Array.Empty()); _msnPassword = GUILayout.PasswordField(_msnPassword, '*', Array.Empty()); GUILayout.Space(5f); GUILayout.BeginHorizontal(Array.Empty()); GUILayout.Toggle(false, "Remember me", Array.Empty()); GUILayout.EndHorizontal(); GUILayout.Space(15f); if (GUILayout.Button("Sign In", (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Height(30f) })) { _msnState = MSNState.ContactList; _msnTitle = "MSN Messenger - Signed In"; _msnEmail = _usernameConfig.Value + "@hotmail.com"; } GUILayout.EndVertical(); GUILayout.FlexibleSpace(); GUILayout.EndHorizontal(); GUILayout.FlexibleSpace(); GUIStyle val = new GUIStyle(GUI.skin.label) { alignment = (TextAnchor)4, fontSize = 10 }; val.normal.textColor = Color.gray; GUILayout.Label("NET .NET Messenger Service", val, Array.Empty()); GUILayout.EndVertical(); } else if (_msnState == MSNState.ContactList) { GUILayout.BeginHorizontal((GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Height(40f) }); if ((Object)(object)_texFitGirlFace != (Object)null) { GUILayout.Box((Texture)(object)_texFitGirlFace, GUIStyle.none, (GUILayoutOption[])(object)new GUILayoutOption[2] { GUILayout.Width(32f), GUILayout.Height(32f) }); } else { GUILayout.Box("", (GUILayoutOption[])(object)new GUILayoutOption[2] { GUILayout.Width(32f), GUILayout.Height(32f) }); } GUILayout.BeginVertical(Array.Empty()); string text = _usernameConfig.Value + " (Online)"; GUIStyle val2 = new GUIStyle(GUI.skin.label) { fontStyle = (FontStyle)1 }; val2.normal.textColor = Color.black; GUILayout.Label(text, val2, Array.Empty()); GUIStyle val3 = new GUIStyle(GUI.skin.label) { fontSize = 10, fontStyle = (FontStyle)2 }; val3.normal.textColor = Color.gray; GUILayout.Label("", val3, Array.Empty()); GUILayout.EndVertical(); GUILayout.EndHorizontal(); GUI.DrawTexture(GUILayoutUtility.GetRect(10f, 1f), (Texture)(object)_texBlack); _msnScrollPos = GUILayout.BeginScrollView(_msnScrollPos, Array.Empty()); string text2 = " Online (" + (_msnContacts.Count - 1) + ")"; GUIStyle val4 = new GUIStyle(GUI.skin.label) { fontStyle = (FontStyle)1 }; val4.normal.textColor = Color.black; GUILayout.Label(text2, val4, Array.Empty()); foreach (MsnContact msnContact in _msnContacts) { if (msnContact.Status == "Offline") { continue; } GUILayout.BeginHorizontal(Array.Empty()); GUI.color = msnContact.StatusColor; GUILayout.Box("", (GUILayoutOption[])(object)new GUILayoutOption[2] { GUILayout.Width(10f), GUILayout.Height(10f) }); GUI.color = Color.white; string text3 = msnContact.Name + ((msnContact.PersonalMessage.Length > 0) ? (" - " + msnContact.PersonalMessage) : ""); GUIStyle val5 = new GUIStyle(GUI.skin.label); val5.normal.textColor = Color.black; if (GUILayout.Button(text3, val5, Array.Empty())) { if (Time.unscaledTime - _lastClickTime < 0.5f) { _currentChatContact = msnContact; _msnState = MSNState.Chat; _msnTitle = msnContact.Name + " - Conversation"; if (msnContact.History.Count == 0) { string greeting = _chatEngine.GetGreeting(msnContact.Name); msnContact.History.Add(new ChatMessage { Sender = msnContact.Name, Content = greeting }); } } _lastClickTime = Time.unscaledTime; } GUILayout.EndHorizontal(); } GUILayout.Space(10f); GUIStyle val6 = new GUIStyle(GUI.skin.label) { fontStyle = (FontStyle)1 }; val6.normal.textColor = Color.black; GUILayout.Label(" Offline (1)", val6, Array.Empty()); foreach (MsnContact msnContact2 in _msnContacts) { if (!(msnContact2.Status != "Offline")) { GUILayout.BeginHorizontal(Array.Empty()); GUI.color = msnContact2.StatusColor; GUILayout.Box("", (GUILayoutOption[])(object)new GUILayoutOption[2] { GUILayout.Width(10f), GUILayout.Height(10f) }); GUI.color = Color.white; string name = msnContact2.Name; GUIStyle val7 = new GUIStyle(GUI.skin.label); val7.normal.textColor = Color.gray; GUILayout.Label(name, val7, Array.Empty()); GUILayout.EndHorizontal(); } } GUILayout.EndScrollView(); GUILayout.BeginHorizontal(Array.Empty()); GUILayout.Button("Add Contact", Array.Empty()); GUILayout.FlexibleSpace(); if (GUILayout.Button("Sign Out", Array.Empty())) { _msnState = MSNState.Login; _msnTitle = "MSN Messenger"; } GUILayout.EndHorizontal(); } else { if (_msnState != MSNState.Chat) { return; } GUILayout.BeginHorizontal(Array.Empty()); if (GUILayout.Button("< Back", (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(60f) })) { _msnState = MSNState.ContactList; _msnTitle = "MSN Messenger - Signed In"; } string text4 = "To: " + _currentChatContact.Name; GUIStyle val8 = new GUIStyle(GUI.skin.label) { fontStyle = (FontStyle)1 }; val8.normal.textColor = Color.black; GUILayout.Label(text4, val8, Array.Empty()); GUILayout.EndHorizontal(); GUI.DrawTexture(GUILayoutUtility.GetRect(10f, 1f), (Texture)(object)_texBlack); GUILayout.BeginVertical(GUI.skin.box, Array.Empty()); _msnScrollPos = GUILayout.BeginScrollView(_msnScrollPos, Array.Empty()); GUIStyle val9 = new GUIStyle(GUI.skin.label); val9.normal.textColor = Color.gray; val9.fontSize = 10; GUILayout.Label("Never give out your password or credit card number.", val9, Array.Empty()); GUILayout.Space(10f); foreach (ChatMessage item in _currentChatContact.History) { if (item.IsFileTransfer) { GUILayout.BeginHorizontal(GUIStyle.op_Implicit("box"), Array.Empty()); GUILayout.BeginVertical(Array.Empty()); string text5 = item.Sender + " is sending: " + item.FileName; GUIStyle val10 = new GUIStyle(GUI.skin.label) { fontStyle = (FontStyle)1 }; val10.normal.textColor = Color.black; GUILayout.Label(text5, val10, Array.Empty()); if (item.FileAccepted) { GUIStyle val11 = new GUIStyle(GUI.skin.label); val11.normal.textColor = Color.green; GUILayout.Label("Transfer Complete.", val11, Array.Empty()); } else if (GUILayout.Button("Accept Download", Array.Empty())) { item.FileAccepted = true; item.OnAcceptFile?.Invoke(); } GUILayout.EndVertical(); GUILayout.EndHorizontal(); } else { string obj = ((item.Sender == "You") ? "You say:" : (item.Sender + " says:")); Color textColor = ((item.Sender == "You") ? Color.gray : Color.blue); GUIStyle val12 = new GUIStyle(GUI.skin.label); val12.normal.textColor = textColor; val12.fontSize = 10; GUILayout.Label(obj, val12, Array.Empty()); string content = item.Content; GUIStyle val13 = new GUIStyle(GUI.skin.label); val13.normal.textColor = Color.black; val13.wordWrap = true; GUILayout.Label(content, val13, Array.Empty()); GUILayout.Space(5f); } } GUILayout.EndScrollView(); GUILayout.EndVertical(); GUILayout.FlexibleSpace(); GUI.DrawTexture(GUILayoutUtility.GetRect(10f, 1f), (Texture)(object)_texBlack); GUILayout.BeginHorizontal((GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Height(50f) }); _msnChatInput = GUILayout.TextArea(_msnChatInput, (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Height(50f) }); GUILayout.BeginVertical((GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(60f) }); if (GUILayout.Button("Send", (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Height(25f) }) && !string.IsNullOrEmpty(_msnChatInput)) { _currentChatContact.History.Add(new ChatMessage { Sender = "You", Content = _msnChatInput }); string currentResponse = _chatEngine.GetCurrentResponse(_currentChatContact.Name, _msnChatInput, this); if (!string.IsNullOrEmpty(currentResponse)) { _currentChatContact.History.Add(new ChatMessage { Sender = _currentChatContact.Name, Content = currentResponse }); } _msnChatInput = ""; _msnScrollPos.y = 10000f; } if (GUILayout.Button("Nudge", (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Height(20f) })) { _currentChatContact.History.Add(new ChatMessage { Sender = "System", Content = "You have just sent a Nudge!" }); _audioSource.PlayOneShot(_sfxTDrop); } GUILayout.EndVertical(); GUILayout.EndHorizontal(); } } private void UpdateInstaller() { if (!_showInstaller) { return; } if (!_installerMusicStarted && _installerMusicEnabled && (Object)(object)_installerSong != (Object)null) { _installerMusicStarted = true; if (_audioSource.isPlaying) { _audioSource.Stop(); } _audioSource.clip = _installerSong; _audioSource.spatialBlend = 0f; _audioSource.volume = 1f; _audioSource.loop = true; _audioSource.Play(); Debug.Log((object)"Empress XP: Started installer music"); } _installTimer += Time.unscaledDeltaTime; if (_installTimer >= 120f) { _installTimer = 120f; _showInstaller = false; _installerMusicStarted = false; _repoInstalledConfig.Value = true; ((BaseUnityPlugin)this).Config.Save(); if ((Object)(object)_audioSource.clip == (Object)(object)_installerSong) { _audioSource.Stop(); } } } private void DrawInstallerContent() { //IL_003b: 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_005e: Unknown result type (might be due to invalid IL or missing references) //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007f: Expected O, but got Unknown //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_00b1: Unknown result type (might be due to invalid IL or missing references) //IL_00b6: 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_00c5: Unknown result type (might be due to invalid IL or missing references) //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00df: Expected O, but got Unknown //IL_00f8: Unknown result type (might be due to invalid IL or missing references) //IL_00fd: 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_010c: Unknown result type (might be due to invalid IL or missing references) //IL_0112: Unknown result type (might be due to invalid IL or missing references) //IL_0126: Expected O, but got Unknown //IL_013f: 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_014c: Unknown result type (might be due to invalid IL or missing references) //IL_0152: Unknown result type (might be due to invalid IL or missing references) //IL_015c: Unknown result type (might be due to invalid IL or missing references) //IL_016d: Expected O, but got Unknown //IL_01c2: Unknown result type (might be due to invalid IL or missing references) //IL_01c7: Unknown result type (might be due to invalid IL or missing references) //IL_01cf: Unknown result type (might be due to invalid IL or missing references) //IL_01d5: Unknown result type (might be due to invalid IL or missing references) //IL_01e9: Expected O, but got Unknown //IL_01e9: Unknown result type (might be due to invalid IL or missing references) //IL_01ee: Unknown result type (might be due to invalid IL or missing references) //IL_01fc: 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_0202: Unknown result type (might be due to invalid IL or missing references) //IL_020c: Unknown result type (might be due to invalid IL or missing references) //IL_0218: Unknown result type (might be due to invalid IL or missing references) //IL_0256: Unknown result type (might be due to invalid IL or missing references) //IL_027d: Unknown result type (might be due to invalid IL or missing references) //IL_02bd: Unknown result type (might be due to invalid IL or missing references) //IL_02cd: Unknown result type (might be due to invalid IL or missing references) //IL_0310: Unknown result type (might be due to invalid IL or missing references) //IL_0315: Unknown result type (might be due to invalid IL or missing references) //IL_031d: Unknown result type (might be due to invalid IL or missing references) //IL_0323: 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_033e: Expected O, but got Unknown //IL_03cd: Unknown result type (might be due to invalid IL or missing references) //IL_03d2: Unknown result type (might be due to invalid IL or missing references) //IL_03da: Unknown result type (might be due to invalid IL or missing references) //IL_03e1: 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_03f1: Unknown result type (might be due to invalid IL or missing references) //IL_0402: Expected O, but got Unknown GUILayout.BeginHorizontal(Array.Empty()); GUILayout.BeginVertical((GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(180f) }); Rect rect = GUILayoutUtility.GetRect(180f, 300f, (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.ExpandHeight(true) }); if ((Object)(object)_texFitGirlFace != (Object)null) { GUI.DrawTexture(rect, (Texture)(object)_texFitGirlFace, (ScaleMode)1); } else { GUI.Box(rect, "MISSING\nIMAGE", new GUIStyle(GUI.skin.box) { alignment = (TextAnchor)4 }); } GUILayout.EndVertical(); GUILayout.Space(15f); GUILayout.BeginVertical(Array.Empty()); GUILayout.Space(10f); GUIStyle val = new GUIStyle(GUI.skin.label) { fontSize = 22, fontStyle = (FontStyle)1 }; val.normal.textColor = Color.black; GUILayout.Label("R.E.P.O. Ultimate Installer", val, Array.Empty()); GUILayout.Space(20f); GUIStyle val2 = new GUIStyle(GUI.skin.label) { fontSize = 16, fontStyle = (FontStyle)1 }; val2.normal.textColor = Color.black; GUILayout.Label("Welcome to the R.E.P.O. Ultimate Installer", val2, Array.Empty()); GUILayout.Space(5f); GUIStyle val3 = new GUIStyle(GUI.skin.label) { fontSize = 12 }; val3.normal.textColor = Color.black; val3.wordWrap = true; GUILayout.Label("This wizard will install R.E.P.O. Ultimate Edition on your computer.\n\nIt is recommended that you close all other applications before continuing.", val3, Array.Empty()); GUILayout.FlexibleSpace(); float num = _installTimer / 120f; string text = "Unpacking: data_" + Mathf.FloorToInt(_installTimer * 5f) + ".bin"; if (num >= 1f) { text = "Finalizing..."; } string text2 = text; GUIStyle val4 = new GUIStyle(GUI.skin.label) { fontSize = 11 }; val4.normal.textColor = Color.black; GUILayout.Label(text2, val4, Array.Empty()); Rect lastRect = GUILayoutUtility.GetLastRect(); Rect rect2 = GUILayoutUtility.GetRect(((Rect)(ref lastRect)).width, 25f); GUI.color = Color.gray; GUI.DrawTexture(rect2, (Texture)(object)_texWhite); GUI.color = Color.white; GUI.DrawTexture(new Rect(((Rect)(ref rect2)).x + 1f, ((Rect)(ref rect2)).y + 1f, ((Rect)(ref rect2)).width - 2f, ((Rect)(ref rect2)).height - 2f), (Texture)(object)_texWhite); if (num > 0f) { GUI.color = new Color(0.2f, 0.8f, 0.2f); GUI.DrawTexture(new Rect(((Rect)(ref rect2)).x + 2f, ((Rect)(ref rect2)).y + 2f, (((Rect)(ref rect2)).width - 4f) * num, ((Rect)(ref rect2)).height - 4f), (Texture)(object)_texWhite); GUI.color = Color.white; } float num2 = 120f - _installTimer; if (num2 < 0f) { num2 = 0f; } string text3 = $"Time remaining: {num2:F0} seconds"; GUIStyle val5 = new GUIStyle(GUI.skin.label) { fontSize = 11 }; val5.normal.textColor = Color.black; val5.alignment = (TextAnchor)5; GUILayout.Label(text3, val5, Array.Empty()); GUILayout.Space(15f); GUILayout.BeginHorizontal(Array.Empty()); bool flag = GUILayout.Toggle(_installerMusicEnabled, "", Array.Empty()); string text4 = " Installer Music"; if ((Object)(object)_installerSong == (Object)null) { text4 += " (Loading...)"; } else if (_audioSource.isPlaying && (Object)(object)_audioSource.clip == (Object)(object)_installerSong) { text4 += " (Playing)"; } string text5 = text4; GUIStyle val6 = new GUIStyle(GUI.skin.label) { fontSize = 12, fontStyle = (FontStyle)1 }; val6.normal.textColor = Color.black; val6.alignment = (TextAnchor)3; GUILayout.Label(text5, val6, Array.Empty()); if (flag != _installerMusicEnabled) { _installerMusicEnabled = flag; if (_installerMusicEnabled) { if ((Object)(object)_installerSong != (Object)null && !_audioSource.isPlaying) { _audioSource.clip = _installerSong; _audioSource.loop = true; _audioSource.volume = 1f; _audioSource.spatialBlend = 0f; _audioSource.Play(); Debug.Log((object)"Empress XP: Toggled installer music ON"); } } else if ((Object)(object)_audioSource.clip == (Object)(object)_installerSong) { _audioSource.Stop(); Debug.Log((object)"Empress XP: Toggled installer music OFF"); } } GUILayout.FlexibleSpace(); GUILayout.EndHorizontal(); GUILayout.Space(10f); GUILayout.EndVertical(); GUILayout.Space(10f); GUILayout.EndHorizontal(); } private void InitLimewire() { if (!_wireInitialized) { _wireFiles.Clear(); AddWireFile("Bocon's Barbie DreamHouse", "Empress", 850f, 250f); AddWireFile("Skript's Adventures in Argentina", "Empress", 1200f, 300f); AddWireFile("Linkin_Park_Numb.exe", "TotallySafe", 3f, 180f); LoadLimewireDownloads(); _wireInitialized = true; } } private void AddWireFile(string name, string auth, float size, float timeSec) { _wireFiles.Add(new WireFile { Name = name, Author = auth, SizeMB = size, TotalTime = timeSec + Random.Range(-30f, 60f), Progress = 0f, ElapsedTime = 0f, Status = "Pending...", IsComplete = false, Quality = Random.Range(2, 6) }); } private void LoadLimewireDownloads() { string value = _limewireDownloads.Value; if (string.IsNullOrEmpty(value)) { return; } string[] array = value.Split(new char[1] { '|' }, StringSplitOptions.RemoveEmptyEntries); foreach (string fileName in array) { WireFile wireFile = _wireFiles.FirstOrDefault((WireFile f) => f.Name == fileName); if (wireFile != null) { wireFile.Progress = 1f; wireFile.IsComplete = true; wireFile.Status = "Seeding"; wireFile.ElapsedTime = wireFile.TotalTime; if (wireFile.Name == "Linkin_Park_Numb.exe") { _hasDownloadedLinkinPark = true; } if (wireFile.Name == "Bocon's Barbie DreamHouse") { _hasDownloadedBBD = true; } if (wireFile.Name == "Skript's Adventures in Argentina") { _hasDownloadedSkript = true; } } } } private void SaveLimewireDownloads() { IEnumerable source = from f in _wireFiles where f.IsComplete select f.Name; _limewireDownloads.Value = string.Join("|", source.ToArray()); ((BaseUnityPlugin)this).Config.Save(); } private void UpdateNorton() { if (!_showNorton || !_nortonScanning || !(_nortonProgress < 1f)) { return; } float num = 120f; _nortonProgress += Time.unscaledDeltaTime / num; _nortonFileTimer += Time.unscaledDeltaTime; if (_nortonFileTimer > 0.08f) { _nortonFileTimer = 0f; string text = _nortonFakePaths[Random.Range(0, _nortonFakePaths.Length)]; string text2 = _nortonFakeFiles[Random.Range(0, _nortonFakeFiles.Length)]; _nortonCurrentFile = text + text2; if (Random.value > 0.95f) { _nortonLog.Add("Scanning: " + _nortonCurrentFile); if (_nortonLog.Count > 15) { _nortonLog.RemoveAt(0); } } } if (_nortonProgress >= 1f) { _nortonProgress = 1f; _nortonScanning = false; _nortonCurrentFile = "Scan Complete. No threats found."; } } private void UpdateLimewire() { if (!_showLimewire) { return; } bool flag = false; foreach (WireFile wireFile in _wireFiles) { if (wireFile.IsComplete) { continue; } if (wireFile.Status == "Pending...") { wireFile.Status = "Downloading"; } wireFile.ElapsedTime += Time.unscaledDeltaTime; wireFile.Progress = wireFile.ElapsedTime / wireFile.TotalTime; if (wireFile.Progress >= 1f) { wireFile.Progress = 1f; wireFile.IsComplete = true; wireFile.Status = "Seeding"; _currentSouls += 5.0; flag = true; if (wireFile.Name == "Linkin_Park_Numb.exe") { _hasDownloadedLinkinPark = true; } if (wireFile.Name == "Bocon's Barbie DreamHouse") { _hasDownloadedBBD = true; } if (wireFile.Name == "Skript's Adventures in Argentina") { _hasDownloadedSkript = true; } } } if (flag) { SaveLimewireDownloads(); } } private void DrawNortonContent() { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001e: Unknown result type (might be due to invalid IL or missing references) //IL_0025: Unknown result type (might be due to invalid IL or missing references) //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0056: Expected O, but got Unknown //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_00fd: Unknown result type (might be due to invalid IL or missing references) //IL_0102: Unknown result type (might be due to invalid IL or missing references) //IL_0109: Unknown result type (might be due to invalid IL or missing references) //IL_010f: Unknown result type (might be due to invalid IL or missing references) //IL_0123: Expected O, but got Unknown //IL_013d: Unknown result type (might be due to invalid IL or missing references) //IL_0142: Unknown result type (might be due to invalid IL or missing references) //IL_014a: Unknown result type (might be due to invalid IL or missing references) //IL_0150: Unknown result type (might be due to invalid IL or missing references) //IL_015a: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Expected O, but got Unknown //IL_0184: 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_018a: Unknown result type (might be due to invalid IL or missing references) //IL_01ca: Unknown result type (might be due to invalid IL or missing references) //IL_01f6: Unknown result type (might be due to invalid IL or missing references) //IL_023b: Unknown result type (might be due to invalid IL or missing references) //IL_024b: Unknown result type (might be due to invalid IL or missing references) //IL_02e9: Unknown result type (might be due to invalid IL or missing references) //IL_02ee: Unknown result type (might be due to invalid IL or missing references) //IL_02f4: Unknown result type (might be due to invalid IL or missing references) //IL_0308: Expected O, but got Unknown //IL_030a: 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_031e: Unknown result type (might be due to invalid IL or missing references) //IL_0342: 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_034f: 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_0369: Expected O, but got Unknown GUILayout.BeginHorizontal(Array.Empty()); GUIStyle val = new GUIStyle(GUI.skin.label) { fontStyle = (FontStyle)1, fontSize = 16 }; val.normal.textColor = new Color(0.6f, 0.6f, 0f); GUILayout.Label("Norton AntiVirus 2003 System Scan", val, Array.Empty()); GUILayout.FlexibleSpace(); if ((Object)(object)_texIconNorton != (Object)null) { GUI.DrawTexture(GUILayoutUtility.GetRect(40f, 40f), (Texture)(object)_texIconNorton, (ScaleMode)2); } GUILayout.EndHorizontal(); GUILayout.Space(10f); GUI.skin.box.normal.background = _texWhite; GUILayout.BeginVertical(GUIStyle.op_Implicit("box"), Array.Empty()); string text = "Status: " + (_nortonScanning ? "Scanning..." : ((_nortonProgress >= 1f) ? "Secure" : "Ready")); GUIStyle val2 = new GUIStyle(GUI.skin.label) { fontStyle = (FontStyle)1 }; val2.normal.textColor = Color.black; GUILayout.Label(text, val2, Array.Empty()); string text2 = "Current Item: " + _nortonCurrentFile; GUIStyle val3 = new GUIStyle(GUI.skin.label) { fontSize = 11 }; val3.normal.textColor = Color.gray; val3.wordWrap = false; GUILayout.Label(text2, val3, Array.Empty()); GUILayout.EndVertical(); GUILayout.Space(10f); Rect rect = GUILayoutUtility.GetRect(400f, 25f); GUI.DrawTexture(rect, (Texture)(object)_texBlack); GUI.DrawTexture(new Rect(((Rect)(ref rect)).x + 2f, ((Rect)(ref rect)).y + 2f, ((Rect)(ref rect)).width - 4f, ((Rect)(ref rect)).height - 4f), (Texture)(object)_texWhite); if (_nortonProgress > 0f) { GUI.color = new Color(1f, 0.8f, 0f); GUI.DrawTexture(new Rect(((Rect)(ref rect)).x + 2f, ((Rect)(ref rect)).y + 2f, (((Rect)(ref rect)).width - 4f) * _nortonProgress, ((Rect)(ref rect)).height - 4f), (Texture)(object)_texWhite); GUI.color = Color.white; } GUILayout.Space(20f); GUILayout.BeginHorizontal(Array.Empty()); if (GUILayout.Button("Scan Now", (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Height(30f) })) { _nortonScanning = true; _nortonProgress = 0f; _nortonLog.Clear(); } if (GUILayout.Button("Stop", (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Height(30f) })) { _nortonScanning = false; } GUILayout.EndHorizontal(); GUILayout.Space(10f); GUIStyle val4 = new GUIStyle(GUI.skin.label); val4.normal.textColor = Color.black; GUILayout.Label("Detailed Report:", val4, Array.Empty()); _nortonScroll = GUILayout.BeginScrollView(_nortonScroll, GUI.skin.box); foreach (string item in _nortonLog) { GUIStyle val5 = new GUIStyle(GUI.skin.label) { fontSize = 10 }; val5.normal.textColor = Color.black; GUILayout.Label(item, val5, Array.Empty()); } GUILayout.EndScrollView(); } private void DrawLimewireContent() { //IL_0086: Unknown result type (might be due to invalid IL or missing references) //IL_008b: Unknown result type (might be due to invalid IL or missing references) //IL_0092: Unknown result type (might be due to invalid IL or missing references) //IL_009a: Unknown result type (might be due to invalid IL or missing references) //IL_00a0: Unknown result type (might be due to invalid IL or missing references) //IL_00b4: Expected O, but got Unknown //IL_01ef: 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_01fe: Unknown result type (might be due to invalid IL or missing references) //IL_024e: Unknown result type (might be due to invalid IL or missing references) //IL_0253: Unknown result type (might be due to invalid IL or missing references) //IL_0259: Unknown result type (might be due to invalid IL or missing references) //IL_026d: Expected O, but got Unknown //IL_0287: 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_0294: Unknown result type (might be due to invalid IL or missing references) //IL_029a: Unknown result type (might be due to invalid IL or missing references) //IL_02ae: Expected O, but got Unknown //IL_02fe: Unknown result type (might be due to invalid IL or missing references) //IL_02e8: Unknown result type (might be due to invalid IL or missing references) //IL_04e0: Unknown result type (might be due to invalid IL or missing references) //IL_04e5: Unknown result type (might be due to invalid IL or missing references) //IL_04ec: Unknown result type (might be due to invalid IL or missing references) //IL_04f2: Unknown result type (might be due to invalid IL or missing references) //IL_0506: Expected O, but got Unknown //IL_0510: Unknown result type (might be due to invalid IL or missing references) //IL_0515: Unknown result type (might be due to invalid IL or missing references) //IL_0303: Unknown result type (might be due to invalid IL or missing references) //IL_0314: 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_031f: Unknown result type (might be due to invalid IL or missing references) //IL_033d: Expected O, but got Unknown //IL_0347: Unknown result type (might be due to invalid IL or missing references) //IL_034c: Unknown result type (might be due to invalid IL or missing references) //IL_034e: Unknown result type (might be due to invalid IL or missing references) //IL_038f: Unknown result type (might be due to invalid IL or missing references) //IL_03cc: Unknown result type (might be due to invalid IL or missing references) //IL_03b6: Unknown result type (might be due to invalid IL or missing references) //IL_0560: Unknown result type (might be due to invalid IL or missing references) //IL_058f: Unknown result type (might be due to invalid IL or missing references) //IL_05a3: Unknown result type (might be due to invalid IL or missing references) //IL_05a8: Unknown result type (might be due to invalid IL or missing references) //IL_05b5: Expected O, but got Unknown //IL_05ce: Unknown result type (might be due to invalid IL or missing references) //IL_05fd: Unknown result type (might be due to invalid IL or missing references) //IL_0611: Unknown result type (might be due to invalid IL or missing references) //IL_0616: Unknown result type (might be due to invalid IL or missing references) //IL_0623: Expected O, but got Unknown //IL_0411: Unknown result type (might be due to invalid IL or missing references) //IL_0421: Unknown result type (might be due to invalid IL or missing references) //IL_06ac: Unknown result type (might be due to invalid IL or missing references) //IL_06c9: Unknown result type (might be due to invalid IL or missing references) //IL_06d9: Unknown result type (might be due to invalid IL or missing references) //IL_06fc: Unknown result type (might be due to invalid IL or missing references) //IL_0725: Unknown result type (might be due to invalid IL or missing references) //IL_074d: Unknown result type (might be due to invalid IL or missing references) //IL_075d: Unknown result type (might be due to invalid IL or missing references) GUILayout.BeginHorizontal((GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Height(25f) }); GUILayout.Button("Search", (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(80f) }); GUILayout.Button("Monitor", (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(80f) }); GUILayout.Button("Library", (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(80f) }); GUILayout.FlexibleSpace(); GUIStyle val = new GUIStyle(GUI.skin.label) { alignment = (TextAnchor)5, fontSize = 10 }; val.normal.textColor = Color.gray; GUILayout.Label("Connected (Gnutella)", val, Array.Empty()); GUILayout.EndHorizontal(); GUILayout.Box("", (GUILayoutOption[])(object)new GUILayoutOption[2] { GUILayout.Height(2f), GUILayout.ExpandWidth(true) }); GUILayout.BeginHorizontal(Array.Empty()); GUILayout.Label("Search P2P:", (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(80f) }); GUILayout.TextField("", Array.Empty()); GUILayout.Button("Go", (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(40f) }); GUILayout.EndHorizontal(); GUILayout.Space(5f); GUILayout.BeginHorizontal(GUIStyle.op_Implicit("box"), Array.Empty()); GUILayout.Label("Name", (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(250f) }); GUILayout.Label("Size", (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(60f) }); GUILayout.Label("Status", (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(100f) }); GUILayout.Label("Progress", (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(150f) }); GUILayout.Label("Speed", (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(60f) }); GUILayout.EndHorizontal(); _wireScroll = GUILayout.BeginScrollView(_wireScroll, Array.Empty()); foreach (WireFile wireFile in _wireFiles) { GUILayout.BeginHorizontal(Array.Empty()); GUILayout.BeginVertical((GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(250f) }); string name = wireFile.Name; GUIStyle val2 = new GUIStyle(GUI.skin.label); val2.normal.textColor = Color.blue; GUILayout.Label(name, val2, Array.Empty()); string text = "User: " + wireFile.Author; GUIStyle val3 = new GUIStyle(GUI.skin.label) { fontSize = 10 }; val3.normal.textColor = Color.gray; GUILayout.Label(text, val3, Array.Empty()); GUILayout.EndVertical(); GUILayout.Label(wireFile.SizeMB + " MB", (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(60f) }); Color textColor = (Color)(wireFile.IsComplete ? new Color(0f, 0.5f, 0f) : Color.black); string status = wireFile.Status; GUIStyle val4 = new GUIStyle(GUI.skin.label); val4.normal.textColor = textColor; GUILayout.Label(status, val4, (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(100f) }); Rect rect = GUILayoutUtility.GetRect(150f, 20f); GUI.DrawTexture(rect, (Texture)(object)_texBlack); GUI.DrawTexture(new Rect(((Rect)(ref rect)).x + 1f, ((Rect)(ref rect)).y + 1f, ((Rect)(ref rect)).width - 2f, ((Rect)(ref rect)).height - 2f), (Texture)(object)_texWhite); GUI.color = (wireFile.IsComplete ? new Color(0f, 0.8f, 0f) : new Color(0.2f, 0.6f, 1f)); GUI.DrawTexture(new Rect(((Rect)(ref rect)).x + 1f, ((Rect)(ref rect)).y + 1f, (((Rect)(ref rect)).width - 2f) * wireFile.Progress, ((Rect)(ref rect)).height - 2f), (Texture)(object)_texWhite); GUI.color = Color.white; GUILayout.Label(wireFile.IsComplete ? "-" : (Random.Range(15, 450) + " KB/s"), (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(60f) }); GUILayout.EndHorizontal(); GUILayout.Space(5f); } GUILayout.EndScrollView(); GUILayout.Space(10f); GUILayout.Box("", (GUILayoutOption[])(object)new GUILayoutOption[2] { GUILayout.Height(1f), GUILayout.ExpandWidth(true) }); GUIStyle val5 = new GUIStyle(GUI.skin.label) { fontStyle = (FontStyle)1 }; val5.normal.textColor = Color.black; GUILayout.Label("Transfer Details", val5, Array.Empty()); Rect rect2 = GUILayoutUtility.GetRect(400f, 80f); if (!((Object)(object)_texIconFolder != (Object)null) || !((Object)(object)_texIconHDD != (Object)null)) { return; } float num = ((Rect)(ref rect2)).y + 10f; GUI.DrawTexture(new Rect(((Rect)(ref rect2)).x + 20f, num, 48f, 48f), (Texture)(object)_texIconFolder); GUI.Label(new Rect(((Rect)(ref rect2)).x + 20f, num + 50f, 50f, 20f), "P2P Net", new GUIStyle(GUI.skin.label) { fontSize = 10 }); GUI.DrawTexture(new Rect(((Rect)(ref rect2)).x + 300f, num, 48f, 48f), (Texture)(object)_texIconHDD); GUI.Label(new Rect(((Rect)(ref rect2)).x + 300f, num + 50f, 50f, 20f), "Local Disk", new GUIStyle(GUI.skin.label) { fontSize = 10 }); bool flag = false; foreach (WireFile wireFile2 in _wireFiles) { if (!wireFile2.IsComplete) { flag = true; } } if (flag) { float num2 = Mathf.Repeat(Time.unscaledTime * 0.5f, 1f); float num3 = Mathf.Lerp(((Rect)(ref rect2)).x + 70f, ((Rect)(ref rect2)).x + 290f, num2); GUI.color = new Color(0.9f, 0.9f, 0.9f); GUI.DrawTexture(new Rect(num3, num + 10f, 24f, 30f), (Texture)(object)_texWhite); GUI.color = Color.black; GUI.DrawTexture(new Rect(num3 + 4f, num + 15f, 16f, 2f), (Texture)(object)_texWhite); GUI.DrawTexture(new Rect(num3 + 4f, num + 20f, 16f, 2f), (Texture)(object)_texWhite); GUI.DrawTexture(new Rect(num3 + 4f, num + 25f, 10f, 2f), (Texture)(object)_texWhite); GUI.color = Color.white; } } private void DrawBSOD() { //IL_0016: 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_0058: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Unknown result type (might be due to invalid IL or missing references) //IL_0065: 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_0075: Unknown result type (might be due to invalid IL or missing references) //IL_0081: Expected O, but got Unknown GUI.DrawTexture(new Rect(0f, 0f, (float)Screen.width, (float)Screen.height), (Texture)(object)_texBSOD); string text = "A problem has been detected and Windows has been shut down to prevent damage\nto your computer.\n\nERROR_SOUL_CORRUPTION\n\nIf this is the first time you've seen this Stop error screen,\nrestart your computer (Press Alt+F4).\n\nTechnical Information:\n\n*** STOP: 0x00000666 (0xC0000005, 0xDEADBEEF, 0x00000000)\n\nbeginning dump of physical memory"; Rect val = new Rect(60f, 60f, (float)(Screen.width - 120), (float)(Screen.height - 120)); GUIStyle val2 = new GUIStyle(GUI.skin.label) { fontSize = 18 }; val2.normal.textColor = Color.white; val2.fontStyle = (FontStyle)1; GUI.Label(val, text, val2); } private void DrawRSOD() { //IL_0016: 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_0058: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Unknown result type (might be due to invalid IL or missing references) //IL_0065: 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_0075: Unknown result type (might be due to invalid IL or missing references) //IL_0081: Expected O, but got Unknown GUI.DrawTexture(new Rect(0f, 0f, (float)Screen.width, (float)Screen.height), (Texture)(object)_texRSOD); string text = "A CRITICAL FAULT has been detected.\n\nERROR_RECYCLE_OVERFLOW\n\nDELETION IS PERMANENT.\n\nTechnical Information:\n\n*** STOP: 0x00000999 (0xBADDA7A, 0xDEADCODE, 0x00000000)\n\nSYSTEM HALTED"; Rect val = new Rect(60f, 60f, (float)(Screen.width - 120), (float)(Screen.height - 120)); GUIStyle val2 = new GUIStyle(GUI.skin.label) { fontSize = 18 }; val2.normal.textColor = Color.white; val2.fontStyle = (FontStyle)1; GUI.Label(val, text, val2); } private void DrawSetupContent() { //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_0025: Unknown result type (might be due to invalid IL or missing references) //IL_002c: 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_0046: Expected O, but got Unknown //IL_009f: Unknown result type (might be due to invalid IL or missing references) //IL_00a4: 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_00b1: Unknown result type (might be due to invalid IL or missing references) //IL_00c5: Expected O, but got Unknown //IL_00c7: Unknown result type (might be due to invalid IL or missing references) //IL_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00ee: Unknown result type (might be due to invalid IL or missing references) //IL_016c: Unknown result type (might be due to invalid IL or missing references) //IL_0171: 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_017e: Unknown result type (might be due to invalid IL or missing references) //IL_0192: Expected O, but got Unknown if (_currentState == OSState.Setup_Welcome) { GUIStyle val = new GUIStyle(GUI.skin.label) { fontSize = 20, fontStyle = (FontStyle)1 }; val.normal.textColor = Color.black; GUILayout.Label("Welcome to Microsoft Windows XP", val, Array.Empty()); GUILayout.Label("\nThis version of Windows is... different.\nBy continuing, you verify that you are not faint of heart.", Array.Empty()); GUILayout.FlexibleSpace(); if (GUILayout.Button("Next >", (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Height(30f) })) { _currentState = OSState.Setup_TOS; } } else if (_currentState == OSState.Setup_TOS) { GUIStyle val2 = new GUIStyle(GUI.skin.label) { fontStyle = (FontStyle)1 }; val2.normal.textColor = Color.black; GUILayout.Label("End User License Agreement", val2, Array.Empty()); _scrollPos = GUILayout.BeginScrollView(_scrollPos, GUI.skin.box, (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Height(200f) }); GUILayout.Label("1. YOUR SOUL IS CURRENCY.\n2. NO REFUNDS.\n3. EMPRESS IS WATCHING.\n4. R.E.P.O. IS MANDATORY.", Array.Empty()); GUILayout.EndScrollView(); GUILayout.FlexibleSpace(); GUILayout.BeginHorizontal(Array.Empty()); if (GUILayout.Button("I Decline", Array.Empty())) { _currentState = OSState.BSOD; } GUILayout.FlexibleSpace(); if (GUILayout.Button("I Accept", Array.Empty())) { _currentState = OSState.Setup_Login; } GUILayout.EndHorizontal(); } else if (_currentState == OSState.Setup_Login) { GUIStyle val3 = new GUIStyle(GUI.skin.label) { fontStyle = (FontStyle)1 }; val3.normal.textColor = Color.black; GUILayout.Label("User Identification", val3, Array.Empty()); GUILayout.Space(20f); GUILayout.BeginHorizontal(Array.Empty()); GUILayout.Label("Username:", (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(80f) }); _inputUsername = GUILayout.TextField(_inputUsername, Array.Empty()); GUILayout.EndHorizontal(); GUILayout.FlexibleSpace(); if (GUILayout.Button("Finish Setup", (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Height(30f) })) { _usernameConfig.Value = _inputUsername; _isSetupComplete.Value = true; ((BaseUnityPlugin)this).Config.Save(); _currentState = OSState.Desktop; } } } private void InitSkript() { //IL_001b: Unknown result type (might be due to invalid IL or missing references) //IL_0025: Expected O, but got Unknown //IL_0048: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Expected O, but got Unknown //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Unknown result type (might be due to invalid IL or missing references) //IL_0081: Expected O, but got Unknown //IL_009d: 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_0100: 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_011b: Unknown result type (might be due to invalid IL or missing references) //IL_013b: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)_skriptRT == (Object)null) { _skriptRT = new RenderTexture(800, 600, 16); _skriptRT.Create(); } if ((Object)(object)_skriptRoot == (Object)null) { _skriptRoot = new GameObject("SkriptRoot"); _skriptRoot.transform.position = new Vector3(0f, -5000f, 0f); GameObject val = new GameObject("SkriptCam"); val.transform.SetParent(_skriptRoot.transform); val.transform.localPosition = Vector3.zero; _skriptCam = val.AddComponent(); _skriptCam.targetTexture = _skriptRT; _skriptCam.backgroundColor = new Color(0.8f, 0.6f, 0.4f); _skriptCam.clearFlags = (CameraClearFlags)2; _skriptCam.cullingMask = -1; GameObject val2 = new GameObject("Light"); val2.transform.SetParent(_skriptRoot.transform); val2.AddComponent().type = (LightType)1; val2.transform.localRotation = Quaternion.Euler(50f, -30f, 0f); } _skriptInMenu = true; _skriptGameOver = false; _skriptScore = 0; ClearEnemies(); } private void CloseSkript() { _showSkript = false; ClearEnemies(); if ((Object)(object)_skriptRoot != (Object)null) { Object.Destroy((Object)(object)_skriptRoot); } _skriptRoot = null; } private void ClearEnemies() { foreach (GameObject skriptEnemy in _skriptEnemies) { if (Object.op_Implicit((Object)(object)skriptEnemy)) { Object.Destroy((Object)(object)skriptEnemy); } } _skriptEnemies.Clear(); } private void UpdateSkript() { //IL_00ca: Unknown result type (might be due to invalid IL or missing references) //IL_00d4: Unknown result type (might be due to invalid IL or missing references) //IL_00ec: Unknown result type (might be due to invalid IL or missing references) //IL_00f6: Unknown result type (might be due to invalid IL or missing references) //IL_0106: Unknown result type (might be due to invalid IL or missing references) if (!_showSkript || _skriptInMenu || _skriptGameOver || (Object)(object)_skriptRoot == (Object)null) { return; } _skriptSpawnTimer -= Time.unscaledDeltaTime; if (_skriptSpawnTimer <= 0f) { _skriptSpawnTimer = 2f - Mathf.Min(1.5f, (float)_skriptScore * 0.05f); SpawnEnemy(); } for (int num = _skriptEnemies.Count - 1; num >= 0; num--) { if ((Object)(object)_skriptEnemies[num] == (Object)null) { _skriptEnemies.RemoveAt(num); } else { Transform transform = _skriptEnemies[num].transform; transform.LookAt(((Component)_skriptCam).transform); transform.Translate(Vector3.forward * Time.unscaledDeltaTime * (5f + (float)_skriptScore * 0.2f)); if (Vector3.Distance(transform.position, ((Component)_skriptCam).transform.position) < 1f) { _skriptGameOver = true; _audioSource.PlayOneShot(_sfxTOver); } } } } private void SpawnEnemy() { //IL_0061: Unknown result type (might be due to invalid IL or missing references) //IL_007f: Unknown result type (might be due to invalid IL or missing references) GameObject val = GameObject.CreatePrimitive((PrimitiveType)1); val.transform.SetParent(_skriptRoot.transform); float num = Random.Range(0f, 360f); float num2 = 20f; Vector3 localPosition = default(Vector3); ((Vector3)(ref localPosition))..ctor(Mathf.Sin(num * (MathF.PI / 180f)) * num2, 0f, Mathf.Cos(num * (MathF.PI / 180f)) * num2); val.transform.localPosition = localPosition; Renderer component = val.GetComponent(); if (Object.op_Implicit((Object)(object)component)) { component.material.color = Color.red; } _skriptEnemies.Add(val); } private void DrawSkriptContent() { //IL_000a: Unknown result type (might be due to invalid IL or missing references) //IL_000f: Unknown result type (might be due to invalid IL or missing references) //IL_001b: Unknown result type (might be due to invalid IL or missing references) //IL_002a: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_005a: 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_0086: Unknown result type (might be due to invalid IL or missing references) //IL_00c9: Unknown result type (might be due to invalid IL or missing references) //IL_00db: 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_0109: Unknown result type (might be due to invalid IL or missing references) //IL_010e: Unknown result type (might be due to invalid IL or missing references) //IL_0116: Unknown result type (might be due to invalid IL or missing references) //IL_011c: 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_0132: Expected O, but got Unknown //IL_0156: Unknown result type (might be due to invalid IL or missing references) //IL_017a: Unknown result type (might be due to invalid IL or missing references) //IL_017f: Unknown result type (might be due to invalid IL or missing references) //IL_0187: Unknown result type (might be due to invalid IL or missing references) //IL_0193: Expected O, but got Unknown //IL_00bb: Unknown result type (might be due to invalid IL or missing references) //IL_0225: Unknown result type (might be due to invalid IL or missing references) //IL_022b: Invalid comparison between Unknown and I4 //IL_01a1: Unknown result type (might be due to invalid IL or missing references) //IL_01ad: Unknown result type (might be due to invalid IL or missing references) //IL_01be: Unknown result type (might be due to invalid IL or missing references) //IL_01cb: Unknown result type (might be due to invalid IL or missing references) //IL_01dd: Unknown result type (might be due to invalid IL or missing references) //IL_01f7: Unknown result type (might be due to invalid IL or missing references) //IL_0284: Unknown result type (might be due to invalid IL or missing references) //IL_0234: Unknown result type (might be due to invalid IL or missing references) //IL_0292: Unknown result type (might be due to invalid IL or missing references) //IL_0245: Unknown result type (might be due to invalid IL or missing references) //IL_02a4: Unknown result type (might be due to invalid IL or missing references) //IL_02a9: Unknown result type (might be due to invalid IL or missing references) Rect rect = GUILayoutUtility.GetRect(780f, 500f); if (_skriptInMenu) { GUI.DrawTexture(rect, (Texture)(object)_texBlack); DrawCenteredText(((Rect)(ref rect)).center.x, ((Rect)(ref rect)).center.y - 50f, "Skript: Adventures in Argentina", 24, Color.white, bold: true); if (GUI.Button(new Rect(((Rect)(ref rect)).center.x - 60f, ((Rect)(ref rect)).center.y + 20f, 120f, 40f), "START")) { _skriptInMenu = false; _skriptScore = 0; _skriptGameOver = false; } return; } if ((Object)(object)_skriptRT != (Object)null) { GUI.DrawTexture(rect, (Texture)(object)_skriptRT); } Rect val = new Rect(((Rect)(ref rect)).center.x - 10f, ((Rect)(ref rect)).center.y - 10f, 20f, 20f); GUIStyle val2 = new GUIStyle(GUI.skin.label) { fontSize = 20 }; val2.normal.textColor = Color.green; val2.alignment = (TextAnchor)4; GUI.Label(val, "+", val2); GUI.Label(new Rect(((Rect)(ref rect)).x + 10f, ((Rect)(ref rect)).y + 10f, 200f, 30f), "Kills: " + _skriptScore, new GUIStyle(GUI.skin.label) { fontSize = 20, fontStyle = (FontStyle)1 }); if (_skriptGameOver) { DrawCenteredText(((Rect)(ref rect)).center.x, ((Rect)(ref rect)).center.y, "GAME OVER", 40, Color.red, bold: true); if (GUI.Button(new Rect(((Rect)(ref rect)).center.x - 60f, ((Rect)(ref rect)).center.y + 50f, 120f, 40f), "RETRY")) { ClearEnemies(); _skriptGameOver = false; _skriptScore = 0; } return; } if ((int)Event.current.type == 3 && ((Rect)(ref rect)).Contains(Event.current.mousePosition)) { float num = Event.current.delta.x * 2f; if ((Object)(object)_skriptCam != (Object)null) { ((Component)_skriptCam).transform.Rotate(0f, num, 0f); } } if ((int)Event.current.type == 0 && ((Rect)(ref rect)).Contains(Event.current.mousePosition)) { Shoot(Event.current.mousePosition, rect); _audioSource.PlayOneShot(_sfxTDrop); } } private void Shoot(Vector2 mousePos, Rect screenRect) { //IL_000b: Unknown result type (might be due to invalid IL or missing references) //IL_001b: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Unknown result type (might be due to invalid IL or missing references) RaycastHit val = default(RaycastHit); if (Physics.Raycast(new Ray(((Component)_skriptCam).transform.position, ((Component)_skriptCam).transform.forward), ref val, 100f)) { GameObject gameObject = ((Component)((RaycastHit)(ref val)).collider).gameObject; if (_skriptEnemies.Contains(gameObject)) { _skriptEnemies.Remove(gameObject); Object.Destroy((Object)(object)gameObject); _skriptScore++; _currentSouls += 1.0; } } } private void InitSolitaire() { _deck.Clear(); _waste.Clear(); _foundations = new List[4]; for (int i = 0; i < 4; i++) { _foundations[i] = new List(); } _tableau = new List[7]; for (int j = 0; j < 7; j++) { _tableau[j] = new List(); } for (int k = 0; k < 4; k++) { for (int l = 1; l <= 13; l++) { _deck.Add(new Card { Suit = k, Rank = l, FaceUp = false }); } } Random random = new Random(); int num = _deck.Count; while (num > 1) { num--; int index = random.Next(num + 1); Card value = _deck[index]; _deck[index] = _deck[num]; _deck[num] = value; } for (int m = 0; m < 7; m++) { for (int n = 0; n <= m; n++) { Card card = _deck[0]; _deck.RemoveAt(0); if (n == m) { card.FaceUp = true; } _tableau[m].Add(card); } } } private void DrawSolitaireContent() { //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_004a: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Expected O, but got Unknown //IL_006d: Unknown result type (might be due to invalid IL or missing references) //IL_00a5: Unknown result type (might be due to invalid IL or missing references) //IL_019e: Unknown result type (might be due to invalid IL or missing references) //IL_01f1: Unknown result type (might be due to invalid IL or missing references) //IL_024f: Unknown result type (might be due to invalid IL or missing references) //IL_02f5: Unknown result type (might be due to invalid IL or missing references) //IL_02fa: Unknown result type (might be due to invalid IL or missing references) //IL_046a: Unknown result type (might be due to invalid IL or missing references) //IL_046f: Unknown result type (might be due to invalid IL or missing references) //IL_0473: Unknown result type (might be due to invalid IL or missing references) //IL_0480: Unknown result type (might be due to invalid IL or missing references) //IL_0495: Unknown result type (might be due to invalid IL or missing references) //IL_0275: Unknown result type (might be due to invalid IL or missing references) //IL_026b: Unknown result type (might be due to invalid IL or missing references) //IL_03f7: Unknown result type (might be due to invalid IL or missing references) //IL_037f: Unknown result type (might be due to invalid IL or missing references) //IL_03b9: Unknown result type (might be due to invalid IL or missing references) GUILayout.BeginHorizontal(Array.Empty()); if (GUILayout.Button("New Game", Array.Empty())) { InitSolitaire(); } string obj = ((_selectedCard != null) ? "Place card..." : "Select a card"); GUIStyle val = new GUIStyle(GUI.skin.label); val.normal.textColor = Color.black; GUILayout.Label(obj, val, Array.Empty()); GUILayout.EndHorizontal(); GUI.BeginGroup(GUILayoutUtility.GetRect(680f, 430f)); float num = 60f; float num2 = 80f; float num3 = 20f; float num4 = 20f; float num5 = 120f; Rect val2 = default(Rect); ((Rect)(ref val2))..ctor(10f, num4, num, num2); if (GUI.Button(val2, (_deck.Count > 0) ? "" : "X", _styleCard)) { if (_deck.Count > 0) { Card card = _deck[0]; _deck.RemoveAt(0); card.FaceUp = true; _waste.Add(card); } else { _deck.AddRange(_waste); _waste.Clear(); foreach (Card item in _deck) { item.FaceUp = false; } } _selectedCard = null; } if (_deck.Count > 0) { GUI.DrawTexture(new Rect(((Rect)(ref val2)).x + 3f, ((Rect)(ref val2)).y + 3f, num - 6f, num2 - 6f), (Texture)(object)_texXPBlue); } Rect r = default(Rect); ((Rect)(ref r))..ctor(10f + num + num3, num4, num, num2); if (_waste.Count > 0) { Card c2 = _waste.Last(); DrawCard(r, c2, delegate { _selectedCard = c2; _selectedSourceType = 1; }); } Rect val3 = default(Rect); for (int j = 0; j < 4; j++) { ((Rect)(ref val3))..ctor(300f + (float)j * (num + num3), num4, num, num2); Card card2 = ((_foundations[j].Count > 0) ? _foundations[j].Last() : null); GUI.Box(val3, (card2 == null) ? "A" : ""); if (card2 != null) { DrawCard(val3, card2, null); } if (GUI.Button(val3, "", GUIStyle.none) && _selectedCard != null) { TryMoveToFoundation(j); } } Rect val5 = default(Rect); for (int i = 0; i < 7; i++) { float num6 = 10f + (float)i * (num + num3); float num7 = num5; if (_tableau[i].Count == 0) { Rect val4 = new Rect(num6, num7, num, num2); GUI.Box(val4, ""); if (GUI.Button(val4, "", GUIStyle.none) && _selectedCard != null) { TryMoveToTableau(i); } } for (int k = 0; k < _tableau[i].Count; k++) { Card c = _tableau[i][k]; ((Rect)(ref val5))..ctor(num6, num7, num, num2); if (!c.FaceUp) { GUI.Box(val5, "", _styleCard); GUI.DrawTexture(new Rect(((Rect)(ref val5)).x + 3f, ((Rect)(ref val5)).y + 3f, num - 6f, num2 - 6f), (Texture)(object)_texXPBlue); if (k == _tableau[i].Count - 1) { c.FaceUp = true; } } else { DrawCard(val5, c, delegate { if (_selectedCard == null) { _selectedCard = c; _selectedSourceType = 0; _selectedSourceIndex = i; } else { TryMoveToTableau(i); } }); } num7 += 25f; } } if (_selectedCard != null) { Vector2 mousePosition = Event.current.mousePosition; Rect r2 = default(Rect); ((Rect)(ref r2))..ctor(mousePosition.x - 30f, mousePosition.y - 40f, num, num2); DrawCard(r2, _selectedCard, null); } GUI.EndGroup(); } private void DrawCard(Rect r, Card c, Action onClick) { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Unknown result type (might be due to invalid IL or missing references) //IL_000e: Unknown result type (might be due to invalid IL or missing references) //IL_0043: 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_0050: Unknown result type (might be due to invalid IL or missing references) //IL_0058: Expected O, but got Unknown //IL_005f: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Unknown result type (might be due to invalid IL or missing references) Color backgroundColor = GUI.backgroundColor; if (_selectedCard == c) { GUI.backgroundColor = Color.yellow; } if (GUI.Button(r, "", _styleCard)) { onClick?.Invoke(); } GUI.backgroundColor = backgroundColor; GUIStyle val = new GUIStyle(GUI.skin.label) { fontSize = 16, fontStyle = (FontStyle)1 }; val.normal.textColor = c.GetColor(); GUI.Label(new Rect(((Rect)(ref r)).x + 5f, ((Rect)(ref r)).y + 5f, 50f, 30f), c.GetDisplay(), val); } private void TryMoveToFoundation(int i) { if (_selectedCard != null) { List list = _foundations[i]; bool flag = false; if (list.Count == 0) { flag = _selectedCard.Rank == 1; } else { Card card = list.Last(); flag = _selectedCard.Suit == card.Suit && _selectedCard.Rank == card.Rank + 1; } if (flag) { RemoveFromSource(); list.Add(_selectedCard); _currentSouls += 1.0; _soulCount.Value = _currentSouls; } _selectedCard = null; } } private void TryMoveToTableau(int i) { if (_selectedCard == null) { return; } if (_selectedSourceType == 0 && _selectedSourceIndex == i) { _selectedCard = null; return; } List list = _tableau[i]; bool flag = false; if (list.Count == 0) { flag = _selectedCard.Rank == 13; } else { Card card = list.Last(); bool num = _selectedCard.Suit == 0 || _selectedCard.Suit == 1; bool flag2 = card.Suit == 0 || card.Suit == 1; if (num != flag2 && _selectedCard.Rank == card.Rank - 1) { flag = true; } } if (flag) { if (_selectedSourceType == 0) { List list2 = _tableau[_selectedSourceIndex]; int num2 = list2.IndexOf(_selectedCard); List range = list2.GetRange(num2, list2.Count - num2); list2.RemoveRange(num2, range.Count); list.AddRange(range); } else { RemoveFromSource(); list.Add(_selectedCard); } } _selectedCard = null; } private void RemoveFromSource() { if (_selectedSourceType == 1) { _waste.Remove(_selectedCard); } else if (_selectedSourceType == 0) { _tableau[_selectedSourceIndex].Remove(_selectedCard); } } private void InitTetris() { _tGrid = new int[10, 20]; _tScore = 0; _tGameOver = false; _tPlaying = true; _tStep = 0.5f; SpawnPiece(); } private void SpawnPiece() { _tPT = Random.Range(1, 8); _tPR = 0; _tPX = 3; _tPY = 0; if (!IsValid(_tPX, _tPY, _tPR)) { _tGameOver = true; _audioSource.PlayOneShot(_sfxTOver); } } private void UpdateTetrisLogic() { _tTimer += Time.unscaledDeltaTime; if (_tTimer >= _tStep) { _tTimer = 0f; if (IsValid(_tPX, _tPY + 1, _tPR)) { _tPY++; return; } LockPiece(); _audioSource.PlayOneShot(_sfxTDrop); } } private void LockPiece() { int[,] array = _tShapes[_tPT][_tPR % _tShapes[_tPT].Length]; int length = array.GetLength(0); for (int i = 0; i < length; i++) { for (int j = 0; j < length; j++) { if (array[i, j] != 0) { _tGrid[_tPX + j, _tPY + i] = _tPT; } } } CheckLines(); SpawnPiece(); } private void CheckLines() { bool flag = false; for (int num = 19; num >= 0; num--) { bool flag2 = true; for (int i = 0; i < 10; i++) { if (_tGrid[i, num] == 0) { flag2 = false; } } if (flag2) { for (int num2 = num; num2 > 0; num2--) { for (int j = 0; j < 10; j++) { _tGrid[j, num2] = _tGrid[j, num2 - 1]; } } for (int k = 0; k < 10; k++) { _tGrid[k, 0] = 0; } _tScore += 100; _currentSouls += 10.0; _tStep = Mathf.Max(0.1f, _tStep - 0.01f); num++; flag = true; } } if (flag) { _audioSource.PlayOneShot(_sfxTLine); } } private bool IsValid(int px, int py, int pr) { int[,] array = _tShapes[_tPT][pr % _tShapes[_tPT].Length]; int length = array.GetLength(0); for (int i = 0; i < length; i++) { for (int j = 0; j < length; j++) { if (array[i, j] != 0 && (px + j < 0 || px + j >= 10 || py + i >= 20 || (py + i >= 0 && _tGrid[px + j, py + i] != 0))) { return false; } } } return true; } private void DrawTetrisContent() { //IL_0029: Unknown result type (might be due to invalid IL or missing references) //IL_002e: 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_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0046: Unknown result type (might be due to invalid IL or missing references) //IL_0057: Expected O, but got Unknown //IL_00cf: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Invalid comparison between Unknown and I4 //IL_0094: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Unknown result type (might be due to invalid IL or missing references) //IL_00a9: Unknown result type (might be due to invalid IL or missing references) //IL_00b1: Unknown result type (might be due to invalid IL or missing references) //IL_00c2: Expected O, but got Unknown //IL_021b: Unknown result type (might be due to invalid IL or missing references) //IL_0220: Unknown result type (might be due to invalid IL or missing references) //IL_0273: 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_00e6: Unknown result type (might be due to invalid IL or missing references) //IL_00f0: Invalid comparison between Unknown and I4 //IL_0133: Unknown result type (might be due to invalid IL or missing references) //IL_013d: Invalid comparison between Unknown and I4 //IL_0180: Unknown result type (might be due to invalid IL or missing references) //IL_018a: Invalid comparison between Unknown and I4 //IL_01ca: Unknown result type (might be due to invalid IL or missing references) //IL_01d4: Invalid comparison between Unknown and I4 //IL_02ea: Unknown result type (might be due to invalid IL or missing references) //IL_0325: Unknown result type (might be due to invalid IL or missing references) //IL_036f: Unknown result type (might be due to invalid IL or missing references) //IL_037e: Unknown result type (might be due to invalid IL or missing references) //IL_045f: Unknown result type (might be due to invalid IL or missing references) //IL_047a: 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) //IL_04d7: Unknown result type (might be due to invalid IL or missing references) GUILayout.BeginHorizontal(Array.Empty()); string text = "Score: " + _tScore; GUIStyle val = new GUIStyle(GUI.skin.label); val.normal.textColor = Color.black; val.fontSize = 18; val.fontStyle = (FontStyle)1; GUILayout.Label(text, val, Array.Empty()); GUILayout.FlexibleSpace(); if (GUILayout.Button("New Game", Array.Empty())) { InitTetris(); } GUILayout.EndHorizontal(); if (_tGameOver) { GUILayout.FlexibleSpace(); GUIStyle val2 = new GUIStyle(GUI.skin.label); val2.normal.textColor = Color.red; val2.fontSize = 30; val2.alignment = (TextAnchor)4; GUILayout.Label("GAME OVER", val2, Array.Empty()); GUILayout.FlexibleSpace(); return; } Event current = Event.current; if ((int)current.type == 4 && _tPlaying) { if ((int)current.keyCode == 276 && IsValid(_tPX - 1, _tPY, _tPR)) { _tPX--; _audioSource.PlayOneShot(_sfxTMove); } else if ((int)current.keyCode == 275 && IsValid(_tPX + 1, _tPY, _tPR)) { _tPX++; _audioSource.PlayOneShot(_sfxTMove); } else if ((int)current.keyCode == 274 && IsValid(_tPX, _tPY + 1, _tPR)) { _tPY++; _audioSource.PlayOneShot(_sfxTMove); } else if ((int)current.keyCode == 273 && IsValid(_tPX, _tPY, _tPR + 1)) { _tPR++; _audioSource.PlayOneShot(_sfxTRotate); } } Rect rect = GUILayoutUtility.GetRect(300f, 600f); float num = 25f; float num2 = (((Rect)(ref rect)).width - 10f * num) / 2f; GUI.DrawTexture(new Rect(((Rect)(ref rect)).x + num2 - 2f, ((Rect)(ref rect)).y - 2f, 10f * num + 4f, 20f * num + 4f), (Texture)(object)_texBlack); GUI.DrawTexture(new Rect(((Rect)(ref rect)).x + num2, ((Rect)(ref rect)).y, 10f * num, 20f * num), (Texture)(object)_texWhite); for (int i = 0; i < 20; i++) { for (int j = 0; j < 10; j++) { if (_tGrid[j, i] != 0) { Color color = _tColors[_tGrid[j, i]]; GUI.DrawTexture(new Rect(((Rect)(ref rect)).x + num2 + (float)j * num + 1f, ((Rect)(ref rect)).y + (float)i * num + 1f, num - 2f, num - 2f), (Texture)(object)Texture2D.whiteTexture); GUI.color = color; GUI.DrawTexture(new Rect(((Rect)(ref rect)).x + num2 + (float)j * num + 2f, ((Rect)(ref rect)).y + (float)i * num + 2f, num - 4f, num - 4f), (Texture)(object)Texture2D.whiteTexture); GUI.color = Color.white; } } } if (_tGameOver || !_tPlaying) { return; } int[,] array = _tShapes[_tPT][_tPR % _tShapes[_tPT].Length]; int length = array.GetLength(0); for (int k = 0; k < length; k++) { for (int l = 0; l < length; l++) { if (array[k, l] != 0 && _tPY + k >= 0) { GUI.DrawTexture(new Rect(((Rect)(ref rect)).x + num2 + (float)(_tPX + l) * num + 1f, ((Rect)(ref rect)).y + (float)(_tPY + k) * num + 1f, num - 2f, num - 2f), (Texture)(object)Texture2D.whiteTexture); GUI.color = _tColors[_tPT]; GUI.DrawTexture(new Rect(((Rect)(ref rect)).x + num2 + (float)(_tPX + l) * num + 2f, ((Rect)(ref rect)).y + (float)(_tPY + k) * num + 2f, num - 4f, num - 4f), (Texture)(object)Texture2D.whiteTexture); GUI.color = Color.white; } } } } } public class ChatMessage { public string Sender; public string Content; public bool IsFileTransfer; public string FileName; public Action OnAcceptFile; public bool FileAccepted; } public class ChatEngine { public class DialogNode { public string ID; public string BotText; public Dictionary Responses = new Dictionary(StringComparer.OrdinalIgnoreCase); public Action OnEnter; public string DefaultNextNode; } private Dictionary> _conversations = new Dictionary>(); private Dictionary _currentNodes = new Dictionary(); public void Init() { Dictionary dictionary = new Dictionary(); dictionary["start"] = new DialogNode { BotText = "Hello! I am SmarterChild. Ask me anything!", DefaultNextNode = "confused" }; dictionary["start"].Responses["hello"] = "start"; dictionary["start"].Responses["hi"] = "start"; dictionary["start"].Responses["weather"] = "weather"; dictionary["weather"] = new DialogNode { BotText = "It is currently 72 degrees and partly cloudy in Redmond, WA.", DefaultNextNode = "start" }; dictionary["confused"] = new DialogNode { BotText = "I don't understand that.", DefaultNextNode = "start" }; _conversations["SmarterChild"] = dictionary; _currentNodes["SmarterChild"] = "start"; Dictionary dictionary2 = new Dictionary(); dictionary2["start"] = new DialogNode { BotText = "I'm busy playing Barbie DreamHouse!", DefaultNextNode = "ignore" }; dictionary2["ignore"] = new DialogNode { BotText = "Seriously, leave me alone. Ken is about to arrive.", DefaultNextNode = "start" }; _conversations["Bocon"] = dictionary2; _currentNodes["Bocon"] = "start"; Dictionary dictionary3 = new Dictionary(); dictionary3["start"] = new DialogNode { BotText = "Compressing data... 98%... Do not disturb.", DefaultNextNode = "busy" }; dictionary3["busy"] = new DialogNode { BotText = "I said do not disturb.", DefaultNextNode = "start" }; _conversations["RepackerX"] = dictionary3; _currentNodes["RepackerX"] = "start"; Dictionary dictionary4 = new Dictionary(); dictionary4["start"] = new DialogNode { BotText = "Hola from Argentina! The internet is slow here.", DefaultNextNode = "lag" }; dictionary4["lag"] = new DialogNode { BotText = "Still buffering...", DefaultNextNode = "start" }; _conversations["Skript"] = dictionary4; _currentNodes["Skript"] = "start"; Dictionary dictionary5 = new Dictionary(); dictionary5["start"] = new DialogNode { BotText = "...", DefaultNextNode = "intro" }; dictionary5["intro"] = new DialogNode { BotText = "I see you looking at the screen.", DefaultNextNode = "offer" }; dictionary5["intro"].Responses["who are you"] = "mystery"; dictionary5["mystery"] = new DialogNode { BotText = "Someone who knows the truth about the lake.", DefaultNextNode = "offer" }; dictionary5["offer"] = new DialogNode { BotText = "I found a screensaver that reveals the real world. Want it?", DefaultNextNode = "wait" }; dictionary5["offer"].Responses["yes"] = "send_virus"; dictionary5["offer"].Responses["sure"] = "send_virus"; dictionary5["offer"].Responses["ok"] = "send_virus"; dictionary5["offer"].Responses["no"] = "bad_choice"; dictionary5["bad_choice"] = new DialogNode { BotText = "You will regret staying blind.", DefaultNextNode = "start" }; dictionary5["send_virus"] = new DialogNode { BotText = "Here. Open it.", OnEnter = delegate(EmpressXPPlugin plugin) { plugin.TriggerMSNFileTransfer("DarkSoul", "LakeSaver.exe", "virus"); }, DefaultNextNode = "done" }; dictionary5["done"] = new DialogNode { BotText = "Enjoy the view.", DefaultNextNode = "done" }; _conversations["DarkSoul"] = dictionary5; _currentNodes["DarkSoul"] = "start"; Dictionary dictionary6 = new Dictionary(); dictionary6["start"] = new DialogNode { BotText = "Yo! Bored of Solitaire yet?", DefaultNextNode = "offer" }; dictionary6["offer"] = new DialogNode { BotText = "I coded a number guessing game. Want to try?", DefaultNextNode = "wait" }; dictionary6["offer"].Responses["yes"] = "send_game"; dictionary6["offer"].Responses["sure"] = "send_game"; dictionary6["send_game"] = new DialogNode { BotText = "Sending NumberGuess.exe...", OnEnter = delegate(EmpressXPPlugin plugin) { plugin.TriggerMSNFileTransfer("GamerDude", "NumberGuess.exe", "game1"); }, DefaultNextNode = "post_send" }; dictionary6["post_send"] = new DialogNode { BotText = "Let me know if you beat it!", DefaultNextNode = "start" }; _conversations["GamerDude"] = dictionary6; _currentNodes["GamerDude"] = "start"; Dictionary dictionary7 = new Dictionary(); dictionary7["start"] = new DialogNode { BotText = "X or O? That is the question.", DefaultNextNode = "offer" }; dictionary7["offer"] = new DialogNode { BotText = "I have a TicTacToe build. You want in?", DefaultNextNode = "wait" }; dictionary7["offer"].Responses["yes"] = "send_game"; dictionary7["send_game"] = new DialogNode { BotText = "Sending TicTacToe.exe...", OnEnter = delegate(EmpressXPPlugin plugin) { plugin.TriggerMSNFileTransfer("RetroFan", "TicTacToe.exe", "game2"); }, DefaultNextNode = "post_send" }; dictionary7["post_send"] = new DialogNode { BotText = "GG.", DefaultNextNode = "start" }; _conversations["RetroFan"] = dictionary7; _currentNodes["RetroFan"] = "start"; } public string GetCurrentResponse(string contact, string input, EmpressXPPlugin plugin) { if (!_conversations.ContainsKey(contact)) { return "..."; } Dictionary dictionary = _conversations[contact]; string key = _currentNodes[contact]; if (!dictionary.ContainsKey(key)) { key = "start"; } DialogNode dialogNode = dictionary[key]; string text = dialogNode.DefaultNextNode; if (!string.IsNullOrEmpty(input)) { foreach (KeyValuePair response in dialogNode.Responses) { if (input.IndexOf(response.Key, StringComparison.OrdinalIgnoreCase) >= 0) { text = response.Value; break; } } } if (string.IsNullOrEmpty(text) || !dictionary.ContainsKey(text)) { text = "start"; } _currentNodes[contact] = text; DialogNode dialogNode2 = dictionary[text]; if (dialogNode2.OnEnter != null) { dialogNode2.OnEnter(plugin); } return dialogNode2.BotText; } public string GetGreeting(string contact) { if (!_conversations.ContainsKey(contact)) { return ""; } return _conversations[contact]["start"].BotText; } } public static class TexExt { public static Texture2D WithColor(this Texture2D t, Color c) { //IL_0003: Unknown result type (might be due to invalid IL or missing references) t.SetPixel(0, 0, c); t.Apply(); return t; } } }