Page 39 of 39

Re: Löve Frames - A GUI Library

Posted: Sun Jun 30, 2019 5:45 pm
by pirogronian
Bug report: Colored text doesnt work (as already posted at https://github.com/linux-man/LoveFrames/issues/2). Quick reproduce: (following wiki):

Code: Select all

local text = {{255, 0, 0, 255}, "Red ", {0, 255, 0, 255}, "Green ", {0, 0, 255, 255}, "Blue"}
object:SetText(text)
Resulted text is grey (with default skin).

Edit: Following updated documentation solved the problem (code which works:

Code: Select all

local text = {{color = {1, 0, 0}}, "Red ", {color = {0, 1, 0}}, "Green ", {color = {0, 0, 1}}, "Blue"}
).