Oh, I see. Sorry I had no idea from which part of your screen you were talking.
Yes in that case you are right. Like frame and vbox, the text is kinda creating it's own box which you then position with the position style properties.
The only thing to add is, that you don't need to use transform to apply position command to your text(-box). You can do that in several ways:
directly:
Code: Select all
screen locbox():
frame:
xalign 1.0
xsize 310
ysize 80
background Frame("gui/locbox.png")
vbox:
xalign 1.0
text "[v_area]":
xalign 1.0
text "[v_room]":
xalign 1.0
or in an extra style definition
Code: Select all
screen locbox():
style_prefix "mystyle1"
frame:
xalign 1.0
xsize 310
ysize 80
background Frame("gui/locbox.png")
vbox:
xalign 1.0
text "[v_area]"
text "[v_room]"
style mystyle1_text is default:
xalign 1.0 # mystyle_text: xalign align
size 8 # mystyle_text: font size
color "#773410ff"
and of course in the way you did it as a transform.
Ah and one more thing, just to add a simple background picture to your frame, you don't need the Frame command. Just background "gui/locbox.png" would be enough. The Frame command is dissecting a picture into 4 corners, 4 borders and the center image and methods like stretching or repeating border graphics and such.
Like here:
https://www.renpy.org/dev-doc/html/disp ... html#Frame
You don't really use that kind of background image. So
Code: Select all
background Frame("gui/locbox.png")
just adds unnecessary complexity and a further chance of causing a problem.
This here is enough for a simple image.
Or if you just want a slightly darker glasslike/transparent background, you would use:
Code: Select all
background Solid("#0003") # Solid for use of a color instead of a picture.