How to remove the tabbing in front of a character in NVL?

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
Natsu Dragneel
Regular
Posts: 55
Joined: Wed Aug 19, 2015 11:48 am
Contact:

How to remove the tabbing in front of a character in NVL?

#1 Post by Natsu Dragneel »

So I've created an NVL screen for my game to serve as IM system, but some characters are moved a bit to the right and I want them to be in a straight column (image below). Is there any way to make that happen?
Yuuko56 is moved to the right automatically while anyami is alright
Yuuko56 is moved to the right automatically while anyami is alright
Capture.PNG (3.21 KiB) Viewed 776 times
Thank you :3

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2402
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: How to remove the tabbing in front of a character in NVL

#2 Post by Ocelot »

Check the style used by text in your screen. Look for padding/margin property.

Also, I suspect that names are aligned to the right and text is aligned to the left. In this case look for xalign property. Set it to 0.0 if it is equal to 1.0
< < insert Rick Cook quote here > >

Natsu Dragneel
Regular
Posts: 55
Joined: Wed Aug 19, 2015 11:48 am
Contact:

Re: How to remove the tabbing in front of a character in NVL

#3 Post by Natsu Dragneel »

I've tried, but my script doesn't have this property and I've tried multiple codes already.

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2402
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: How to remove the tabbing in front of a character in NVL

#4 Post by Ocelot »

Can you show, what style inspector shows for that name?
< < insert Rick Cook quote here > >

Natsu Dragneel
Regular
Posts: 55
Joined: Wed Aug 19, 2015 11:48 am
Contact:

Re: How to remove the tabbing in front of a character in NVL

#5 Post by Natsu Dragneel »

It basically says it's aligned at 1.0:

Code: Select all

displayable:
    color u'#3a4bff
style nvl_label:
    minwidth 150
    text_align 1.0
but I don't see any option to change it in my screen, options or script file.

UPDATE: I've found the option in 00nvl_mode.rpy and have changed the alignment to 0.0 as seen here:

Code: Select all

# Set up nvl mode styles.
    style.nvl_label.minwidth = 150
    style.nvl_label.text_align = 0.0
but I still have the same problem -_-

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2402
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: How to remove the tabbing in front of a character in NVL

#6 Post by Ocelot »

Change gui.nvl_name_xalign in gui.rpy. Also style nvl_label should be defined in screens.rpy.
< < insert Rick Cook quote here > >

Natsu Dragneel
Regular
Posts: 55
Joined: Wed Aug 19, 2015 11:48 am
Contact:

Re: How to remove the tabbing in front of a character in NVL

#7 Post by Natsu Dragneel »

It solved that problem, but gave me bigger spacing between lines and I don't know how to change the color of the text.
I'm just gonna use the legacy interface, the new one has been giving me more trouble than anything else. I will still be stuck with the padding problem though, thnx for trying to help anyway :)

UPDATE: I managed to fix it! Thanks for your help, I would've never figured it out without you.
Anyways if someone else has this problem and wants to solve it here's the code you need to paste in your screens.rpy;

Code: Select all

style nvl_label:
    text_align 0.0

Post Reply

Who is online

Users browsing this forum: Google [Bot]