2 minutes to read
Created by
Wulf
Updated by
Wulf
Text Styling
Details on how to style text
This guide is for uMod, not Oxide.
Join our discord for the latest updates and the latest news! Join discord
uMod features a custom markup language, which is used for creating universally styling text across games. It works by converting any text passed through the supported methods and converts it to the compatible text styling for each specific game (if the game supports text styling).
Formatting
Bold
[b]bold text[/b]
string text = "[b]hello world[/b]";
string formattedText = uMod.Text.Formatter.Format(text);
Logger.Info(formattedText);
Italic
[i]italic text[/i]
string text = "[i]hello world[/i]";
string formattedText = uMod.Text.Formatter.Format(text);
Logger.Info(formattedText);
Color
[#white]white text[/#][#black]black text[/#]
Color Names
- aqua
- black
- blue
- brown
- cyan
- darkblue
- fuchsia
- green
- grey
- lightblue
- lime
- magenta
- maroon
- navy
- olive
- orange
- purple
- red
- silver
- teal
- white
- yellow
RGB
[#FFFFFF]white text[/#][#000000]black text[/#]
string text = "[#342543]hello world[/#]";
string formattedText = uMod.Text.Formatter.Format(text);
Logger.Info(formattedText);
RGBA
[#FFFFFFFF]white text[/#][#00000FF]black text[/#]
string text = "[#34254350]hello world[/#]";
string formattedText = uMod.Text.Formatter.Format(text);
Logger.Info(formattedText);
Size
[+4]size 4 text[/4]
string text = "[+4]hello world[/4]";
string formattedText = uMod.Text.Formatter.Format(text);
Logger.Info(formattedText);
Player messages
Sending messages to players using IPlayer.Message or IPlayer.Reply will automatically format messages.