Print (api)
From MechaSource Wiki
Print is used to make text ingame.
[edit] destroy
Destroys the print.
[edit] setPosition
setPosition(x,y)
Sets the print at a specific position
[edit] setPrint
setPrint(text)
Sets the content of a print.
[edit] setFont
setFont(font)
Sets and loads the font for the print to use.
[edit] setSize
setSize(fontsize)
Sets the font size for the print to use.
[edit] setBold
setBold(boolean)
Sets the bold state of the print.
[edit] setItalic
setItalic(boolean)
Sets the italic state of the print.
[edit] setCenter
setCenter(x,y)
Sets the center of rotation and positioning of the print. 0 is center, -1 is left/top and 1 is right/bottom.
[edit] setVisibility
setVisibility(vis)
Sets the visibility and transparency of the print. 1 is completely visible and 0 is entirely invisible.
[edit] setWidth
setWidth(pixels)
Sets the maximum width before wrapping the text.
[edit] setColor
setColor(r,g,b)
Sets the rgb color of the print.
[edit] setLayer
setLayer(layer)
Set the front and back view orientation compared to other graphical objects.
[edit] setWorld
setWorld(world)
Moves the print to a new world layer.
[edit] getPrint
Returns the content of a print.
[edit] getPosition
Returns the x and y coordinates of a print.
[edit] getFont
Returns the font used by the print.
[edit] getSize
Returns the font size of the print.
[edit] getBold
Returns the bold state of the print.
[edit] getItalic
|Returns the italic state of the print.
[edit] getCenter
Returns the x and y value for the center orientation of the print.
[edit] getVisibility
Returns the visibility and transparency of the print.
[edit] getWidth
Returns the maximum width in pixels before wrapping the text.
[edit] getColor
Returns the r, g and b color of the print.
[edit] getLayer
Returns the front and back view orientation compared to other graphical objects (default = 0).
[edit] getWorld
Returns the print's current world layer.
