[SOLVED] NVL mode question
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.
- Michiyo6918
- Veteran
- Posts: 262
- Joined: Fri Nov 11, 2011 12:26 am
- Projects: ╮(╯▽╰)╭
- Location: Look behind you
- Contact:
[SOLVED] NVL mode question
I have some questions regarding the NVL mode.
First, how can I have a box surrounded the text, somehow look like this. (I borrowed it from a different person...)
Second, how can I add side image to a NVL character?
Third, how can I make a dialog appears at once? Like... not the type writer style anymore, just a part of the game with dialog appears at once?
First, how can I have a box surrounded the text, somehow look like this. (I borrowed it from a different person...)
Second, how can I add side image to a NVL character?
Third, how can I make a dialog appears at once? Like... not the type writer style anymore, just a part of the game with dialog appears at once?
Last edited by Michiyo6918 on Wed Jul 04, 2012 2:38 am, edited 1 time in total.
-
- Veteran
- Posts: 479
- Joined: Tue Jun 05, 2012 2:01 am
- Contact:
Re: NVL mode question
Changing the appearance to look like that screenshot isn't too hard; it's just a matter of setting the appropriate styles on "nvl_window" and "nvl_entry". (Feel free to ask if you need more details here.)
For side images, see http://www.renpy.org/doc/html/side_image.html .
As for the text appearing all at once, that's the default unless you've changed config.default_text_cps to something other than 0...
For side images, see http://www.renpy.org/doc/html/side_image.html .
As for the text appearing all at once, that's the default unless you've changed config.default_text_cps to something other than 0...
- Michiyo6918
- Veteran
- Posts: 262
- Joined: Fri Nov 11, 2011 12:26 am
- Projects: ╮(╯▽╰)╭
- Location: Look behind you
- Contact:
Re: NVL mode question
I'm pretty blind right now... X_X so yeah, can you tell me the details of this?Changing the appearance to look like that screenshot isn't too hard; it's just a matter of setting the appropriate styles on "nvl_window" and "nvl_entry". (Feel free to ask if you need more details here.)
I looked through this one already but still couldn't find out the solution. Can you show me the code of it? (I want the side image to show up before the dialog in NVL mode, like an avatar.)For side images, see http://www.renpy.org/doc/html/side_image.html
-
- Veteran
- Posts: 479
- Joined: Tue Jun 05, 2012 2:01 am
- Contact:
Re: NVL mode question
Simple example of NVL window restyling (put in an init block):
Quick example of NVL side images (only one shows at a time):
Ren'Py doesn't really have proper support for putting a image next to each line, but the following will work:
Code: Select all
style.nvl_window.background=None
style.nvl_entry.background="#888"
style.nvl_entry.xfill = True
Code: Select all
image side eileen = "sylvie_giggle_small.png"
define e = Character('Eileen', color="#c8ffc8", image="eileen", kind=nvl)
label start:
e "You've created a new Ren'Py game."
e "Once you add a story, pictures, and music, you can release it to the world!"
return
Code: Select all
image eileen = "sylvie_giggle_small.png"
define e = Character('{image=eileen}Eileen', color="#c8ffc8", kind=nvl)
label start:
e "You've created a new Ren'Py game."
e "Once you add a story, pictures, and music, you can release it to the world!"
return
- Michiyo6918
- Veteran
- Posts: 262
- Joined: Fri Nov 11, 2011 12:26 am
- Projects: ╮(╯▽╰)╭
- Location: Look behind you
- Contact:
Re: NVL mode question
The side image works perfectly, thank you
But can I ask you another question? Is it possible to add something like the show_two_window to nvl character?
I want the dialog to appear like this:
But can I ask you another question? Is it possible to add something like the show_two_window to nvl character?
I want the dialog to appear like this:
Code: Select all
[side image] [name]
Bla bla bla
-
- Veteran
- Posts: 479
- Joined: Tue Jun 05, 2012 2:01 am
- Contact:
Re: NVL mode question
Try going into "screen nvl" in screens.rpy in your project, and change where it says "has hbox" to "has vbox".
- Michiyo6918
- Veteran
- Posts: 262
- Joined: Fri Nov 11, 2011 12:26 am
- Projects: ╮(╯▽╰)╭
- Location: Look behind you
- Contact:
-
- Veteran
- Posts: 479
- Joined: Tue Jun 05, 2012 2:01 am
- Contact:
Re: NVL mode question
Try looking at http://www.renpy.org/doc/html/screens.html to see what you can do.
I'm guessing you want something like the following:
Edit: Oh, err, wait, I see what you mean... the {image=} trick is really a hack, and it'll make the layout you want impossible. I'll take another look.
I'm guessing you want something like the following:
Code: Select all
# Display dialogue.
for who, what, who_id, what_id, window_id in dialogue:
window:
id window_id
has hbox:
spacing 10
if who is not None:
text who id who_id
vbox:
null height 24
text what id what_id
- Michiyo6918
- Veteran
- Posts: 262
- Joined: Fri Nov 11, 2011 12:26 am
- Projects: ╮(╯▽╰)╭
- Location: Look behind you
- Contact:
Re: NVL mode question
It's a hack? O_o
Oh well, if that's impossible then it's fine, really Thanks for helping me out until now!
Oh well, if that's impossible then it's fine, really Thanks for helping me out until now!
-
- Newbie
- Posts: 14
- Joined: Fri Feb 13, 2015 9:17 am
- Contact:
Re: NVL mode question
It's a hack?
Who is online
Users browsing this forum: Google [Bot]