Is it possible to set yalign of a button as "yalign of frame + 1"?
Posted: Sat Oct 13, 2018 2:35 am
I'm having trouble getting a textbutton to appear inside a frame. Right now, it always appears at the top left of wherever the frame is shown, and no amount of padding/margins is helping me budge it's position (maybe I'm just doing it wrong?...). Since the frame appears in a viewport, finding it's yalignment all the time is a major pain, so something along the lines of "yalign 'yalign_frame + 1' would be a big help...
My code looks like this:
style choicez has more padding, margins, etc
The background looks like a rectangle with it's sides bent outwards...
Thanks!
My code looks like this:
Code: Select all
screen choice:
frame background "gui/button/choice_background.png":
top_margin 150
hbox:
textbutton "%s"%(choice1) style "choicez" action NullAction()
The background looks like a rectangle with it's sides bent outwards...
Thanks!