Is it possible a texbutton with two colors? Doesn't work the hover color!
Posted: Wed Jun 17, 2020 4:52 pm
Hi, I'm trying to create a textbutton with two colors but I can't!
I specify one color in a style, but when putting a second color with a tag on the text... it doesn't work well.
The second color is applied on idle, but not when hover, changing all the text except the second color part with its idle color.
Idle color: Please, DON'T choose me
Actual hover color: Please, DON'T choose me
My desired hover color: Please, DON'T choose me
Is it possible that all the text change his color when hover? How?
Here's my code just in case it's useful!
I specify one color in a style, but when putting a second color with a tag on the text... it doesn't work well.
The second color is applied on idle, but not when hover, changing all the text except the second color part with its idle color.
Idle color: Please, DON'T choose me
Actual hover color: Please, DON'T choose me
My desired hover color: Please, DON'T choose me
Is it possible that all the text change his color when hover? How?
Here's my code just in case it's useful!
Code: Select all
textbutton "Please, {color=#ff5a7d}DON'T{/color} choose me" action Return("continue") style "colorfulbutton"
style colorfulbutton is button
style colorfulbutton_text:
size 12
color "#1e6dff"
hover_color "#78008a"