예제 #1
0
        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;
            }
            }
        }
예제 #2
0
        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();
        }
예제 #3
0
파일: Main.cs 프로젝트: val7x/NHSE
        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;
            }
            }
        }