Textbox Position
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.
Textbox Position
Is it possible to change the position of the Textbox and the displayed Text nearly over the whole screen
and leaving the Textbox transparent. I was thinking of the fate stay night textbox style.
Can anyone give me a hint how to do this?
and leaving the Textbox transparent. I was thinking of the fate stay night textbox style.
Can anyone give me a hint how to do this?
- valeatory
- Regular
- Posts: 36
- Joined: Mon Apr 23, 2007 3:01 pm
- Projects: Nightglove Institute, Monstrata Fracture
- Organization: Astralore Games
- Tumblr: valeatory
- itch: astralore
- Location: America
- Contact:
Re: Textbox Position
I think you can make the window transparent by uncommenting
style.window.background = Frame("frame.png", 12, 12)
and changing it to
style.window.background = Frame("#0000", 12, 12)
in your options.rpy
style.window.background = Frame("frame.png", 12, 12)
and changing it to
style.window.background = Frame("#0000", 12, 12)
in your options.rpy
Nightglove Institute - Kidnapped students, forced to train to be secret agents and assassins!
Monstrata Fracture - Date cute monsters! But will you risk destabilizing the human plane of existence?
Monstrata Fracture - Date cute monsters! But will you risk destabilizing the human plane of existence?
-
- Regular
- Posts: 87
- Joined: Sat Jun 23, 2007 9:19 am
- Projects: ALICE.NET
- Location: The other end of the internet.
- Contact:
Re: Textbox Position
The short answer: use NVL mode. Of course, this fills the whole screen, so if you want the clear border a la Fate, you'll need to add a couple lines to an init section in your script:darkfiete wrote:Is it possible to change the position of the Textbox and the displayed Text nearly over the whole screen
and leaving the Textbox transparent. I was thinking of the fate stay night textbox style.
Can anyone give me a hint how to do this?
Code: Select all
init:
# ...
$ style.nvl_window.xmargin=20
$ style.nvl_window.ymargin=20
Re: Textbox Position
Thank you for the fast answers, this was exactly what i was looking for! *kiss*
But one more thing. I want to adjust the Text itself to be more to the right. The Text normally starts at 1/4 of the screen leaving an empty quarter of the textbox.
But one more thing. I want to adjust the Text itself to be more to the right. The Text normally starts at 1/4 of the screen leaving an empty quarter of the textbox.
Re: Textbox Position
Code: Select all
style.nvl_window.xmargin = 26
style.nvl_window.top_margin = 51
style.nvl_window.bottom_margin = 61
style.nvl_window.xpadding = 38
style.nvl_window.ypadding = 15
style.nvl_window.background = Frame("bgimages/frame.png", 748, 488)
-
- Regular
- Posts: 87
- Joined: Sat Jun 23, 2007 9:19 am
- Projects: ALICE.NET
- Location: The other end of the internet.
- Contact:
Re: Textbox Position
Sorry, I forgot about that; it's an artifact of using NVL mode with the default styles.darkfiete wrote:The Text normally starts at 1/4 of the screen leaving an empty quarter of the textbox.
Re: Textbox Position
ypadding should actually be 26, indent should be 14 px. Line spacing should be 13 px.
Re: Textbox Position
hm where to put the indent and line_spacing properties?Scott wrote:ypadding should actually be 26, indent should be 14 px. Line spacing should be 13 px.
they have no effect if i use theme with style.nvl_window
Re: Textbox Position
Code: Select all
style.default.first_indent = 14
style.nvl_dialogue.line_spacing = 13
Who is online
Users browsing this forum: No registered users