Move Namebox magic numbers and edit the script

Edited the fourth day script: "Fang Reed and Trish"
-> into an actual Character object "Fang Reed & Trish"
This commit is contained in:
Nutbuster 2021-07-03 08:53:10 +10:00
parent 4c16ad6465
commit b687054963
4 changed files with 20 additions and 14 deletions

View File

@ -119,8 +119,10 @@ 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 = 395
define gui.name_ypos = -90
define gui.name_xpos = 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.
@ -449,10 +451,13 @@ init python:
gui.button_text_size = 45
gui.label_text_size = 51
## Namebox
gui.name_xpos = 340
gui.name_ypos = -85
## Adjust the location of the textbox.
# gui.textbox_height = int(gui.textbox_height * 1.263157) # ~360
# gui.window_yoffset = 240;
gui.text_width = 1650 # not needed
## Change the size and spacing of various things.
gui.slider_size = 54

View File

@ -140,11 +140,13 @@ style window:
xoffset 0
xcenter 0.5
#for now large names adds +185 xpos to the window, it could be better but for
#now this is fine
style namebox:
xalign 0.5
xpos 350 ypos -85
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)
@ -1604,10 +1606,6 @@ style window:
variant "small"
yoffset -100 # ypos 1000
style namebox:
variant "small"
xpos 355
style radio_button:
variant "small"
foreground "gui/phone/button/radio_[prefix_]foreground.png"

View File

@ -82,7 +82,7 @@ transform randPosition:
#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, 'who_xpos': 195 }
define long_textbox = { "window_background": long_textbox_img, 'namebox_style': "namebox_large" }
#Characters
define A = Character ('Anon',color="#36E12D") #Light Green
@ -112,6 +112,9 @@ 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)
#Extra image translations
#siloettes
image stellaSilo = im.Flip(im.MatrixColor("stella/stella neutral.png",im.matrix.brightness(-1)), horizontal=True)

View File

@ -1377,7 +1377,7 @@ label chapter_2:
A "Well…"
"Fang Reed and Trish" "Ohfuck. Sorry Anon, we gotta bail."
FRT "Ohfuck. Sorry Anon, we gotta bail."
show fang neutral flip
show trish neutral flip
hide trish with moveoutright
@ -1513,4 +1513,4 @@ label chapter_2:
scene black with fade
return
return