change align in Dialog Box

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
Shokoniraya
Newbie
Posts: 6
Joined: Mon Sep 17, 2018 1:51 am
Contact:

change align in Dialog Box

#1 Post by Shokoniraya » Mon Sep 17, 2018 2:09 am

hey guys...
anyone know how can i change align in Dialog Box?
set to Center, like this picture:

Image

DannX
Regular
Posts: 61
Joined: Mon Mar 12, 2018 11:15 am
Contact:

Re: change align in Dialog Box

#2 Post by DannX » Mon Sep 17, 2018 8:44 am

In your project folder, in gui.rpy, find the lines:

Code: Select all

define gui.dialogue_xpos = 268

define gui.dialogue_text_xalign = 0.0
And change both their values to 0.5, that should center the text position and alignment.

User avatar
Shokoniraya
Newbie
Posts: 6
Joined: Mon Sep 17, 2018 1:51 am
Contact:

Re: change align in Dialog Box

#3 Post by Shokoniraya » Fri Oct 12, 2018 1:42 am

im trying to change text align in this project for translating
how can i set dialogue text to center? (change align)

and i want help, because this game doesnt have gui.rpy or gui.rpyc
thats not my project and i just want to translate texts
LoveIsStrange-FULL-all.zip
(35.78 MiB) Downloaded 1 time
note: this is a open source game

User avatar
Shokoniraya
Newbie
Posts: 6
Joined: Mon Sep 17, 2018 1:51 am
Contact:

Re: change align in Dialog Box

#4 Post by Shokoniraya » Sun Oct 14, 2018 11:41 pm

I really need help
(read previous comment)

TakeHomeTheCup
Newbie
Posts: 13
Joined: Tue Oct 09, 2018 9:12 pm
Contact:

Re: change align in Dialog Box

#5 Post by TakeHomeTheCup » Mon Oct 15, 2018 12:28 am

Did you try putting what DannX said to put in a different file, like the options file in the game folder?

User avatar
Shokoniraya
Newbie
Posts: 6
Joined: Mon Sep 17, 2018 1:51 am
Contact:

Re: change align in Dialog Box

#6 Post by Shokoniraya » Mon Oct 15, 2018 12:07 pm

yes. but not working
I mean, X-postion (xpos) is not a problem
my problem is; change text align in dialog box (subtitles), like those picture in my first comment
I uploaded open-source game in previous comments, if you can help, please download it and check it.

User avatar
Shokoniraya
Newbie
Posts: 6
Joined: Mon Sep 17, 2018 1:51 am
Contact:

Re: change align in Dialog Box

#7 Post by Shokoniraya » Tue Oct 16, 2018 11:49 am

is there any body to help me in this game for change align to center? (you can download game in previous posts)

philat
Eileen-Class Veteran
Posts: 1443
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: change align in Dialog Box

#8 Post by philat » Tue Oct 16, 2018 10:52 pm

That game isn't open source. I would recommend taking the file down as you shouldn't be distributing the game. Contact the creators if you want to modify it.

User avatar
Shokoniraya
Newbie
Posts: 6
Joined: Mon Sep 17, 2018 1:51 am
Contact:

Re: change align in Dialog Box

#9 Post by Shokoniraya » Wed Oct 17, 2018 12:25 am

no, i just turned to open source, please download and you will see it!
all rpy files are open-text and no encoded stuff or package (.rpa) added in this source
i opened this source, no problem about source
those zip is an source game, not compiled!
and about distributing : its not a full game and i deleted some things because of copyright

and i just want to translate text and just need to change align of subtitle (not modding)

philat
Eileen-Class Veteran
Posts: 1443
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: change align in Dialog Box

#10 Post by philat » Wed Oct 17, 2018 12:49 am

That's not how any of this works. You are openly distributing unencrypted files of a game whose creators expressly stated they don't want that happening. Again, if you want to modify the game (including translation), contact the creators.

Post Reply

Who is online

Users browsing this forum: No registered users