Page 1 of 1

Merging the choice menu and dialogue box

Posted: Fri Mar 16, 2018 9:27 am
by Korbiwe
I'm quite new to Ren'Py, but pretty experienced in Python. What I'm trying to do is to merge dialogue box with choice menu and the history thingy. I've tried various things like trying to retrieve a current "choice" screen while being in the "say" screen, and make textbuttons out of its contents but all my attempts were unsuccessful.

I've attached an image of what I'm trying to achieve (sorry for the fact that it's in Russian).

Thanks in advance.

Re: Merging the choice menu and dialogue box

Posted: Fri Mar 16, 2018 11:29 am
by Ocelot
Sorry, I do not have time to write and test complete code, but here are some pointers:

— Look at nvl screen and look how it displays choices.
— Notice that you can replace function used to display menu: https://www.renpy.org/doc/html/nvl_mode.html#nvl_menu
— Maybe modify say screen to display choices, when needed and make a custom menu function?

Re: Merging the choice menu and dialogue box

Posted: Fri Mar 16, 2018 1:23 pm
by Korbiwe
Damn! Thank you, @Ocelot. The answer was always right under my nose, but I kept overlooking it. Something like NVL screen is just what I need.

Re: Merging the choice menu and dialogue box

Posted: Fri Mar 16, 2018 1:25 pm
by Korbiwe
Also, the thought to

Code: Select all

define menu
never crossed my mind, but it's the perfect solution.