public static DiagnosticsManager Initialize(Game game)
        {
            manager = new DiagnosticsManager(game);
            game.Services.AddService(typeof(DiagnosticsManager), manager);

            return(manager);
        }
Exemple #2
0
        public DiagnosticsUI(Game game, DiagnosticsManager manager)
            : base(game)
        {
            MaxLineCount      = 20;
            MaxCommandHistory = 32;
            Cursor            = "_";
            DefaultPrompt     = "CMD>";

            sb          = (SpriteBatch)Game.Services.GetService(typeof(SpriteBatch));
            diagManager = manager;
            //diagManager = (DiagnosticsManager)Game.Services.GetService(typeof(DiagnosticsManager));

            font = Game.Content.Load <SpriteFont>("Fonts/DebugFont");
            game.Components.Add(this);

            Prompt    = DefaultPrompt;
            DrawOrder = int.MaxValue;
        }
        public DiagnosticsUI(Game game, DiagnosticsManager manager)
            : base(game)
        {
            MaxLineCount = 20;
            MaxCommandHistory = 32;
            Cursor = "_";
            DefaultPrompt = "CMD>";

            sb = (SpriteBatch)Game.Services.GetService(typeof(SpriteBatch));
            diagManager = manager;
            //diagManager = (DiagnosticsManager)Game.Services.GetService(typeof(DiagnosticsManager));

            font = Game.Content.Load<SpriteFont>("Fonts/DebugFont");
            game.Components.Add(this);

            Prompt = DefaultPrompt;
            DrawOrder = int.MaxValue;
        }
        public static DiagnosticsManager Initialize(Game game)
        {
            manager = new DiagnosticsManager(game);
            game.Services.AddService(typeof(DiagnosticsManager), manager);

            return manager;
        }