- May 29, 2022
- 231
- 445
So I'm currently editing the Navigation screen and adding some cute icons to the textbuttons using image tags. But I want to change the text of a textbutton ONLY when it's hovered, and goes back to normal when it's no longer hovered.
Here's one of the buttons:
Thing is, the icon in the image tag is white, and when the text button is hovered it turns pink. I already have a hovered version of the icon that also turns into the same colour as the text when hovered. I'm sorry if it seems confusing.
But, how can I make it so when the text button is hovered, the text changes?
Here's one of the buttons:
Python:
if main_menu:
textbutton _("Start {image=gui/navi_icons/start.png}") action Start():
hover_sound "audio/sound/mousehover.mp3"
activate_sound "audio/sound/open.mp3"
But, how can I make it so when the text button is hovered, the text changes?