I tried changing the size of the nametag.png file, which was originally the same resolution size as my game (1920 x 1080), but it showed up really small. I cropped it so it's just the namebox, and then it showed up looking like this:
https://imgur.com/Qx6u99K
The namebox is the exact same size as the name, but I want it to be bigger like this:
https://imgur.com/WL7RgOE
This is what my code looks like now:
Code: Select all
## 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 = 480
define gui.name_ypos = -0.3
## 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(8, 8, 8, 8)
## If True, the background of the namebox will be tiled, if False, the
## background of 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 = 480
define gui.dialogue_ypos = 44
I also tried changing the code to:
Code: Select all
## The width, height, and borders of the box containing the character's name, or
## None to automatically size it.
define gui.namebox_width = 100
define gui.namebox_height = 50
https://imgur.com/z0MJRyt