[solved] adding close for textbox / dissappearing textbox

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Message
Author
User avatar
fenol
Regular
Posts: 69
Joined: Sat Aug 27, 2011 10:33 am
Projects: Choroumachi | Vasileio
Organization: Zerorange
Deviantart: fenolijuna
Skype: fenol.ijuna
Soundcloud: fenol-ijuna
Contact:

[solved] adding close for textbox / dissappearing textbox

#1 Post by fenol »

sorry.. i take an example from the only one VN that i know can dissappearing their textbox.

this one from re:allistar by sake visual

see this
Image

and when we click right mouse..
jeng jeng jeng!!!
Image

normally.. from all renpy vn that i downloaded.. everytime i click right in mouse.. i got this..
Image

err.. can tell me what code that i should used so my VN textbox can dissappear just with right click like that??
Øp!
Last edited by fenol on Wed Sep 28, 2011 9:23 am, edited 2 times in total.

Anima
Veteran
Posts: 448
Joined: Wed Nov 18, 2009 11:17 am
Completed: Loren
Projects: PS2
Location: Germany
Contact:

Re: adding close for textbox / dissappearing textbox

#2 Post by Anima »

Press the h key on your keyboard.
Avatar created with this deviation by Crysa
Currently working on:
  • Winterwolves "Planet Stronghold 2" - RPG Framework: Phase III

User avatar
fenol
Regular
Posts: 69
Joined: Sat Aug 27, 2011 10:33 am
Projects: Choroumachi | Vasileio
Organization: Zerorange
Deviantart: fenolijuna
Skype: fenol.ijuna
Soundcloud: fenol-ijuna
Contact:

Re: adding close for textbox / dissappearing textbox

#3 Post by fenol »

ups sorry.. i'll update the post.

i mean how to add the right code so my vn can be played like that one.. of course without press H in my keyboard and only with my right mouse.
Øp!

User avatar
Camille
Eileen-Class Veteran
Posts: 1227
Joined: Sat Apr 23, 2011 2:43 pm
Completed: Please see http://trash.moe
Projects: the head well lost
Organization: L3
Tumblr: narihira
Deviantart: crownwaltz
itch: lore
Contact:

Re: adding close for textbox / dissappearing textbox

#4 Post by Camille »


User avatar
fenol
Regular
Posts: 69
Joined: Sat Aug 27, 2011 10:33 am
Projects: Choroumachi | Vasileio
Organization: Zerorange
Deviantart: fenolijuna
Skype: fenol.ijuna
Soundcloud: fenol-ijuna
Contact:

Re: adding close for textbox / dissappearing textbox

#5 Post by fenol »

Camille wrote:You do this by changing your game's keymap.
i'm kinda lost there.. can i ask??
it's said to hide windows.. 'mouseup_2', 'h', 'joy_hide'
i only see for mouse 'mouseup' and 'mousedown'
is that thing meaning for scroll up down or right left click?
Øp!

Anima
Veteran
Posts: 448
Joined: Wed Nov 18, 2009 11:17 am
Completed: Loren
Projects: PS2
Location: Germany
Contact:

Re: adding close for textbox / dissappearing textbox

#6 Post by Anima »

mouseup_2 is the release of the middle mouse button. You need mouseup_3 for the right mouse button.
Avatar created with this deviation by Crysa
Currently working on:
  • Winterwolves "Planet Stronghold 2" - RPG Framework: Phase III

User avatar
fenol
Regular
Posts: 69
Joined: Sat Aug 27, 2011 10:33 am
Projects: Choroumachi | Vasileio
Organization: Zerorange
Deviantart: fenolijuna
Skype: fenol.ijuna
Soundcloud: fenol-ijuna
Contact:

Re: adding close for textbox / dissappearing textbox

#7 Post by fenol »

can you tell me where i can know all the meaning of that code? hmm specially for mouse..
i just get keyboard code explanation..
Øp!
Image
[ PIXIV ] [ deviantArt ]

Øp!

Soraminako
Veteran
Posts: 277
Joined: Sun Sep 04, 2011 1:36 am
Projects: A thingie without a title. With messy code.
Contact:

Re: adding close for textbox / dissappearing textbox

#8 Post by Soraminako »

