As stated in the subject line, I would like to know how to set or change the multiple_say_window to show up with SideImage.
So, I'm making one last desperate attempt to find a solution. I already got a tip in the Discord, but somehow it doesn't work out.
In detail, I have very small avatar images as side images directly next to the "namebox". These could also be used without problems in a multiple_say_window
I had already found an old thread whose conclusion was ... probably not possible...(more or less)
viewtopic.php?t=59155
My current "say_screen":
Code: Select all
screen say(who, what):
style_prefix "say"
window:
id "window"
if who is not None:
window:
id "namebox"
style "namebox"
text who id "who"
# Add a Sideimage to the Namebox
add SideImage():
xalign 0.0 yalign 0.5
xoffset -230
text what id "what"
## If there's a side image, display it above the text. Do not display on the
## phone variant - there's no room.
# if not renpy.variant("small"): # I have commented this out as there will be no phone variant
# add SideImage() xalign 0.0 yalign 1.0
## Make the namebox available for styling through the Character object.
init python:
config.character_id_prefixes.append('namebox')
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 0.5
xfill True
yalign gui.textbox_yalign
ysize gui.textbox_height
#background Image("gui/textbox.png", xalign=0.5, yalign=1.0)
style namebox:
xpos 500 #gui.name_xpos
xanchor gui.name_xalign
xsize gui.namebox_width
ypos -200 #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
style say_label:
properties gui.text_properties("name", accent=True)
xalign gui.name_xalign
yalign 0.5
style say_dialogue:
properties gui.text_properties("dialogue")
xpos 600 #gui.dialogue_xpos (884)
xsize 2792 #gui.dialogue_width (2232)
ypos gui.dialogue_ypos
adjust_spacing False
#########################
## Multiple Say Windows #
#########################
style block2_multiple4_say_window:
xpos 2600
xfill True
yalign gui.textbox_yalign
ysize gui.textbox_height
style block3_multiple4_say_window:
xpos 3250
xfill True
yalign gui.textbox_yalign
ysize gui.textbox_height
style block4_multiple4_say_window:
xpos 3900
xfill True
yalign gui.textbox_yalign
ysize gui.textbox_height
...but not with the multiple.
The tip I got in the Discord was the following:
At first the side image has the same name as the character, so the image would be `'side amanda.png'` if the character was `define amd = Character("Amanda", image = "amanda")`
and the setup for the say_screen as a <multiple_say(who, what, multiple)> like this:
Code: Select all
screen multiple_say(who, what, multiple):
style_prefix "say"
window:
id "window"
if who is not None:
window:
id "namebox"
style "namebox"
text who id "who"
# Add a side-image to the namebox
add "side " + who.lower():
xalign 0.0 yalign 0.5
xoffset +230
text what id "what"
If anyone else has a tip that I could use, it would finally let me sleep peacefully again ...
Thanks in advance for the effort!