Beispiel #1
0
        public void Exec(string cmd)
        {
            cmd = cmd.ToLower();
            switch (cmd)
            {
            case "duplicate":
                m_editor.Duplicate(m_editor.Selection.gameObjects);
                break;

            case "delete":
                m_editor.Delete(m_editor.Selection.gameObjects);
                break;

            case "undo":
                m_editor.Undo.Undo();
                break;

            case "redo":
                m_editor.Undo.Redo();
                break;

            case "play":
                m_editor.IsPlaying = true;
                break;

            case "stop":
                m_editor.IsPlaying = false;
                break;
            }
        }
        public void Exec(string cmd)
        {
            ILocalization localization = IOC.Resolve <ILocalization>();

            cmd = cmd.ToLower();
            switch (cmd)
            {
            case "duplicate":
                m_editor.Duplicate(m_editor.Selection.gameObjects);
                break;

            case "delete":
                m_editor.Delete(m_editor.Selection.gameObjects);
                break;

            case "undo":
                m_editor.Undo.Undo();
                break;

            case "redo":
                m_editor.Undo.Redo();
                break;

            case "play":
                m_editor.IsPlaying = true;
                break;

            case "stop":
                m_editor.IsPlaying = false;
                break;

            case "settings":
                IWindowManager wm = IOC.Resolve <IWindowManager>();
                wm.CreateDialogWindow("settings", "ID_RTEditor_WM_Header_Settings",
                                      (sender, args) => { }, (sender, args) => { }, 250, 125, 480, 380, true);
                break;
            }
        }
Beispiel #3
0
        public void Exec(string cmd)
        {
            cmd = cmd.ToLower();
            switch (cmd)
            {
            case "duplicate":
                m_editor.Duplicate(m_editor.Selection.gameObjects);
                break;

            case "delete":
                m_editor.Delete(m_editor.Selection.gameObjects);
                break;

            case "undo":
                m_editor.Undo.Undo();
                break;

            case "redo":
                m_editor.Undo.Redo();
                break;

            case "play":
                m_editor.IsPlaying = true;
                break;

            case "stop":
                m_editor.IsPlaying = false;
                break;

            case "settings":
                IWindowManager wm = IOC.Resolve <IWindowManager>();
                wm.CreateDialogWindow("settings", "Settings",
                                      (sender, args) => { }, (sender, args) => { }, 350, 350, 350, 350, false);
                break;
            }
        }