Is there a place with a list of all the keys that do stuff in ren'py, like the "h" to toggle the textbox on and off, or the "s" to save screenshots? I couldn't find it if there was one, and it's very useful knowledge.
(Also, if there's a key to reload the game after saving changes to a.rpy file while making the game and testing things, it would be awesome!)
(I drew my avatar especially to express the scary feeling I get from the code as I type it... XD)

User avatar
Camille
Eileen-Class Veteran
Posts: 1227
Joined: Sat Apr 23, 2011 2:43 pm
Completed: Please see http://trash.moe
Projects: the head well lost
Organization: L3
Tumblr: narihira
Deviantart: crownwaltz
itch: lore
Contact:

Re: adding close for textbox / dissappearing textbox

#9 Post by Camille »

I don't know where a list of mouse controls is, but really all you need is the three mouseups, anyway... Left, center, and right, respectively.

The list of keys of stuff in Ren'Py is in the help file (README.html) that's bundled with every Ren'Py game. It's in the bottom part of the file under "Key and Mouse Bindings". Reloading a game (I think it only works if you have developer tools turned on) while saving changes to a .rpy file is shift+R.

Soraminako
Veteran
Posts: 277
Joined: Sun Sep 04, 2011 1:36 am
Projects: A thingie without a title. With messy code.
Contact:

Re: adding close for textbox / dissappearing textbox

#10 Post by Soraminako »

Camille wrote:I don't know where a list of mouse controls is, but really all you need is the three mouseups, anyway... Left, center, and right, respectively.

The list of keys of stuff in Ren'Py is in the help file (README.html) that's bundled with every Ren'Py game. It's in the bottom part of the file under "Key and Mouse Bindings". Reloading a game (I think it only works if you have developer tools turned on) while saving changes to a .rpy file is shift+R.
Thank you! :D The shift + R is something I was terribly needing. ^^;

Oh, doh! :shock: *had forgotten about the help file*
(I drew my avatar especially to express the scary feeling I get from the code as I type it... XD)

User avatar
fenol
Regular
Posts: 69
Joined: Sat Aug 27, 2011 10:33 am
Projects: Choroumachi | Vasileio
Organization: Zerorange
Deviantart: fenolijuna
Skype: fenol.ijuna
Soundcloud: fenol-ijuna
Contact:

Re: adding close for textbox / dissappearing textbox

#11 Post by fenol »

ah, zannen.. i can't find it too..
but arigatou~ this solved now~
Øp!
Image
[ PIXIV ] [ deviantArt ]

Øp!

User avatar
fenol
Regular
Posts: 69
Joined: Sat Aug 27, 2011 10:33 am
Projects: Choroumachi | Vasileio
Organization: Zerorange
Deviantart: fenolijuna
Skype: fenol.ijuna
Soundcloud: fenol-ijuna
Contact:

Re: [solved] adding close for textbox / dissappearing textbo

#12 Post by fenol »

ah sorry for bring it back again!! :'(

i've got error..

i put this on my option.rpy

Code: Select all

config.keymap = dict(hide_windows = [ 'mouseup_3', 'h' ])
but i got this
"Exception: Invalid key specifier skip"

what's the right code? or where should i put this? :'(
Øp!
Image
[ PIXIV ] [ deviantArt ]

Øp!

Anima
Veteran
Posts: 448
Joined: Wed Nov 18, 2009 11:17 am
Completed: Loren
Projects: PS2
Location: Germany
Contact:

Re: [solved] adding close for textbox / dissappearing textbo

#13 Post by Anima »

Code: Select all

config.keymap["hide_windows"] = ['mouseup_3', 'h' ]
That looks better, but I'm not sure if it will work correctly.
Avatar created with this deviation by Crysa
Currently working on:
  • Winterwolves "Planet Stronghold 2" - RPG Framework: Phase III

User avatar
fenol
Regular
Posts: 69
Joined: Sat Aug 27, 2011 10:33 am
Projects: Choroumachi | Vasileio
Organization: Zerorange
Deviantart: fenolijuna
Skype: fenol.ijuna
Soundcloud: fenol-ijuna
Contact:

Re: [solved] adding close for textbox / dissappearing textbo

#14 Post by fenol »

it's works now but though no error, neither works right. :'(
it still sent me to save screen.

i tried changed it and it works with 'mousedown_3', but everytime the textbox disappeared, the save screen appear again.

what should i do...
Øp!
Image
[ PIXIV ] [ deviantArt ]

Øp!

Anima
Veteran
Posts: 448
Joined: Wed Nov 18, 2009 11:17 am
Completed: Loren
Projects: PS2
Location: Germany
Contact:

Re: [solved] adding close for textbox / dissappearing textbo

#15 Post by Anima »

Try this:

Code: Select all

config.keymap["game_menu"] = [ 'K_ESCAPE',  'joy_menu' ]
Avatar created with this deviation by Crysa
Currently working on:
  • Winterwolves "Planet Stronghold 2" - RPG Framework: Phase III

Post Reply

Who is online

Users browsing this forum: No registered users