In NVL mode, how to make the newly appeared text to the left of the previous text instead of the bottom?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
yhsxsx
Newbie
Posts: 2
Joined: Fri Feb 18, 2022 10:43 pm
Contact:

In NVL mode, how to make the newly appeared text to the left of the previous text instead of the bottom?

#1 Post by yhsxsx »

I use vertical to make the text vertical, but I want the next text to be arranged in the way shown in Figure 1, not now (Figure 2).
Image (Figure 1)
Image (Figure 2)

Code: Select all

screen nvl(dialogue, items=None):
   
    window:
        style "nvl_window"
        if nvl_bg ==1:
            background None
        else:
            background  Frame("gui/01_light.png")
        has vbox:
            style "nvl_vbox"

        
        for d in dialogue:
            window:
                id d.window_id

                has hbox:
                    spacing 30

                if d.who is not None:
                    text d.who id d.who_id

                text d.what:
                 id d.what_id
                 adjust_spacing True
                 line_spacing 5
                 outlines [(out,"#FFFFFF",0,0)]
        
        if items:

            vbox:
                id "menu"

                for i in items:

                    if action:

                        button:
                            style "nvl_menu_choice_button"
                            action i.action

                            text i.caption style "nvl_menu_choice"

                    else:

                        text i.caption style "nvl_dialogue"

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Milkymalk