I am using imagebuttons for my screen and I have button_hover.png larger than button_idle.png and button_selected.png, as I would like the button to grow in size when hovered.
However when I put multiple such buttons in a hbox with spacing, the entire line of buttons are affected by the hovered, enlarged one.
Code: Select all
screen navigation():
hbox:
xalign 0.9 yalign 0.98
spacing 30
imagebutton auto "gui/screen/nav/back_%s.png" action Return()
imagebutton auto "gui/screen/nav/save_%s.png" action ShowMenu("save")
imagebutton auto "gui/screen/nav/load_%s.png" action ShowMenu("load")
imagebutton auto "gui/screen/nav/options_%s.png" action ShowMenu("preferences")
imagebutton auto "gui/screen/nav/extra_%s.png" action ShowMenu("extra_screen")
One possible solution I could think of is to use fixed instead of hbox, but I'd like to know if you have better ideas!
I searched around but had not discovered similar posts so please pardon me if this has been asked before.
Any insight is greatly appreciated!