Search found 174 matches
- Tue Nov 02, 2021 5:39 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Align Text Within Frame In Screen [SOLVED]
- Replies: 19
- Views: 788
Re: Align Text Within Frame In Screen
Hmm... if you want two independent lines of text you don't need a vbox at all, you can position text where ever you want. xpos and ypos is the pixel coordinate and xalign and yalign the orientation. If you create a box at x=100, y=100, width=50, height=50 and xalign=1.0, yalign=1.0, then the box wi...
- Tue Nov 02, 2021 5:38 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Align Text Within Frame In Screen [SOLVED]
- Replies: 19
- Views: 788
Re: Align Text Within Frame In Screen
2) If you want such precision, drop the vbox and explicitely position text displayables within frame, and apply exact size you want. Then use text_align to properly position text An example code: screen locbox(): frame: xsize 310 ysize 80 xpos 970 padding (0, 0) # To lazy to fix default padding in ...
- Tue Nov 02, 2021 5:02 am
- Forum: Ren'Py Questions and Announcements
- Topic: Align Text Within Frame In Screen [SOLVED]
- Replies: 19
- Views: 788
Re: Align Text Within Frame In Screen
By default, text displayable takes all avaliable space and vbox increases in size on demand, so it takes all avaliable space too. Limit either vbox or text by setting xmaximum property. I did this, but I'm not sure what effect it will have immediately. It doesn't seem to help with the alignment iss...
- Tue Nov 02, 2021 4:10 am
- Forum: Ren'Py Questions and Announcements
- Topic: Align Text Within Frame In Screen [SOLVED]
- Replies: 19
- Views: 788
Re: Align Text Within Frame In Screen
Sorry for not being more clear on my end. I really do appreciate your help. This has made it work almost exactly as I want it. There's only two more things now. 1) I don't know how to align the text on the X axis. Every time I try to put in an xpos, it starts counting from the left instead of from t...
- Tue Nov 02, 2021 3:45 am
- Forum: Ren'Py Questions and Announcements
- Topic: Current Location Label [SOLVED]
- Replies: 4
- Views: 443
Re: Current Location Label
Thank you.
- Mon Nov 01, 2021 8:34 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Align Text Within Frame In Screen [SOLVED]
- Replies: 19
- Views: 788
Re: Align Text Within Frame In Screen
I tried your example, and it didn't align the text along the right edge
I'm trying it again, this is what it gives me:
I'm trying it again, this is what it gives me:
- Mon Nov 01, 2021 8:02 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Align Text Within Frame In Screen [SOLVED]
- Replies: 19
- Views: 788
Re: Align Text Within Frame In Screen
That leaves me with this, as seen in the picture. I tried using transforms to set things, and that gave me a little more success, but for some reason it wants the vbox to be oriented around some invisible point in the top right corner rather than the top right corner itself? Here's what I tried: tra...
- Mon Nov 01, 2021 7:42 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Align Text Within Frame In Screen [SOLVED]
- Replies: 19
- Views: 788
Re: Align Text Within Frame In Screen
Once I split it up into multiple vboxes it stopped right-aligning them. Hm. And now it won't do it even when I combine them into one vbox? How am I supposed to turn this into something that allows me to set the style and location of the strings of text within the frame? screen locbox(): frame: xsize...
- Mon Nov 01, 2021 7:31 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Align Text Within Frame In Screen [SOLVED]
- Replies: 19
- Views: 788
Re: Align Text Within Frame In Screen
Sorry, one more quick update -- the text IS right-aligned in relation to the screen, but the second line of text is left-aligned in relation to the first line of text.
I'll try putting them into separate vboxes.
I'll try putting them into separate vboxes.
- Mon Nov 01, 2021 7:28 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Align Text Within Frame In Screen [SOLVED]
- Replies: 19
- Views: 788
Re: Align Text Within Frame In Screen
Wait, I just tried fussing with it, and the vbox itself seems to be right-aligned, but not the text. Hmm. I guess it really is a matter moving the text around, rather than the box.
- Mon Nov 01, 2021 7:26 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Align Text Within Frame In Screen [SOLVED]
- Replies: 19
- Views: 788
Re: Align Text Within Frame In Screen
Ah, sorry. I did that, but the text still isn't right-aligned. It still looks as it does in the screenshot. How can I move the text lines around within the vbox? I want to first set them right aligned, then make sure their textbox is the correct size and has the correct padding (or are directly plac...
- Mon Nov 01, 2021 7:05 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Align Text Within Frame In Screen [SOLVED]
- Replies: 19
- Views: 788
Re: Align Text Within Frame In Screen
How would I make it a float instead of an int? I tried adding float as a prefix but I got this: File "game/screens.rpy", line 1523: u'float' is not a keyword argument or valid child for the frame statement. float xalign 1 I don't quite understand how to set the formatting and style for a s...
- Mon Nov 01, 2021 5:09 am
- Forum: Ren'Py Questions and Announcements
- Topic: Align Text Within Frame In Screen [SOLVED]
- Replies: 19
- Views: 788
Align Text Within Frame In Screen [SOLVED]
Hey all, I'm trying to align my text to the right side of the frame, but it doesn't seem to be working. What I'd like is to set the text boxes for the top and bottom text boxes to be neatly aligned within the frame against the right. I have an example of what my game looks like right now, vs what I ...
- Mon Nov 01, 2021 3:57 am
- Forum: Ren'Py Questions and Announcements
- Topic: Current Location Label [SOLVED]
- Replies: 4
- Views: 443
Re: Current Location Label
I took what you had and it seems to work, though now I just have some transparent text hovering over part of the screen. That's okay, though. I think I can scrap something together to align it properly and set a background image. I'm not sure which video you were referring to since your link goes to...
- Sat Oct 30, 2021 3:16 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Current Location Label [SOLVED]
- Replies: 4
- Views: 443
Current Location Label [SOLVED]
What I'd like to do is include a label which shows the general location and specific location of the main character during normal VN segments. The top right of the UI mockup is what I'm going for. What sort of UI setup do I need to do to have that there? I'm fine with changing the value of it whenev...