forked from Cavemanon/SnootGame
Namebox is default long
This commit is contained in:
@ -119,11 +119,9 @@ define gui.textbox_yalign = 1.0
|
|||||||
|
|
||||||
## The placement of the speaking character's name, relative to the textbox.
|
## 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.
|
## 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_ypos = -85
|
||||||
|
|
||||||
define gui.name_large_xpos = 395
|
|
||||||
|
|
||||||
## The horizontal alignment of the character's name. This can be 0.0 for left-
|
## 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.
|
## aligned, 0.5 for centered, and 1.0 for right-aligned.
|
||||||
define gui.name_xalign = 0.5
|
define gui.name_xalign = 0.5
|
||||||
@ -452,7 +450,7 @@ init python:
|
|||||||
gui.label_text_size = 51
|
gui.label_text_size = 51
|
||||||
|
|
||||||
## Namebox
|
## Namebox
|
||||||
gui.name_xpos = 345
|
gui.name_xpos = 395
|
||||||
gui.name_ypos = -85
|
gui.name_ypos = -85
|
||||||
|
|
||||||
## Adjust the location of the textbox.
|
## Adjust the location of the textbox.
|
||||||
|
@ -101,7 +101,7 @@ screen say(who, what):
|
|||||||
id "window"
|
id "window"
|
||||||
|
|
||||||
if who is not None:
|
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:
|
window:
|
||||||
id "namebox"
|
id "namebox"
|
||||||
style "namebox"
|
style "namebox"
|
||||||
@ -145,9 +145,6 @@ style namebox:
|
|||||||
xpos gui.name_xpos
|
xpos gui.name_xpos
|
||||||
ypos gui.name_ypos
|
ypos gui.name_ypos
|
||||||
|
|
||||||
style namebox_large is namebox:
|
|
||||||
xpos gui.name_large_xpos
|
|
||||||
|
|
||||||
style say_label:
|
style say_label:
|
||||||
properties gui.text_properties("name", accent=True)
|
properties gui.text_properties("name", accent=True)
|
||||||
xalign gui.name_xalign
|
xalign gui.name_xalign
|
||||||
|
@ -87,8 +87,6 @@ transform randPosition:
|
|||||||
# "guitar.webp"
|
# "guitar.webp"
|
||||||
|
|
||||||
#Raw Image & kwargs for long textboxes
|
#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
|
#Characters
|
||||||
define A = Character ('Anon',color="#36E12D") #Light Green
|
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
|
define Waitress = Character ('Waitress',color="#C89B19") #Gold
|
||||||
#long TB chars
|
#long TB chars
|
||||||
|
|
||||||
define AnonAndFang = Character('Anon and Fang',color="34F313", **long_textbox)
|
define AnonAndFang = Character('Anon and Fang',color="34F313")
|
||||||
define SV = Character ('Street Vendor',color="#420046", **long_textbox)
|
define SV = Character ('Street Vendor',color="#420046")
|
||||||
define carl = Character ('Mr. Carldewskii',color="#4963A5", **long_textbox)
|
define carl = Character ('Mr. Carldewskii',color="#4963A5")
|
||||||
define Drf = Character ('Dr. Fernsworth',color="#4963A5", **long_textbox)
|
define Drf = Character ('Dr. Fernsworth',color="#4963A5")
|
||||||
define FRT = Character ('Fang Reed & Trish',color="#4963A5", **long_textbox)
|
define FRT = Character ('Fang Reed & Trish',color="#4963A5")
|
||||||
|
|
||||||
|
|
||||||
#Extra image translations
|
#Extra image translations
|
||||||
|
Reference in New Issue
Block a user