private void Main_KeyDown(object sender, KeyEventArgs e) { if (ModifierKeys != Keys.Control) { return; } switch (e.KeyCode) { case Keys.O: { Menu_Open(sender, e); break; } case Keys.I: { var items = new Item[40]; for (int i = 0; i < items.Length; i++) { items[i] = new Item(Item.NONE); } using var editor = new PlayerItemEditor <Item>(items, 10, 4, true); editor.ShowDialog(); break; } case Keys.H: { using var editor = new SysBotRAMEdit(InjectionType.Generic); editor.ShowDialog(); break; } } }
private void Menu_RAMEdit_Click(object sender, EventArgs e) { var exist = WinFormsUtil.FirstFormOfType <SysBotRAMEdit>(); if (exist != null) { exist.Show(); return; } var sysbot = new SysBotRAMEdit(InjectionType.Generic); sysbot.Show(); }
private void Main_KeyDown(object sender, KeyEventArgs e) { if (ModifierKeys != Keys.Control) { #if DEBUG if (ModifierKeys == (Keys.Control | Keys.Alt) && e.KeyCode == Keys.D) { DevUtil.UpdateAll(); } #endif return; } switch (e.KeyCode) { case Keys.O: { Menu_Open(sender, e); break; } case Keys.I: { ItemSprite.Initialize(GameInfo.GetStrings("en").itemlist); var items = new Item[40]; for (int i = 0; i < items.Length; i++) { items[i] = new Item(Item.NONE); } using var editor = new PlayerItemEditor(items, 10, 4, true); editor.ShowDialog(); break; } case Keys.H: { using var editor = new SysBotRAMEdit(InjectionType.Generic); editor.ShowDialog(); break; } case Keys.P: { using var editor = new SettingsEditor(); editor.ShowDialog(); break; } } }