Page 1 of 1

Label text color doesn't appear to work

PostPosted: Sun Mar 22, 2015 8:54 pm
by grimm
I'm trying to setup a label that is colored, but when I set the color Octane will not display the label. I'm passing textColour = { 10, 60, 255, 0 }, is this correct? Thanks,

Jason

Re: Label text color doesn't appear to work

PostPosted: Mon Mar 23, 2015 9:51 pm
by stratified
Hi Jason,

The label is fully transparent (i.e. the alpha is 0). Here's an example snippet:

Code: Select all
local label = octane.gui.create{ type = octane.gui.componentType.LABEL, textColour={255, 0, 0, 255 }}
local window = octane.gui.create{ type = octane.gui.componentType.WINDOW, width = label.width, height = label.height, children = { label } }
window:showWindow()


cheers,
Thomas

Re: Label text color doesn't appear to work

PostPosted: Mon Mar 23, 2015 10:00 pm
by grimm
*Sigh* I knew it was something stupid, thanks. :D