Namebox is default long

This commit is contained in:
Nutbuster 2021-07-05 10:12:04 +10:00
parent 0959d0f275
commit 0c4aab6858
3 changed files with 8 additions and 15 deletions

View File

@ -119,11 +119,9 @@ define gui.textbox_yalign = 1.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 = 350
define gui.name_xpos = 395 #350
define gui.name_ypos = -85
define gui.name_large_xpos = 395
## 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.5
@ -452,7 +450,7 @@ init python:
gui.label_text_size = 51
## Namebox
gui.name_xpos = 345
gui.name_xpos = 395
gui.name_ypos = -85
## Adjust the location of the textbox.

View File

@ -101,7 +101,7 @@ screen say(who, what):
id "window"
if who is not None:
background Image("gui/textbox.png", xalign=0.5, yalign=1.0)
background Image("gui/textbox_long.png", xalign=0.5, yalign=1.0)
window:
id "namebox"
style "namebox"
@ -145,9 +145,6 @@ style namebox:
xpos gui.name_xpos
ypos gui.name_ypos
style namebox_large is namebox:
xpos gui.name_large_xpos
style say_label:
properties gui.text_properties("name", accent=True)
xalign gui.name_xalign

View File

@ -87,8 +87,6 @@ transform randPosition:
# "guitar.webp"
#Raw Image & kwargs for long textboxes
define long_textbox_img = Image("gui/textbox_long.png", xalign=0.5, yalign=1.0)
define long_textbox = { "window_background": long_textbox_img, 'namebox_style': "namebox_large" }
#Characters
define A = Character ('Anon',color="#36E12D") #Light Green
@ -114,11 +112,11 @@ define Vince = Character ('Vince',color="#3C770D") #Dark Green
define Waitress = Character ('Waitress',color="#C89B19") #Gold
#long TB chars
define AnonAndFang = Character('Anon and Fang',color="34F313", **long_textbox)
define SV = Character ('Street Vendor',color="#420046", **long_textbox)
define carl = Character ('Mr. Carldewskii',color="#4963A5", **long_textbox)
define Drf = Character ('Dr. Fernsworth',color="#4963A5", **long_textbox)
define FRT = Character ('Fang Reed & Trish',color="#4963A5", **long_textbox)
define AnonAndFang = Character('Anon and Fang',color="34F313")
define SV = Character ('Street Vendor',color="#420046")
define carl = Character ('Mr. Carldewskii',color="#4963A5")
define Drf = Character ('Dr. Fernsworth',color="#4963A5")
define FRT = Character ('Fang Reed & Trish',color="#4963A5")
#Extra image translations