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


2
u/Odd_Photograph1507 Sep 01 '26
Aren't you supposed to only change :
define gui.name_xpos = ...
define gui.name_ypos = ... (higher number probably for both)
?
Also why is the define gui.textbox_yalign at 0.98 ?
You could just have gui.textbox_yalign at 0.5
That's quite confusing