Löve Frames - A GUI Library

Showcase your libraries, tools and other projects that help your fellow love users.
pirogronian
Prole
Posts: 1
Joined: Sun Jun 30, 2019 5:38 pm

Re: Löve Frames - A GUI Library

Post by pirogronian » Sun Jun 30, 2019 5:45 pm

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"}
).

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 6 guests