Magic Txt
Types
Functions
Link copied to clipboard
Uses MagicDisplayableText to add a paragraph to the given TextPanelAPI.
open fun addPara(text: TooltipMakerAPI, str: String, padding: Float, textColor: Color, highlightColor: Color)
Uses MagicDisplayableText to add a paragraph to the given TooltipMakerAPI.
Link copied to clipboard
Takes a string with the format "This is a ==highlighted word== string.
Link copied to clipboard
If the string is longer than the given length, returns the string truncated to the given length with "..." appended.
Link copied to clipboard
If the input is an empty string, returns null.
Link copied to clipboard
open fun replaceAllIfPresent(stringToReplace: String, regex: String, stringCreator: StringCreator): String
Replaces all instances of the given regex with the string returned from stringCreator.