Anyway to prevent the textbutton from moving when outlines are added through dynamic style change? There's probably a text_style that does it, I just don't know what it is.
Code: Select all
default styleHover = "default05"
screen test50():
textbutton "hello":
text_style styleHover
action NullAction()
# when mouse is over this imagebutton, it will cause the style of the above textbutton to change
# when mouse unhovers it changes style of the above textbutton back to default
imagebutton:
xpos 500
ypos 500
idle "a1_idle.png"
hover "a1_hover.png"
hovered SetVariable("styleHover", "styleOutlinedText")
unhovered SetVariable("styleHover", "default05")
action Jump("offCliff")
style styleOutlinedText:
size 50
outlines [ (3, "#000", 0, 0) ]
style default05:
size 50