Fixing spacing in between NVL blocks of text

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
User avatar
amada
Newbie
Posts: 6
Joined: Fri May 13, 2016 7:08 am
Contact:

Fixing spacing in between NVL blocks of text

#1 Post by amada »

I've tried to fix this on my own several times, but I always seem to end up with my NVL mode text looking like this: Image

I've already tried tinkering with these part of the codes (especially the nvl spacing), but I can only seem to make the spacing in between entries increase rather than decrease like I want them to. I know I probably missed something but I can't just figure out what.

Code: Select all

## The borders of the background of the NVL-mode background window.
define gui.nvl_borders = Borders(0, 0, 0, 0)

## The maximum number of NVL-mode entries Ren'Py will display. When more entries
## than this are to be show, the oldest entry will be removed.
define gui.nvl_list_length = 4

## The height of an NVL-mode entry. Set this to None to have the entries
## dynamically adjust height.
define gui.nvl_height = None

## The spacing between NVL-mode entries when gui.nvl_height is None, and between
## NVL-mode entries and an NVL-mode menu.
define gui.nvl_spacing = 10

## The position, width, and alignment of the dialogue text.
define gui.nvl_text_xpos = 150
define gui.nvl_text_ypos = 100
define gui.nvl_text_width = 700
define gui.nvl_text_xalign = 0.0
Last edited by amada on Sun Sep 16, 2018 4:03 am, edited 1 time in total.

User avatar
amada
Newbie
Posts: 6
Joined: Fri May 13, 2016 7:08 am
Contact:

Re: Fixing spacing in between NVL mode entries

#2 Post by amada »

I've tried fiddling about and I think I might have found a solution, but come across another problem.

I've succeeded in making my spacing between text look like this:
Image

But the first two lines of text (out of five) only appear after I've hit the enter button thrice and the succeeding lines don't actually appear.

I've done this by changing this part in the screens.rpy

Code: Select all

has vbox:
            spacing 18

Again, I feel like I'm missing some part I'm supposed to fix, so I'd really appreciate any help on this matter.

User avatar
komehara
Regular
Posts: 36
Joined: Fri Jan 31, 2020 10:08 pm
Projects: Spirit Link
Tumblr: hsandt
Deviantart: hsandt
Github: hsandt
itch: komehara
Contact:

Re: Fixing spacing in between NVL blocks of text

#3 Post by komehara »

`gui.nvl_spacing` should work. Make sure you use nvl_narrator though. Otherwise you may need to change the spacing setting for the custom NVL character itself (never did it myself though).

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Fixing spacing in between NVL blocks of text

#4 Post by Imperf3kt »

You probably want to set nvl spacing to None
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
komehara
Regular
Posts: 36
Joined: Fri Jan 31, 2020 10:08 pm
Projects: Spirit Link
Tumblr: hsandt
Deviantart: hsandt
Github: hsandt
itch: komehara
Contact:

Re: Fixing spacing in between NVL blocks of text

#5 Post by komehara »

Not the same issue but related: I needed this for history too, so I posted a suggestion to customize history spacing (https://github.com/renpy/renpy/issues/4766) which has been implemented for Renpy 8.2 / 7.7 Prerelease.

Since you can expect history lines to have a similar issue to NVL, once 8.2 is released, consider adjusting the new gui.history_spacing together with gui.nvl_spacing to suit your needs.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], DewyNebula