- Oct 25, 2018
- 361
- 564
Hello. As always, thank you in advance for reading. I am having issues with customizing the dialogue box. I have lowered the box and resized it where I want, but when I add a background, it displays as too big and too high on the screen. I have outlined generally where the dialogue appears in red on this image. You can clearly see the grey gradient image that should be behind the drawn-on red frame (the red frame is NOT part of the game, it is my estimate of where the dialogue box is, next to the name box).
I have spent many days researcing say box options but to no avail. Not sure what code to post, so to start, here is my say box:
Anything I modify affects the dialogue box but has no effect whatsoever on the BG image. Any help would be greatly appreciated, and I shall send infinate prayers to generations of your unborn progeny.
I have spent many days researcing say box options but to no avail. Not sure what code to post, so to start, here is my say box:
Code:
screen say(who, what):
style_prefix "say"
window:
id "window"
background Image(im.MatrixColor("gui/textbox1.png", im.matrix.opacity(textbox_opacity)))
if who is not None:
window:
style "namebox"
text who id "who"
text what id "what"
add SideImage()
style window is default
style say_label is default
style say_dialogue is default
style say_thought is say_dialogue
style namebox is default
style namebox_label is say_label
style window:
xalign gui.textbox_xalign
yalign gui.textbox_yalign
ysize gui.textbox_height
xfill True
left_padding 150
top_padding 20
style namebox:
xpos gui.name_xpos
xanchor gui.name_xalign
xsize gui.namebox_width
ypos gui.name_ypos
ysize gui.namebox_height
background Frame("gui/namebox.png", gui.namebox_borders, tile=gui.namebox_tile, xalign=gui.name_xalign)
padding gui.namebox_borders.padding