Fix say window positions and relevant infomation

This commit is contained in:
2021-07-02 15:38:08 +10:00
parent 5c18593a75
commit 4c16ad6465
3 changed files with 45 additions and 38 deletions

View File

@ -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"