Helper class with lots of utilitiy functions.
Static variables
staticansi_colors:Map<String, String> = ["black" => "\x1B[40m", "red" => "\x1B[41m", "green" => "\x1B[42m", "yellow" => "\x1B[43m", "blue" => "\x1B[44m", "magenta" => "\x1B[45m", "cyan" => "\x1B[46m", "grey" => "\x1B[47m", "white" => "\x1B[101m", "default" => "\x1B[0m"]
Simple map that contains useful ansi color strings that can be used when printing to console for nice colors.
See also:
Static methods
staticcoolError(message:String, title:String, ?pos:Null<PosInfos>):Void
Funny handler for Application.current.window.alert
that doesn't crash on Linux and shit.
Parameters:
message | Message of the error. |
---|---|
title | Title of the error. |
statichaxe_print(value:Dynamic, ?pos_infos:Null<PosInfos>):Void
Used to replace haxe.Log.trace
Parameters:
value | Value to trace. |
---|---|
pos_infos | (Optional) Info about where the trace came from and parameters for it. |
staticmax<T>(nums:Rest<T>):T
Gets the highest number from a list. Shoutout to @crinfarr on Discord.
Parameters:
...nums |
---|
Returns:
T
See also:
staticmin<T>(nums:Rest<T>):T
Gets the lowest number from a list. Shoutout to @crinfarr on Discord.
Parameters:
...nums |
---|
Returns:
T
See also: