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. ## 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 = 395 define gui.name_xpos = 350
define gui.name_ypos = -90 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.
@ -449,10 +451,13 @@ init python:
gui.button_text_size = 45 gui.button_text_size = 45
gui.label_text_size = 51 gui.label_text_size = 51
## Namebox
gui.name_xpos = 340
gui.name_ypos = -85
## Adjust the location of the textbox. ## 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 gui.text_width = 1650 # not needed
## Change the size and spacing of various things. ## Change the size and spacing of various things.
gui.slider_size = 54 gui.slider_size = 54

View file

@ -140,11 +140,13 @@ style window:
xoffset 0 xoffset 0
xcenter 0.5 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: style namebox:
xalign 0.5 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: style say_label:
properties gui.text_properties("name", accent=True) properties gui.text_properties("name", accent=True)
@ -1604,10 +1606,6 @@ style window:
variant "small" variant "small"
yoffset -100 # ypos 1000 yoffset -100 # ypos 1000
style namebox:
variant "small"
xpos 355
style radio_button: style radio_button:
variant "small" variant "small"
foreground "gui/phone/button/radio_[prefix_]foreground.png" foreground "gui/phone/button/radio_[prefix_]foreground.png"

View file

@ -82,7 +82,7 @@ transform randPosition:
#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_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 #Characters
define A = Character ('Anon',color="#36E12D") #Light Green 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 SV = Character ('Street Vendor',color="#420046", **long_textbox)
define carl = Character ('Mr. Carldewskii',color="#4963A5", **long_textbox) define carl = Character ('Mr. Carldewskii',color="#4963A5", **long_textbox)
define Drf = Character ('Dr. Fernsworth',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 #Extra image translations
#siloettes #siloettes
image stellaSilo = im.Flip(im.MatrixColor("stella/stella neutral.png",im.matrix.brightness(-1)), horizontal=True) 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…" A "Well…"
"Fang Reed and Trish" "Ohfuck. Sorry Anon, we gotta bail." FRT "Ohfuck. Sorry Anon, we gotta bail."
show fang neutral flip show fang neutral flip
show trish neutral flip show trish neutral flip
hide trish with moveoutright hide trish with moveoutright