Beispiel #1
0
        private void entry_kDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.F1)
            {
                about ab = new about();
                ab.ShowDialog();
            }
            if (e.KeyCode == Keys.F2)
            {
                Settings st = new Settings(useOverwriteFile, useAutoReloadFile);
                if (st.ShowDialog() == DialogResult.OK)
                {
                    useOverwriteFile  = st.useOverwriteFile;
                    useAutoReloadFile = st.useAutoReloadFile;

                    if (useAutoReloadFile)
                    {
                        if (lastReadPlrPath != "")
                        {
                            autoFunctionTimer.Start();
                        }
                    }
                    else
                    {
                        autoFunctionTimer.Stop();
                    }
                }
            }
            if (e.KeyCode == Keys.F3)
            {
                hexView hx = new hexView(debugInvData, rawDecrypted.ToArray(), nameEndOffset, versionCode);
                hx.ShowDialog();
            }
        }
Beispiel #2
0
        private void entry_kDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.F1)
            {
                about ab = new about();
                ab.ShowDialog();
            }
            if (e.KeyCode == Keys.F2)
            {
                Settings st = new Settings(useOverwriteFile, useAutoReloadFile);
                if (st.ShowDialog() == DialogResult.OK)
                {
                    useOverwriteFile  = st.useOverwriteFile;
                    useAutoReloadFile = st.useAutoReloadFile;

                    if (useAutoReloadFile)
                    {
                        if (lastReadPlrPath != "")
                        {
                            autoFunctionTimer.Start();
                        }
                    }
                    else
                    {
                        autoFunctionTimer.Stop();
                    }
                }
            }
            if (e.KeyCode == Keys.F3)
            {
                hexView hx = new hexView(debugInvData, rawDecrypted.ToArray(), nameEndOffset, versionCode);
                hx.ShowDialog();
            }
            if (e.KeyCode == Keys.C && e.Modifiers == Keys.Control)
            {
                copyBuffer = inventory[invSelectedIndex];
                copyIndex  = invSelectedIndex;
                updateInvDisplay();
            }
            if (e.KeyCode == Keys.V && e.Modifiers == Keys.Control)
            {
                if (copyBuffer != null)
                {
                    cbItem.SelectedItem     = copyBuffer.item.name;
                    cbPrefixes.SelectedItem = copyBuffer.prefix.name;
                    nudQuant.Value          = copyBuffer.quantity;
                    updateInvDisplay();
                }
            }
            if (e.KeyCode == Keys.Escape)
            {
                copyIndex  = -1;
                copyBuffer = null;
                updateInvDisplay();
            }
            if (e.KeyCode == Keys.Delete)
            {
                cbItem.SelectedItem      = "Empty";
                cbPrefixes.SelectedIndex = 0;
                nudQuant.Value           = 0;
            }
        }