How to remove the tabbing in front of a character in NVL?
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.
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.
-
- Regular
- Posts: 55
- Joined: Wed Aug 19, 2015 11:48 am
- Contact:
How to remove the tabbing in front of a character in NVL?
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?
Thank you :3
Thank you :3
- Ocelot
- Lemma-Class Veteran
- Posts: 2404
- 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
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
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 > >
-
- 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
I've tried, but my script doesn't have this property and I've tried multiple codes already.
- Ocelot
- Lemma-Class Veteran
- Posts: 2404
- 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
Can you show, what style inspector shows for that name?
< < insert Rick Cook quote here > >
-
- 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
It basically says it's aligned at 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:
but I still have the same problem -_-
Code: Select all
displayable:
color u'#3a4bff
style nvl_label:
minwidth 150
text_align 1.0
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
- Ocelot
- Lemma-Class Veteran
- Posts: 2404
- 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
Change gui.nvl_name_xalign in gui.rpy. Also style nvl_label should be defined in screens.rpy.
< < insert Rick Cook quote here > >
-
- 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
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;
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
Who is online
Users browsing this forum: Google [Bot], Majestic-12 [Bot]