public DebugWindowControl(Game game, DisplayInfo displayInfo, GeneralDebugComponent fps, ByteColor LeftPanelColor) { _fps = fps; _displayInfo = displayInfo; _game = game; BuildWindow(ref LeftPanelColor); }
public DebugOptionsControl(Control parent, UniRectangle bounds, Game game, DisplayInfo displayinfo, GeneralDebugComponent fps) { this.Bounds = bounds; parent.Children.Add(this); _fps = fps; _game = game; _displayinfo = displayinfo; BuildWindow(); }
public DebugComponent(InputsManager inputManager, GuiManager guiManager, Game game, D3DEngine engine, ByteColor LeftPanelColor, bool withDisplayInfoActivated = false) { this.IsSystemComponent = true; _inputManager = inputManager; _engine = engine; _leftPanelColor = LeftPanelColor; _guiManager = guiManager; _game = game; _displayInfo = ToDispose(new DisplayInfo(_engine, game)); _displayInfo.EnableComponent(); _fps = ToDispose(new GeneralDebugComponent(inputManager)); if (withDisplayInfoActivated) { _fps.EnableComponent(); } _fps.ShowDebugInfo = true; _displayInfo.AddComponants(_fps); this.DrawOrders.UpdateIndex(0, int.MaxValue); this.DrawOrders.AddIndex(_guiManager.DrawOrders.DrawOrdersCollection[0].Order + 2, "Chart"); }