mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Added per-character color support to love.graphics.print/printf and Text objects. Resolves issue #865.
The aforementioned functions now optionally accept an array instead of a plain string. The array is in the format of: {{r, g, b [, a]}, "first colored text, ", {r, g, b [, a]}, "second colored text", ...}, where the color values specify the color to use in the next section of the text.
This commit is contained in:
@@ -32,6 +32,7 @@ namespace opengl
|
||||
{
|
||||
|
||||
Text *luax_checktext(lua_State *L, int idx);
|
||||
void luax_checkcoloredstring(lua_State *L, int idx, std::vector<Font::ColoredString> &strings);
|
||||
int w_Text_set(lua_State *L);
|
||||
int w_Text_setf(lua_State *L);
|
||||
int w_Text_add(lua_State *L);
|
||||
|
||||
Reference in New Issue
Block a user