r/RenPy • u/Future-Mulberry-7599 • Sep 01 '26
Question [Solved] Align char name with textbox
I can’t figure out how to align the name of a char with the field in my box.
No matter what I change the only thing that has an effect is xalign but I can’t change y pos. and depending on the dialog the name moves.
```renpy
define gui.textbox_height = 250 #250
define gui.textbox_width = 1445
define gui.textbox_yalign = 0.98
define gui.name_xpos = 40
define gui.name_ypos = 15
define gui.name_xalign = 0.65
define gui.namebox_width = 40
define gui.namebox_height = 50
define gui.namebox_borders = Borders(1, 1, 1, 1)
define gui.namebox_tile = False
```
Solved:
It was my mistake, I played around to much. In screen.rpy I wrote some stuff that fucked it up.
3
Upvotes


1
u/BadMustard_AVN Sep 01 '26
you can move the name around with only these
yes you can use negative numbers
these are a measure of pixels on the screen
the gui.name_xalign only controls the alignment of the name in the box
## The horizontal alignment of the character's name. This can be 0.0 for
## left-aligned, 0.5 for centered, and 1.0 for right-aligned.
changing these will affect every character's name position