TmEssentials

Everyday utilities for Trackmania projects.

TmEssentials

Formatted text to plain, HTML or ANSI, Trackmania time types, account and map utilities. Works from .NET Framework 4.6.2 to .NET 10.

dotnet add package TmEssentials NuGet

TmEssentials.Razor

The FormattedText Blazor component, with the Font Awesome icons the game shows in text.

dotnet add package TmEssentials.Razor NuGet

Explore

Get started

Format text in Blazor

Render formatted text with the component, and link the stylesheet to show the icons.

<FormattedText Text="$f00Red $l[https://trackmania.io]link$l" AllowLinks="true" /> <link rel="stylesheet" href="_content/TmEssentials.Razor/tm-essentials.css" />

Format text anywhere else

The same parser is available without Blazor.

TextFormatter.Deformat("$f00Red text"); // Red text TextFormatter.FormatHtml("$f00Red text"); // <span style="color:#f00">Red text</span> new TimeInt32(83456).ToTmString(); // 1:23.456
An unhandled error has occurred. Reload 🗙