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
Label text color doesn't appear to work
- stratified
- Posts: 945
- Joined: Wed Aug 15, 2012 6:32 am
- Location: Auckland, New Zealand
Hi Jason,
The label is fully transparent (i.e. the alpha is 0). Here's an example snippet:
cheers,
Thomas
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()
Thomas