Ren'Py How to expand textbox borders? [Solved]

athreusclouds

Member
Oct 8, 2023
264
3,327
About Ren'py.

Hi everyone. Can someone explain how i can expand the boundaries of the textbox so that large text sentences
extends across the entire width of my backgrounds and not become piled up in its center?

Problem PNG.png

An additional example of the result that i need.
Sophia_Nurse_Ad_4.png
 
Last edited:

Meushi

Well-Known Member
Aug 4, 2017
1,146
12,751
Can someone explain how i can expand the boundaries of the textbox
Customize the gui.textbox, gui.namebox, gui.dialogue variables which are usually defined in gui.rpy.

.

Tweaking these elements would be a place to start:
PHP:
# Customize dialogue textbox styling

## The height of the textbox containing dialogue.
define gui.textbox_height = 250

## The placement of the speaking character's name, relative to the textbox.
## These can be a whole number of pixels from the left or top, or 0.5 to center.
define gui.name_xpos = 40

## The placement of dialogue relative to the textbox.
## This is a whole number of pixels relative to the left or top side of the textbox,
## or 0.5 to center.
define gui.dialogue_xpos = 50
define gui.dialogue_ypos = 80

## The maximum width of dialogue text, in pixels.
define gui.dialogue_width = 1800
 
Last edited:

athreusclouds

Member
Oct 8, 2023
264
3,327
Customize the gui.textbox, gui.namebox, gui.dialogue variables which are usually defined in gui.rpy.

.

Tweaking these elements would be a place to start:
PHP:
# Customize dialogue textbox styling

## The height of the textbox containing dialogue.
define gui.textbox_height = 250

## The placement of the speaking character's name, relative to the textbox.
## These can be a whole number of pixels from the left or top, or 0.5 to center.
define gui.name_xpos = 40

## The placement of dialogue relative to the textbox.
## This is a whole number of pixels relative to the left or top side of the textbox,
## or 0.5 to center.
define gui.dialogue_xpos = 50
define gui.dialogue_ypos = 80

## The maximum width of dialogue text, in pixels.
define gui.dialogue_width = 1800
It's just incredible! This is exactly what i needed! Thank you very much. You are the savior)

Thank you).png
hug.gif
 
  • Like
Reactions: Meushi