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

change align in Dialog Box

#1 Post by Shokoniraya »

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

Image

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

Re: change align in Dialog Box

#2 Post by DannX »

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

Re: change align in Dialog Box

#3 Post by Shokoniraya »

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 37 times
note: this is a open source game

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

Re: change align in Dialog Box

#4 Post by Shokoniraya »

I really need help
(read previous comment)

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

Re: change align in Dialog Box

#5 Post by TakeHomeTheCup »

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

Re: change align in Dialog Box

#6 Post by Shokoniraya »

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

Re: change align in Dialog Box

#7 Post by Shokoniraya »

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: 1900
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: change align in Dialog Box

#8 Post by philat »

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

Re: change align in Dialog Box

#9 Post by Shokoniraya »

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: 1900
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: change align in Dialog Box

#10 Post by philat »

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.

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

Re: change align in Dialog Box

#11 Post by Shokoniraya »

are you talking about CopyRight?
if yes, i must tell you that i am not like that.
just want to make a path to translate text for those guys who have this game
we make a patch and in this patch, we just adding text files and font or somethings for translating, not full game!
and in those file (see previous topic) i actually deleted a lot of thing because of copyright! you will see if you check it by yourself

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]