Exemple #1
0
        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;
            }
            }
        }
Exemple #2
0
 private void Menu_Settings_Click(object sender, EventArgs e)
 {
     using var editor = new SettingsEditor();
     editor.ShowDialog();
 }