So, it is pretty much known at things that are on line 10 will get covered up by something on line 20. The further down the code, the closer to the player. Now, I'm having a little trouble with implementing a namebox.
Code: Select all
screen say(who, what, side_image=None, two_window=True):
vbox:
style "say_two_window_vbox"
window:
id "window"
has vbox:
style "say_vbox"
text what:
id "what"
if who:
window:
frame:
background "GUI/Textbox/oyoa_namebox.png"
xpos -10
ypos 625
text who:
xpos 15
ypos 45
id "who"Now, the namebox of course is the part that starts with "if who:". What I need is for that namebox to be IN FRONT OF the textbox.
This should work, but what it does instead is not show the namebox at all.
If I was to switch the code like this...
Code: Select all
screen say(who, what, side_image=None, two_window=True):
vbox:
style "say_two_window_vbox"
if who:
window:
frame:
background "GUI/Textbox/oyoa_namebox.png"
xpos -10
ypos 625
text who:
xpos 15
ypos 45
id "who"
window:
id "window"
has vbox:
style "say_vbox"
text what:
id "what" While writing this, I realized I also could take that whole "if who:" out of the vbox. This didn't do anything and acted like in the first case.