protected override void DrawSpritesInner() {
if (!VisibleUi) return;
if (_textBlock == null) {
_textBlock = new TextBlockRenderer(Sprite, "Arial", FontWeight.Normal, FontStyle.Normal, FontStretch.Normal, 24f);
}
_textBlock.DrawString($@"
FPS: {FramesPerSecond:F0}{(SyncInterval ? " (limited)" : "")}
Triangles: {TrianglesCount:D}
FXAA: {(UseFxaa ? "Yes" : "No")}
Bloom: {(UseBloom ? "Yes" : "No")}
Magick.NET: {(ImageUtils.IsMagickSupported ? "Yes" : "No")}".Trim(),
new Vector2(Width - 300, 20), 16f, new Color4(1.0f, 1.0f, 1.0f),
CoordinateType.Absolute);
if (CarHelper.Skins != null && CarHelper.CurrentSkin != null) {
_textBlock.DrawString($"{CarHelper.CurrentSkin} ({CarHelper.Skins.IndexOf(CarHelper.CurrentSkin) + 1}/{CarHelper.Skins.Count})",
new RectangleF(0f, 0f, Width, Height - 20),
TextAlignment.HorizontalCenter | TextAlignment.Bottom, 16f, new Color4(1.0f, 1.0f, 1.0f),
CoordinateType.Absolute);
}
}