mirror of
https://git.cavemanon.xyz/Cavemanon/SnootGame.git
synced 2025-02-24 18:48:55 +01:00
Fix say window positions and relevant infomation
This commit is contained in:
parent
5c18593a75
commit
4c16ad6465
3 changed files with 45 additions and 38 deletions
|
@ -443,14 +443,15 @@ init python:
|
||||||
|
|
||||||
## Font sizes.
|
## Font sizes.
|
||||||
gui.text_size = 45
|
gui.text_size = 45
|
||||||
gui.name_text_size = 54
|
gui.name_text_size = 50
|
||||||
gui.notify_text_size = 38
|
gui.notify_text_size = 38
|
||||||
gui.interface_text_size = 45
|
gui.interface_text_size = 45
|
||||||
gui.button_text_size = 45
|
gui.button_text_size = 45
|
||||||
gui.label_text_size = 51
|
gui.label_text_size = 51
|
||||||
|
|
||||||
## Adjust the location of the textbox.
|
## Adjust the location of the textbox.
|
||||||
gui.textbox_height = int(gui.textbox_height * 1.263157) # ~360
|
# 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
|
||||||
|
|
|
@ -102,11 +102,13 @@ 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)
|
||||||
window:
|
window:
|
||||||
id "namebox"
|
id "namebox"
|
||||||
style "namebox"
|
style "namebox"
|
||||||
text who id "who"
|
text who id "who"
|
||||||
|
else:
|
||||||
|
background Image("gui/textbox_no_hitch.png", xalign=0.5, yalign=1.0)
|
||||||
|
|
||||||
text what id "what"
|
text what id "what"
|
||||||
|
|
||||||
|
@ -135,17 +137,14 @@ style window:
|
||||||
xfill True
|
xfill True
|
||||||
yalign gui.textbox_yalign
|
yalign gui.textbox_yalign
|
||||||
ysize gui.textbox_height
|
ysize gui.textbox_height
|
||||||
|
xoffset 0
|
||||||
|
xcenter 0.5
|
||||||
|
|
||||||
background Image("gui/textbox_no_hitch.png", xalign=0.5, yalign=1.0)
|
#for now large names adds +185 xpos to the window, it could be better but for
|
||||||
|
#now this is fine
|
||||||
style namebox:
|
style namebox:
|
||||||
xpos gui.name_xpos
|
xalign 0.5
|
||||||
xanchor gui.name_xalign
|
xpos 350 ypos -85
|
||||||
xalign gui.name_xalign
|
|
||||||
ypos gui.name_ypos
|
|
||||||
|
|
||||||
#background Frame("gui/namebox.png", gui.namebox_borders, tile=gui.namebox_tile, xalign=gui.name_xalign)
|
|
||||||
padding gui.namebox_borders.padding
|
|
||||||
|
|
||||||
style say_label:
|
style say_label:
|
||||||
properties gui.text_properties("name", accent=True)
|
properties gui.text_properties("name", accent=True)
|
||||||
|
@ -1603,7 +1602,11 @@ screen quick_menu():
|
||||||
|
|
||||||
style window:
|
style window:
|
||||||
variant "small"
|
variant "small"
|
||||||
background "gui/phone/textbox.png"
|
yoffset -100 # ypos 1000
|
||||||
|
|
||||||
|
style namebox:
|
||||||
|
variant "small"
|
||||||
|
xpos 355
|
||||||
|
|
||||||
style radio_button:
|
style radio_button:
|
||||||
variant "small"
|
variant "small"
|
||||||
|
|
|
@ -80,35 +80,38 @@ transform randPosition:
|
||||||
# attribute guitar:
|
# attribute guitar:
|
||||||
# "guitar.webp"
|
# "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, 'who_xpos': 195 }
|
||||||
|
|
||||||
#Characters
|
#Characters
|
||||||
define A = Character ('Anon',color="#36E12D",window_background="gui/textbox.png",window_xoffset=120,window_yoffset=-79,what_xpos=245,what_ypos=125,who_xpos=-120,who_ypos=110) #Light Green
|
define A = Character ('Anon',color="#36E12D") #Light Green
|
||||||
define F = Character ('Fang',color="#7E2DE1",window_background="gui/textbox.png",window_xoffset=120,window_yoffset=-79,what_xpos=245,what_ypos=125,who_xpos=-125,who_ypos=111) #Purple
|
define F = Character ('Fang',color="#7E2DE1") #Purple
|
||||||
define Lucy = Character ('Lucy',color="#7E2DE1",window_background="gui/textbox.png",window_xoffset=120,window_yoffset=-79,what_xpos=245,what_ypos=125,who_xpos=-125,who_ypos=111) #Purple
|
define Lucy = Character ('Lucy',color="#7E2DE1") #Purple
|
||||||
define Ro = Character ('Rosa',color="#E12D36",window_background="gui/textbox.png",window_xoffset=120,window_yoffset=-79,what_xpos=245,what_ypos=125,who_xpos=-125,who_ypos=111) #Red
|
define Ro = Character ('Rosa',color="#E12D36") #Red
|
||||||
define St = Character ('Stella',color="#E17E2D",window_background="gui/textbox.png",window_xoffset=120,window_yoffset=-79,what_xpos=245,what_ypos=125,who_xpos=-125,who_ypos=111) #orang
|
define St = Character ('Stella',color="#E17E2D") #orang
|
||||||
define N = Character ('Naomi',color="#2D36E1",window_background="gui/textbox.png",window_xoffset=120,window_yoffset=-79,what_xpos=245,what_ypos=125,who_xpos=-125,who_ypos=111) #Blue
|
define N = Character ('Naomi',color="#2D36E1") #Blue
|
||||||
define Nas = Character ('Naser',color="#501D5E",window_background="gui/textbox.png",window_xoffset=120,window_yoffset=-79,what_xpos=245,what_ypos=125,who_xpos=-125,who_ypos=111) #Dark Purple
|
define Nas = Character ('Naser',color="#501D5E") #Dark Purple
|
||||||
define T = Character ('Trish',color="#8A0036",window_background="gui/textbox.png",window_xoffset=120,window_yoffset=-79,what_xpos=245,what_ypos=125,who_xpos=-125,who_ypos=111) #Maroon
|
define T = Character ('Trish',color="#8A0036") #Maroon
|
||||||
define Attendant = Character ('Attendant',color="#8A0036",window_background="gui/textbox.png",window_xoffset=120,window_yoffset=-79,what_xpos=245,what_ypos=125,who_xpos=-155,who_ypos=111) #Maroon
|
define Attendant = Character ('Attendant',color="#8A0036") #Maroon
|
||||||
define Sp = Character ('Spears',color="#7B8A00",window_background="gui/textbox.png",window_xoffset=120,window_yoffset=-79,what_xpos=245,what_ypos=125,who_xpos=-125,who_ypos=111) #Dark Yellow
|
define Sp = Character ('Spears',color="#7B8A00") #Dark Yellow
|
||||||
define Re = Character ('Reed',color="#368A00",window_background="gui/textbox.png",window_xoffset=120,window_yoffset=-79,what_xpos=245,what_ypos=125,who_xpos=-125,who_ypos=111) #Dark Green
|
define Re = Character ('Reed',color="#368A00") #Dark Green
|
||||||
define D = Character ('Driver',color="#098A00",window_background="gui/textbox.png",window_xoffset=120,window_yoffset=-79,what_xpos=245,what_ypos=125,who_xpos=-125,who_ypos=111)
|
define D = Character ('Driver',color="#098A00")
|
||||||
define FM = Character ('Fangs Mom',color="#EA1A84",window_background="gui/textbox.png",window_xoffset=120,window_yoffset=-79,what_xpos=245,what_ypos=125,who_xpos=-170,who_ypos=108)
|
define FM = Character ('Fangs Mom',color="#EA1A84")
|
||||||
define FD = Character ('Fangs Dad',color="#1A1CEA",window_background="gui/textbox.png",window_xoffset=120,window_yoffset=-79,what_xpos=245,what_ypos=125,who_xpos=-170,who_ypos=108)
|
define FD = Character ('Fangs Dad',color="#1A1CEA")
|
||||||
define Tsuki = Character ('Mr. Tsuki',color="#CEAF23",window_background="gui/textbox.png",window_xoffset=120,window_yoffset=-79,what_xpos=245,what_ypos=125,who_xpos=-150,who_ypos=111)
|
define Tsuki = Character ('Mr. Tsuki',color="#CEAF23")
|
||||||
define unknown = Character (' (???)',color="#000000",window_background="gui/textbox.png",window_xoffset=120,window_yoffset=-79,what_xpos=245,what_ypos=125,who_xpos=-170,who_ypos=110)
|
define unknown = Character ('(???)',color="#000000")
|
||||||
define jingo = Character ('Mr. Jingo',color="#42C053",window_background="gui/textbox.png",window_xoffset=120,window_yoffset=-79,what_xpos=245,what_ypos=125,who_xpos=-170,who_ypos=110)
|
define jingo = Character ('Mr. Jingo',color="#42C053")
|
||||||
define MaitD = Character ('Maitre D',color="#42C053",window_background="gui/textbox.png",window_xoffset=120,window_yoffset=-79,what_xpos=245,what_ypos=125,who_xpos=-170,who_ypos=110)
|
define MaitD = Character ('Maitre D',color="#42C053")
|
||||||
define Moe = Character(' Moe',color="#42C053",window_background="gui/textbox.png",window_xoffset=120,window_yoffset=-79,what_xpos=245,what_ypos=125,who_xpos=-170,who_ypos=110)
|
define Moe = Character('Moe',color="#42C053")
|
||||||
define Vince = Character ('Vince',color="#3C770D",window_background="gui/textbox.png",window_xoffset=120,window_yoffset=-79,what_xpos=245,what_ypos=125,who_xpos=-125,who_ypos=111) #Dark Green
|
define Vince = Character ('Vince',color="#3C770D") #Dark Green
|
||||||
define Waitress = Character ('Waitress',color="#C89B19",window_background="gui/textbox.png",window_xoffset=120,window_yoffset=-79,what_xpos=245,what_ypos=125,who_xpos=-140,who_ypos=111) #Gold
|
define Waitress = Character ('Waitress',color="#C89B19") #Gold
|
||||||
#long TB chars
|
#long TB chars
|
||||||
define AnonAndFang = Character(' Anon and Fang',color="34F313",window_background="gui/textbox_long.png",window_xoffset=120,window_yoffset=-79,what_xpos=245,what_ypos=125,who_xpos=-170,who_ypos=110)
|
|
||||||
define SV = Character ('Street Vendor',color="#420046",window_background="gui/textbox_long.png",window_xoffset=120,window_yoffset=-79,what_xpos=245,what_ypos=125,who_xpos=-145,who_ypos=110)
|
|
||||||
define carl = Character ('Mr. Carldewskii',color="#4963A5",window_background="gui/textbox_long.png",window_xoffset=120,window_yoffset=-79,what_xpos=245,what_ypos=125,who_xpos=-170,who_ypos=110)
|
|
||||||
define Drf = Character (' Dr. Fernsworth',color="#4963A5",window_background="gui/textbox_long.png",window_xoffset=120,window_yoffset=-79,what_xpos=245,what_ypos=125,who_xpos=-170,who_ypos=110)
|
|
||||||
|
|
||||||
|
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)
|
||||||
#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)
|
||||||
|
|
Loading…
Reference in a new issue