forked from Cavemanon/SnootGame
Fix say window positions and relevant infomation
This commit is contained in:
@ -102,11 +102,13 @@ screen say(who, what):
|
||||
id "window"
|
||||
|
||||
if who is not None:
|
||||
|
||||
background Image("gui/textbox.png", xalign=0.5, yalign=1.0)
|
||||
window:
|
||||
id "namebox"
|
||||
style "namebox"
|
||||
text who id "who"
|
||||
else:
|
||||
background Image("gui/textbox_no_hitch.png", xalign=0.5, yalign=1.0)
|
||||
|
||||
text what id "what"
|
||||
|
||||
@ -135,17 +137,14 @@ style window:
|
||||
xfill True
|
||||
yalign gui.textbox_yalign
|
||||
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:
|
||||
xpos gui.name_xpos
|
||||
xanchor gui.name_xalign
|
||||
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
|
||||
xalign 0.5
|
||||
xpos 350 ypos -85
|
||||
|
||||
style say_label:
|
||||
properties gui.text_properties("name", accent=True)
|
||||
@ -1603,7 +1602,11 @@ screen quick_menu():
|
||||
|
||||
style window:
|
||||
variant "small"
|
||||
background "gui/phone/textbox.png"
|
||||
yoffset -100 # ypos 1000
|
||||
|
||||
style namebox:
|
||||
variant "small"
|
||||
xpos 355
|
||||
|
||||
style radio_button:
|
||||
variant "small"
|
||||
|
Reference in New Issue
Block a user