Exemplo n.º 1
0
        void VMDebug_OnButtonClick(UIElement button)
        {
            System.Windows.Forms.Form gameWindowForm =
                (System.Windows.Forms.Form)System.Windows.Forms.Form.FromHandle(GameFacade.Game.Window.Handle);
            gameWindowForm.Location = new System.Drawing.Point(0, 0);

            var debugTools = new Simantics(vm);

            debugTools.Show();
            debugTools.Location = new System.Drawing.Point(gameWindowForm.Location.X + gameWindowForm.Width, 0);
        }
Exemplo n.º 2
0
        private void VMDebug_OnButtonClick(UIElement button)
        {
            if (vm != null)
            {
                var debugTools = new Simantics(vm);

                var window = GameFacade.Game.Window;
                debugTools.Show();
                debugTools.Location = new System.Drawing.Point(window.ClientBounds.X + window.ClientBounds.Width, window.ClientBounds.Y);
                debugTools.UpdateAQLocation();
            }
        }
Exemplo n.º 3
0
        void VMDebug_OnButtonClick(UIElement button)
        {
            if (vm == null)
            {
                return;
            }
            System.Windows.Forms.Form gameWindowForm =
                (System.Windows.Forms.Form)System.Windows.Forms.Form.FromHandle(GameFacade.Game.Window.Handle);

            var debugTools = new Simantics(vm);

            debugTools.Show();
            debugTools.Location = new System.Drawing.Point(gameWindowForm.Location.X + gameWindowForm.Width, gameWindowForm.Location.Y);
            debugTools.UpdateAQLocation();
        }