Second Line Indentation

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
Mustaucheman
Newbie
Posts: 2
Joined: Wed Feb 20, 2019 3:56 pm
Contact:

Second Line Indentation

#1 Post by Mustaucheman »

Hello all, I'm quite new to Ren'Py and python in general, and had a simple question regarding the dialogue text box.

Is there a way to indent the second/further lines to create a quotation effect, as seen in this picture? I'm currently using the japanese ms gothic font to properly render the japanese quotation marks.

Image

Thanks in advance!

User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: Second Line Indentation

#2 Post by Remix »

The style name is "rest_indent" and the likely easiest way is to add:

Code: Select all

define gui.text_rest_indent = 16
to gui.rpy

If that messes with other text formats, perhaps (untested) define gui.dialogue_text_rest_indent = 55
Frameworks & Scriptlets:

Mustaucheman
Newbie
Posts: 2
Joined: Wed Feb 20, 2019 3:56 pm
Contact:

Re: Second Line Indentation

#3 Post by Mustaucheman »

Thank you so much! So it seems:

Code: Select all

define gui.dialogue_text_rest_indent = 30
Works perfectly!

Image

User avatar
Johan
Regular
Posts: 76
Joined: Mon Jan 14, 2019 5:58 pm
Organization: DMEOW
itch: dmeow
Location: Perú
Discord: Johan#7444
Contact:

Re: Second Line Indentation

#4 Post by Johan »

oh my god, thank you @remix, I also was looking for this! thank you :D
dmeow !
Check my silly blog!

◤ And I saw the stars ★ falling down... ◢
Check the game!! IT'S OUT!!!
.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]