コード例 #1
0
        public static void AdvanceOutputState()
        {
            switch (_state)
            {
            case DebugOutputState.None:
                _debugCommandUI.ExecuteCommand("tr on log:on");
                _debugCommandUI.ExecuteCommand("fps on");
                _debugCommandUI.ExecuteCommand("memory on");

                _state = DebugOutputState.Basic;
                break;

            case DebugOutputState.Basic:
                _debugCommandUI.ExecuteCommand("fps off");
                _debugCommandUI.ExecuteCommand("memory off");
                _debugCommandUI.ExecuteCommand("th on");

                _state = DebugOutputState.TimeHistory;
                break;

            case DebugOutputState.TimeHistory:
                _debugCommandUI.ExecuteCommand("tr off log:off");
                _debugCommandUI.ExecuteCommand("fps off");
                _debugCommandUI.ExecuteCommand("memory off");
                _debugCommandUI.ExecuteCommand("th off");

                _state = DebugOutputState.None;
                break;
            }
        }
コード例 #2
0
ファイル: Performance.cs プロジェクト: jaquadro/Amphibian
        public static void AdvanceOutputState()
        {
            switch (_state) {
                case DebugOutputState.None:
                    _debugCommandUI.ExecuteCommand("tr on log:on");
                    _debugCommandUI.ExecuteCommand("fps on");
                    _debugCommandUI.ExecuteCommand("memory on");

                    _state = DebugOutputState.Basic;
                    break;

                case DebugOutputState.Basic:
                    _debugCommandUI.ExecuteCommand("fps off");
                    _debugCommandUI.ExecuteCommand("memory off");
                    _debugCommandUI.ExecuteCommand("th on");

                    _state = DebugOutputState.TimeHistory;
                    break;

                case DebugOutputState.TimeHistory:
                    _debugCommandUI.ExecuteCommand("tr off log:off");
                    _debugCommandUI.ExecuteCommand("fps off");
                    _debugCommandUI.ExecuteCommand("memory off");
                    _debugCommandUI.ExecuteCommand("th off");

                    _state = DebugOutputState.None;
                    break;
            }
        }
コード例 #3
0
ファイル: Performance.cs プロジェクト: jaquadro/Amphibian
        public static void AdvanceToHidden()
        {
            _debugCommandUI.ExecuteCommand("tr off log:off");
            _debugCommandUI.ExecuteCommand("fps off");
            _debugCommandUI.ExecuteCommand("memory off");
            _debugCommandUI.ExecuteCommand("th off");

            _state = DebugOutputState.None;
        }