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.
-
RadioactiveMoth
- Newbie
- Posts: 9
- Joined: Wed Jan 29, 2014 4:59 pm
- IRC Nick: RadioactiveMoth
- Location: Minnesota, USA
-
Contact:
#1
Post
by RadioactiveMoth » Wed Jun 04, 2014 10:18 pm
I want to make a text box that appears in the middle of the screen.
So instead of this:
It shows this:
I have the custom textbox ready for use, but I need to make it be in the center.
-
Cafechan
- Regular
- Posts: 107
- Joined: Fri Aug 13, 2010 5:09 am
- Completed: algormortis
- Projects: The Duenkhy, Lights on Stillwater Hill
-
Contact:
#2
Post
by Cafechan » Thu Jun 05, 2014 3:12 am
If I'm understanding correctly....
To get this (you can change the textbox later, of course):
Go to your game's options.rpy and find the section that says:
Code: Select all
#########################################
## These settings let you customize the window containing the
## dialogue and narration, by replacing it with an image.
## The background of the window. In a Frame, the two numbers
## are the size of the left/right and top/bottom borders,
## respectively.
And here's all you gotta do!
Code: Select all
# style.window.left_margin = 6
# style.window.right_margin = 6
# style.window.top_margin = 6
style.window.bottom_margin = 250 ######### UNCOMMENT THIS ONE! adjust the number until your box is where you want it!
## Padding is space inside the window, where the background is
## drawn.
# style.window.left_padding = 6
# style.window.right_padding = 6
# style.window.top_padding = 6
style.window.bottom_padding = 50 ######## ALSO UNCOMMENT THIS! adjust to fix the box height!
And if you want the text centered, just use center tags.
-
korova
- Veteran
- Posts: 217
- Joined: Sat Jun 27, 2009 5:15 pm
- Completed: Ivy, Chocolate, Time, Clair Obscur
- Projects: Writing exercises, The House [Nano18]
- Tumblr: korova08
- itch: korova
- Location: Normandie, France
-
Contact:
#3
Post
by korova » Thu Jun 05, 2014 2:19 pm
-
RadioactiveMoth
- Newbie
- Posts: 9
- Joined: Wed Jan 29, 2014 4:59 pm
- IRC Nick: RadioactiveMoth
- Location: Minnesota, USA
-
Contact:
#4
Post
by RadioactiveMoth » Thu Jun 05, 2014 5:23 pm
Thanks, I couldn't get the test box to look right, so I just got rid of it. It's readable without it.
I thought we were in the dessert!
Users browsing this forum: No registered users