Page 1 of 1

So I want to change my NVL mode like this.

Posted: Fri Mar 09, 2018 1:08 am
by renpycoder
Hello everyone. I am new here in renpy so I would like to know how to go about the things I want to do with my game. In ONScripter, there's a feature I like there that is somehow hard to execute here in Renpy, which is the width of the NVL mode.

Let me site an example.

Image

I want my nvl mode to show like that, without a background, and the width should be from left to right, instead of the text indented on the center. The reason I want this is because I like my game to look like that as well. If possible, the cursor would also appear right on the part where the text continues.

Thanks for all your help in advance!

Re: So I want to change my NVL mode like this.

Posted: Fri Mar 09, 2018 1:23 am
by Ocelot
without a background
Remove background "gui/nvl.png" from style nvl_window in screens.rpy Or replace gui/nvl.png image in game folder with completely transparent one.
width should be from left to right, instead of the text indented on the center
It should be already left-justified.
You can play with configuration variables in gui.rpy, mainly:
define gui.nvl_text_xpos = 450 — how far from the left text starts. You probably want to reduce that value.
define gui.nvl_text_width = 590 — maximum width of line before it wraps to the next line. You want to increase that. Make sure it would not go outside of the screen.
cursor would also appear right on the part where the text continues.

Code: Select all

define narrator = Character(
    kind=nvl,
    ctc="indicator.png", # Image to use for click-to-contunue indicator
    ctc_position="nestled" # Will display just after text
)

Re: So I want to change my NVL mode like this.

Posted: Sat Mar 10, 2018 11:52 am
by renpycoder
Thanks a lot Ocelot! Problem fixed. And here I thought that isn't possible, as I was considering to use a different tool, but since Renpy can do it, I feel happy!