TAMods  0.4
Customization mod for Tribes:Ascend
Classes | Functions
Utils.h File Reference

Go to the source code of this file.

Classes

struct  Color
 
struct  Vector
 
struct  Vector4
 

Functions

Color rgb (number r, number g, number b)
 
Color rgba (number r, number g, number b, number a)
 
void print (string message)
 
void console (string message)
 
void consoleRGB (string message, Color color)
 
void notify (string title, string message)
 

Function Documentation

void console ( string  message)

Prints a message to the console (~)

Parameters
messageThe message to print
void consoleRGB ( string  message,
Color  color 
)

Prints a message to the console (~) in a given color

Parameters
messageThe message to print
colorThe color to use to display the message
void notify ( string  title,
string  message 
)

Open a new notification window with the given title and message

Parameters
titleThe title of the notification
messageThe message to display
void print ( string  message)

Prints a message to the console (~)

Parameters
messageThe message to print
Color rgb ( number  r,
number  g,
number  b 
)

Creates a full opaque (alpha = 255) color object

Equivalent of rgba(r, g, b, 255);

Parameters
rThe red component of the color
gThe green component of the color
bThe blue component of the color
Returns
The created color
Color rgba ( number  r,
number  g,
number  b,
number  a 
)

Creates a color object

Parameters
rThe red component of the color
gThe green component of the color
bThe blue component of the color
aThe opacity of the color
Returns
The created color