Widget.newButton changes default label text color

Sorry if this has been gone over before I couldn’t find it. But maybe that can lead to a quick answer.

I have awesome buttons with the lables set under them. I am not doing any: 

myButton.label.color.over = { 0 }

just…

 { default = { 1, 1, 1 }, },

To make sure the text is white, not default blue…
 

However, when the button is pressed, my label turns grayed out. Almost seems like it is transitioning grayed out on and off. 

This wouldn’t be a big deal, except when I put my buttons in my awesome widget scroll bar… When the user scrolls the bar and happens to be over a button, the button below will not activate, but it will switched down to this pressed state, changing the color, and leaving it that way. So after a couple of seconds of scrolling the widget, some of my buttons labels are are greyed out, even though those buttons are not selected.

Can anyone help me turn this mysterious feature off?

thanks Coronaites!

Hi @Lava Level,

Does the same thing happen if you also specify an “over” color table in the button instantiation?

[lua]

labelColor = { default={ 1, 1, 1 }, over={ 1, 1, 1 } }

[/lua]

Brent

Yeah, that doesn’t do anything. Even when I put that on buttons outside the widget, like stand alone buttons with text. You can see the ‘gray pressed mode’ flicker on. But as you can see it doesn’t work at all when in my cool button slider. ‘See Scatter’ and ‘Low Color’ buttons. Those where psudeo-pressed when I moved the slider. It behaved properly except the text part.

buttons.png

hmm… is there a way to just turn off that button_widget lavel fade on touch?  Is it something that I accidentally turned on?

 

Hi @Lava Level,

I found out that there is a hidden property which can set to disable this. It’s true by default, but I may check into making it false by default instead. In the meantime, try this and report back that it works (it did in my testing):

[lua]

myButton._view._hasAlphaFade = false

[/lua]

Thanks,

Brent

OMG THAT WORKED BRENT!!! You. Are. The. MAN!

Hi @Lava Level,

Does the same thing happen if you also specify an “over” color table in the button instantiation?

[lua]

labelColor = { default={ 1, 1, 1 }, over={ 1, 1, 1 } }

[/lua]

Brent

Yeah, that doesn’t do anything. Even when I put that on buttons outside the widget, like stand alone buttons with text. You can see the ‘gray pressed mode’ flicker on. But as you can see it doesn’t work at all when in my cool button slider. ‘See Scatter’ and ‘Low Color’ buttons. Those where psudeo-pressed when I moved the slider. It behaved properly except the text part.

buttons.png

hmm… is there a way to just turn off that button_widget lavel fade on touch?  Is it something that I accidentally turned on?

 

Hi @Lava Level,

I found out that there is a hidden property which can set to disable this. It’s true by default, but I may check into making it false by default instead. In the meantime, try this and report back that it works (it did in my testing):

[lua]

myButton._view._hasAlphaFade = false

[/lua]

Thanks,

Brent

OMG THAT WORKED BRENT!!! You. Are. The. MAN!