Custom Text box frame
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.
-
- Regular
- Posts: 36
- Joined: Sat Sep 05, 2009 1:57 pm
- Projects: Gen'sou shrine
- Location: Quebec whoohoo!
- Contact:
Custom Text box frame
I did a custom text box fram in photoshop and i've putted the new file in the options but when we test the game to see what it looks like, the text box is tinier than when we saved it and the text doesn't want to go directly in it. The text is written at the default place. Am I missing something? What should I do?
- mugenjohncel
- Hentai Poofter
- Posts: 2121
- Joined: Sat Feb 04, 2006 11:13 pm
- Organization: Studio Mugenjohncel
- Location: Philippines
- Contact:
Re: Custom Text box frame
You may have to uncomment the one in the options.rpy and change this line a bit...Aang wrote:I did a custom text box fram in photoshop and i've putted the new file in the options but when we test the game to see what it looks like, the text box is tinier than when we saved it
Code: Select all
style.window.yminimum = ???
For this... you may want to fiddle with these in the options.rpyAang wrote:The text is written at the default place. Am I missing something?
Code: Select all
style.window.left_padding = ??
style.window.right_padding = ??
style.window.top_padding = ??
style.window.bottom_padding = ??
-
- Regular
- Posts: 36
- Joined: Sat Sep 05, 2009 1:57 pm
- Projects: Gen'sou shrine
- Location: Quebec whoohoo!
- Contact:
Re: Custom Text box frame
I'm able to play with the size, but the text still ain't going in the text box completly. I don't understand.
-
- Eileen-Class Veteran
- Posts: 1265
- Joined: Fri Aug 31, 2007 7:02 am
- Projects: 0 completed game. Still haven't made any meaningfully completed games...
- Contact:
Re: Custom Text box frame
Aang wrote:but the text still ain't going in the text box completly.
Remember to remove the # from the code in front of these lines(the ones in your options.rpy; the ones here have already been removed).mugenjohncel wrote:For this... you may want to fiddle with these in the options.rpyCode: Select all
style.window.left_padding = 20 style.window.right_padding = 20 style.window.top_padding = 20 style.window.bottom_padding = 20
I suspect somebody is stealing my internet identity so don't believe everything I tell you via messages. I don't post or send messages anymore so don't believe anything I tell you via messages or posts.
-
- Regular
- Posts: 36
- Joined: Sat Sep 05, 2009 1:57 pm
- Projects: Gen'sou shrine
- Location: Quebec whoohoo!
- Contact:
Re: Custom Text box frame
I already know that. The thing is, when I have the right size for the text box frame, well the text doesn,t go in and when the text goes in the text box well the box fram is way too big.
Re: Custom Text box frame
Hm, what is the size of your frame in pixels?
And, is there any transparent space round your frame?
And, is there any transparent space round your frame?
-
- Regular
- Posts: 36
- Joined: Sat Sep 05, 2009 1:57 pm
- Projects: Gen'sou shrine
- Location: Quebec whoohoo!
- Contact:
Re: Custom Text box frame
I played a lot with the size, but currently it's 283 pixels high and 1020 pixels wide. And yes there's some transparent space around it, well it's suppose to be.
-
- Eileen-Class Veteran
- Posts: 1265
- Joined: Fri Aug 31, 2007 7:02 am
- Projects: 0 completed game. Still haven't made any meaningfully completed games...
- Contact:
Re: Custom Text box frame
The code(padding) doesn't affect the text box frame size. It only affects the default position of the text. Take note that it's padding not the one(margin) before it. Margin affects the text box size.Aang wrote:The thing is, when I have the right size for the text box frame, well the text doesn,t go in and when the text goes in the text box well the box fram is way too big.
Code: Select all
style.window.left_padding = 60 #increase this value if the text is too left and vice-versa
style.window.right_padding = 60 #increase this value if too right
style.window.top_padding = 60 #increase this value if too high
style.window.bottom_padding = 60#increase this value if too low
I suspect somebody is stealing my internet identity so don't believe everything I tell you via messages. I don't post or send messages anymore so don't believe anything I tell you via messages or posts.
Who is online
Users browsing this forum: Baidu [Spider]