make a background for the frame as an image, but set the apropriate size for the frame to stretch it for the size of that image
This is also a very good idea, is this how one would do it?
Code: Select all
screen choice:
vbox:
textbutton "ttxxt" action NullAction() background Frame("choice_background.png", 720, 275)
This doesn't seem to work; while I can see the textbutton, the frame has disappeared! (PS my image background is 720 X 275 pixels and my game resolution is 720 X 1280 pixels)
Yes, that depnds of where you apply yalign: you can set the position for the frame itself, or set the position for vbox contained all the buttons inside this frame. So this yalign 0.5 is not the positioning the button itself in the middle of the screen.
Ah, so if I understand correctly, the yalign 0.5 if put
inside the vbox will put the vbox in the middle of the frame and not in the middle of the screen?
Code: Select all
screen choice:
frame background "choice_background.png":
vbox:
yalign 0.5
textbutton "ttxxt" action NullAction()
If so, this is exactly what I want, but it is not working! The textbutton still appears on the top left of the frame...
Thanks for your time, it's really appreciated. I feel like I learned something new today, and a bit more knowledge will have this problem sorted