private void MainWindow_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Escape || e.KeyCode == Keys.F3)
     {
         IngameWorldEditor_UI.Core_StopInput();
         panel1.Enabled = false;
     }
 }
 private void panelRenderView_Click(object sender, EventArgs e)
 {
     this.Focus();
     IngameWorldEditor_UI.Core_StartInput();
     panel1.Enabled = false;
     Console.WriteLine("Click");
     SkipDeactivate = true;
 }
        private void MainWindow_Deactivate(object sender, EventArgs e)
        {
            if (SkipDeactivate == true)
            {
                SkipDeactivate = false;
                return;
            }

            IngameWorldEditor_UI.Core_StopInput();
            panel1.Enabled = true;
            Console.WriteLine("Deactivate");
        }
Example #4
0
        public VobTreeNode(IntPtr vobHandle)
        {
            VobHandle = vobHandle;
            if (VobHandle == IntPtr.Zero)
            {
                return;
            }

            try
            {
                string vobType = IngameWorldEditor_UI.Core_GetVobType(VobHandle);
                string vobName = IngameWorldEditor_UI.Core_GetVobName(VobHandle);
                Text = string.Format("{0}: {1}", vobType, vobName);
            }
            catch (Exception e)
            {
                Text = "[Invalid object]";
                Console.WriteLine(e.Message);
            }
        }