I have managed to make the two text boxes vertical (they are horizontal by default), but when they are vertical they don't stay a consistent size. If the top textbox has fewer lines, the bottom textbox jumps as well. (There is a set "spacing" between the top and bottom, but I would instead like to fix the top and bottom in place.) I have been playing around with the window style and haven't figured out how to fix this yet. :/
In the screens.rpy file, I changed hbox to vbox to get the desired effect:
Code: Select all
##############################################################################
# Multi
#
# Screen used for multi-mode dialogue.
screen multi:
window:
style "multi_window"
has vbox:
style "multi_vbox"
# Display dialogue.
for who, what, who_id, what_id, window_id in dialogue:
window:
id window_id
has vbox:
spacing 10
if who is not None:
text who id who_id
text what id what_id
Code: Select all
##############################################################################
# The implementation of Multi mode lives below this line.
init -1500 python:
# Styles that are used by multi mode.
style.create('multi_window', 'say_window', 'the window containing multi-mode dialogue')
style.create('multi_vbox', 'vbox', 'the vbox containing each box of multi-mode dialogue')
style.create('multi_label', 'say_label', 'an multi-mode character\'s name')
style.create('multi_dialogue_dual', 'say_dialogue', 'dual-mode character dialogue')
style.create('multi_entry', 'default', 'a window containing each line of multi-mode dialogue')
style.multi_window.yminimum = 400
style.multi_window.xminimum = int(config.screen_width / 2) - 5
style.multi_window.background = "gui/textbox.png"
style.multi_vbox.box_spacing = 50
# Set up dual mode styles.
style.multi_dialogue_dual.minwidth = int(config.screen_width / 2) - 5
style.multi_dialogue_dual.xmaximum = int(config.screen_width / 2) - 5
Does anyone have any advice for how I would accomplish this?




