Page 1 of 1
Making the dialogue box disapper by right-clicking [Solved]
Posted: Mon Jul 08, 2013 6:39 am
by kikcac
I want the dialogue box to disapear when right-clicked, like in Re:Alistar so that people can see the CG and and other images in full-view.
Does anyone know how to do this?
Thank you in advance! Oh, and I'm not so good with Renpy so please explain in easy language.
Re: Making the dialogue box disapper by right-clicking
Posted: Mon Jul 08, 2013 1:49 pm
by pwisaguacate
By default, the middle mouse button (and h key) hides the dialogue box. You can change it with the following:
Code: Select all
init:
$ config.keymap['hide_windows'].append('mouseup_3') # To hide text on right click
$ config.keymap['hide_windows'].remove('mouseup_2') # To remove keymapping of middle mouse button
Note that RE: Alistair++ uses menu buttons directly built into the textbox, so you might have to design it that way and remove the keymapping from
game_menu:
Code: Select all
init:
$ config.keymap['game_menu'].remove('K_ESCAPE')
$ config.keymap['game_menu'].remove('mouseup_3')
$ config.keymap['game_menu'].remove('joy_menu')
(It is uncommon for people to do this. If you wish to keep the right click menu but have an obvious way to hide all the screens, then you could add a button that says "Hide" with the
Hide_Interface() function:)
Code: Select all
# For example, for the quick menu in screenss.rpy
screen quick_menu:
[...]
textbutton _("Hide") action HideInterface()
[...]
Re: Making the dialogue box disapper by right-clicking
Posted: Mon Jul 08, 2013 11:40 pm
by kikcac
@pwisaguacate: Thank you so much! It works.
For others who also wants to this kind of option, here is the quote I added at the end of options.rpy:
Code: Select all
init:
$ config.keymap['hide_windows'].append('mouseup_3') # To hide text on right click.
$ config.keymap['hide_windows'].remove('mouseup_2') # To remove keymapping of middle mouse button.
$ config.keymap['hide_windows'].remove('h') # To remove leymapping of H button
$ config.keymap['hide_windows'].remove('joy_hide')
$ config.keymap['game_menu'].remove('K_ESCAPE')
$ config.keymap['game_menu'].remove('mouseup_3')
$ config.keymap['game_menu'].remove('joy_menu')
A helpful link:
http://www.renpy.org/wiki/renpy/doc/reference/Keymap.
Re: Making the dialogue box disapper by right-clicking [Solv
Posted: Fri May 23, 2014 6:48 pm
by 404
I want to implement this but instead of a click, I want my window to disappear by hitting the spacebar. I'd also like to add a dissolve transition whenever you hit spacebar to hide the text window. How could I do this?