Global functions (PGE-Lua)

From Moondust Wiki
Revision as of 06:51, 2 November 2015 by Wohlstand (talk | contribs) (Created page with "==Text functions== {{API table|Text Functions||2= {{API table/row| Renderer.printText({{type|string}} text, {{type|int}} x, {{type|int}} y) | {{type|nil}} | Prints ''tex...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Text functions

Text Functions
Function Return values Description
Renderer.printText(string text, int x, int y) nil Prints text at x, y with specific font-type 0 of white color
Renderer.printText(string text, int x, int y, int fontType, int size) nil Prints text at x, y with specific font-type with size 14 pt if TTF font was used (font-type -1) of white color
Renderer.printText(string text, int x, int y, int fontType, int size, int rgba) nil Prints text at x, y with specific font-type with specific size if TTF font was used (font-type -1) of white color
Renderer.printText(string text, int x, int y, int fontType, int size, int rgba) nil Prints text at x, y with specific font-type with specific size if TTF font was used (font-type -1) with RGBA-color (32-bit integer which contains defined colors via bitwise way). White would be 0xFFFFFFFF, Semi-transparent green 0x00FF0099