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
TmEssentials.Razor
The FormattedText Blazor component, with the Font Awesome icons the game shows in text.
dotnet add package TmEssentials.Razor
Explore
Text formatting
Hot Lap
A live playground for formatted text, and icons.
Time formatting
1:23.456
TimeInt32 and TimeSingle in all the Trackmania formats.
Utilities
v89i_w-eQKq5JBG5xwuKCQAccount IDs to logins and back, and map UIDs made and decoded like in the game.
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