text centered in the middle of the bottom part of the screen(solved)
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.
text centered in the middle of the bottom part of the screen(solved)
this might seem really easy and simple but i havent touched renpy in a long time and documentation isnt helping me so i thought i would ask here.
neither
define gui.dialogue_text_xalign = 0.5
nor
define gui.dialogue_xpos = 600
really center it proprely.
i need the text to format appropriately. not just "start' at the beginning. but that it fills the appropriate space in the middle
neither
define gui.dialogue_text_xalign = 0.5
nor
define gui.dialogue_xpos = 600
really center it proprely.
i need the text to format appropriately. not just "start' at the beginning. but that it fills the appropriate space in the middle
Last edited by glithch on Tue Jan 14, 2020 6:34 pm, edited 2 times in total.
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3785
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: text centered in the middle of the bottom part of the screen
Are you trying to make the text "justified"?
Use an xalign and additionally add an xfill True
Use an xalign and additionally add an xfill True
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Re: text centered in the middle of the bottom part of the screen
@Imperf3kt
i know this is a late answer, i was doing focused on the art' but where exactly do i add that xfill?
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3785
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: text centered in the middle of the bottom part of the screen
Which text are you talking about.
When I suggested an xfill before, I forgot to ask.
Do you mean the dialogue text?
When I suggested an xfill before, I forgot to ask.
Do you mean the dialogue text?
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Re: text centered in the middle of the bottom part of the screen
yes!
edit: i tried using justify True in style say_dialogue but it wont work
Re: text centered in the middle of the bottom part of the screen(still need help)
is it ok if i bump this after some time?
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3785
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: text centered in the middle of the bottom part of the screen(still need help)
Bumps are fine most of the time.
I forgot to reply and currently I am away from my laptop.
I would suggest looking for things related to the text box in gui.rpy, but I can't currently suggest what as I don't have access to any copy of renpy at the moment.
I forgot to reply and currently I am away from my laptop.
I would suggest looking for things related to the text box in gui.rpy, but I can't currently suggest what as I don't have access to any copy of renpy at the moment.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Re: text centered in the middle of the bottom part of the screen(still need help)
The defaults are:
You have 268 pixels of left margin by the dialogue frame pushed that side. Set it to 0.
You should also probably change the width of the dialogue frame from 744 to your window size.
then set dialogue_text_align to 0.5.
Code: Select all
define gui.dialogue_xpos = 268
define gui.dialogue_ypos = 50
## The maximum width of dialogue text, in pixels.
define gui.dialogue_width = 744
## The horizontal alignment of the dialogue text. This can be 0.0 for left-
## aligned, 0.5 for centered, and 1.0 for right-aligned.
define gui.dialogue_text_xalign = 0.0
You should also probably change the width of the dialogue frame from 744 to your window size.
then set dialogue_text_align to 0.5.
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll not be notified about. << now red so probably you'll see it.
10 ? "RENPY"
20 GOTO 10
RUN
10 ? "RENPY"
20 GOTO 10
RUN
Re: text centered in the middle of the bottom part of the screen(still need help)
this just pushes my text to the left, to the point where most of the message gets cut off.
i did that multiple times and tried a lot of different things but still cant figure it out
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3785
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: text centered in the middle of the bottom part of the screen(still need help)
Can you show a mock screenshot of what you want and a screenshot if what you currently have along with the relevant code you have right now?
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Re: text centered in the middle of the bottom part of the screen(still need help)
sorry for how messy it looks, just stitched it fast, ignore the clock.
https://imgur.com/a/MpOe6In
i dont know what code would i have to post, other then just changing the textbox size etc i didnt really touch anything.
Re: text centered in the middle of the bottom part of the screen(still need help)
Are these normal dialogue lines? They look as menu voices. Or just "text". Or whatever.
Anyway:
That's the example in the gui doc, and it worked for me.
Did you try to erase permanent data too from the launcher?
Anyway:
Code: Select all
define gui.dialogue_xpos = 0.5
define gui.dialogue_text_xalign = 0.5
Did you try to erase permanent data too from the launcher?
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll not be notified about. << now red so probably you'll see it.
10 ? "RENPY"
20 GOTO 10
RUN
10 ? "RENPY"
20 GOTO 10
RUN
Re: text centered in the middle of the bottom part of the screen(still need help)
omg finally that worked. i had no idea you could put decimals in xpos! it was a regular number so i assumed i cant just switch it to a decimalgas wrote: ↑Tue Jan 14, 2020 12:09 pm Are these normal dialogue lines? They look as menu voices. Or just "text". Or whatever.
Anyway:That's the example in the gui doc, and it worked for me.Code: Select all
define gui.dialogue_xpos = 0.5 define gui.dialogue_text_xalign = 0.5
Did you try to erase permanent data too from the launcher?
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3785
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: text centered in the middle of the bottom part of the screen(solved)
There's two forms of numbering, when you use whole numbers, it changes the position based on the number of pixels.
If you use a decimal, it's a percentage, with a range of 0.0 to 1.0, 1.0 being 100%, 0.5 being 50%, 0.0 being 0%, etc.
If you use a decimal, it's a percentage, with a range of 0.0 to 1.0, 1.0 being 100%, 0.5 being 50%, 0.0 being 0%, etc.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Who is online
Users browsing this forum: Google [Bot], Imperf3kt