The code for that in options:
Code: Select all
style.window.background = Frame("images/textbox.png", 12, 12)
## Margin is space surrounding the window, where the background
## is not drawn.
style.window.left_margin = 350
style.window.right_margin = 350
style.window.top_margin = 400
style.window.bottom_margin = 400
## Padding is space inside the window, where the background is
## drawn.
style.window.left_padding = 30
style.window.right_padding = 30
style.window.top_padding = 20
style.window.bottom_padding = 30
## This is the minimum height of the window, including the margins
## and padding.
style.window.yminimum = 300
Code: Select all
define pr = Character('ping_latency*', color ="#3A9FE5", size = 15, window_background=Frame("images/textboxr.png", 30, 20, 20, 20))
And here's the code.
Code: Select all
style window:
xalign 0.5
yalign .2
xfill True
background Frame("images/textbox.png", 12, 12)
xmargin 350
top_margin 400
bottom_margin 499
xpadding 30
top_padding 20
bottom_padding 30
Code: Select all
## The height of the textbox containing dialogue.
define gui.textbox_height = 500
define gui.textbox_width = 100
## The placement of the textbox vertically on the screen. 0.0 is the top, 0.5 is
## center, and 1.0 is the bottom.
define gui.textbox_yalign = 0.0
## 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 = 0
define gui.name_ypos = 0
## 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.
define gui.name_xalign = 0.0
## The width, height, and borders of the box containing the character's name, or
## None to automatically size it.
define gui.namebox_width = None
define gui.namebox_height = None
## The borders of the box containing the character's name, in left, top, right,
## bottom order.
define gui.namebox_borders = Borders(5, 5, 5, 5)
## If True, the background of the namebox will be tiled, if False, the
## background if the namebox will be scaled.
define gui.namebox_tile = False
## The placement of dialogue relative to the textbox. These can be a whole
## number of pixels relative to the left or top side of the textbox, or 0.5 to
## center.
define gui.dialogue_xpos = 5
define gui.dialogue_ypos = 30
## The maximum width of dialogue text, in pixels.
define gui.dialogue_width = 755
## The horizontal alignment of the dialogue text. This can be 0.0 for left-
## aligned, 0.5 for centered, and 1.0 for right-aligned.
define gui.dialogue_text_xalign = 0.0
Once the issue of the textbox expanding for the dialogue is fixed, I'm wondering if there's a way to make it expand downward instead of upward, because then it'd expand right off the screen...