private static void Game_OnGameLoad(EventArgs args) { recordingbool = false; _recordicon = loadrecordicon(); Gameregion = GetGameRegion(); Game.PrintChat("OP.GG Replay Helper By Seph"); Config = new Menu("ReplaySharp", "replaysharp", true); Config.AddItem(new MenuItem("checkonce", "Only Check Once").SetValue(false)); Config.AddItem(new MenuItem("Autorecord", "Record all Games").SetValue(false)); Config.AddItem(new MenuItem("disable", "Disable Record Button").SetValue(false)); Config.AddItem(new MenuItem("enabledrawings", "Show Drawings").SetValue(true)); Config.AddItem(new MenuItem("checkuntil", "Check until (mins)").SetValue(new Slider(10, 0, 60))); Config.AddToMainMenu(); playerNameEnc = HttpUtility.UrlEncode(ObjectManager.Player.Name); Thread thread = new Thread(() => { replaysharp = new ReplaySharp(); }); thread.Start(); if (Config.Item("Autorecord").GetValue <bool>()) { Game.PrintChat("[ReplaySharp] Autorecording is on. Attempting to record the game."); recordthis(playerNameEnc.ToLower(), Gameregion); } Game.OnWndProc += Game_OnWndProc; }
private static void Game_OnGameLoad(EventArgs args) { recordingbool = false; _recordicon = loadrecordicon(); Gameregion = GetGameRegion(); Game.PrintChat("OP.GG Replay Helper By Seph"); Config = new Menu("ReplaySharp", "replaysharp", true); Config.AddItem(new MenuItem("checkonce", "Only Check Once").SetValue(false)); Config.AddItem(new MenuItem("Autorecord", "Record all Games").SetValue(false)); Config.AddItem(new MenuItem("disable", "Disable Record Button").SetValue(false)); Config.AddItem(new MenuItem("enabledrawings", "Show Drawings").SetValue(true)); Config.AddItem(new MenuItem("checkuntil", "Check until (mins)").SetValue(new Slider(10, 0, 60))); Config.AddToMainMenu(); playerNameEnc = HttpUtility.UrlEncode(ObjectManager.Player.Name); Thread thread = new Thread(() => { replaysharp = new ReplaySharp(); }); thread.Start(); if (Config.Item("Autorecord").GetValue<bool>()) { Game.PrintChat("[ReplaySharp] Autorecording is on. Attempting to record the game."); recordthis(playerNameEnc.ToLower(), Gameregion); } Game.OnWndProc += Game_OnWndProc; }