Q: How to disable right-click menu (SOLVED)

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.
Post Reply
Message
Author
Omegathorion
Newbie
Posts: 12
Joined: Thu Nov 15, 2012 6:35 pm
Contact:

Q: How to disable right-click menu (SOLVED)

#1 Post by Omegathorion » Wed Nov 28, 2012 4:25 pm

I've been trying to find a way to disable the right click menu, and I found this page:

http://www.renpy.org/wiki/renpy/doc/FAQ ... me_menu.3F

It says I need this line of code: $_game_menu_screen = None

However, I can't find out where to put that code. Do I put it in options.rpy, or screens.rpy? And where inside those documents?
Last edited by Omegathorion on Wed Nov 28, 2012 5:27 pm, edited 1 time in total.

User avatar
jghibiki
Regular
Posts: 125
Joined: Wed Sep 19, 2012 9:08 pm
Projects: Dream's Dénouement, Unannounced RPG framework, Renpy-Safe Logger
Organization: Team Anarky
IRC Nick: jghibiki
Location: Minnesota, US
Contact:

Re: Q: How to disable right-click menu

#2 Post by jghibiki » Wed Nov 28, 2012 4:58 pm

Don't quote me on this but i think because of the $ it means it is a variable that has already been made (to default yo true) and by adding that where ever(in the script) you want to disable the right-click it will disable it, put it at the top, under your start label in your script to disable it for that whole game, following the same logic, change the false to true and put it some where else in the script and it should re-enable the function(if you want to allow it variably, idk why you would though)
_______________________________________
jghibiki
Web/Twitter/Tumblr

Omegathorion
Newbie
Posts: 12
Joined: Thu Nov 15, 2012 6:35 pm
Contact:

Re: Q: How to disable right-click menu

#3 Post by Omegathorion » Wed Nov 28, 2012 5:27 pm

It works, thank you!

User avatar
jghibiki
Regular
Posts: 125
Joined: Wed Sep 19, 2012 9:08 pm
Projects: Dream's Dénouement, Unannounced RPG framework, Renpy-Safe Logger
Organization: Team Anarky
IRC Nick: jghibiki
Location: Minnesota, US
Contact:

Re: Q: How to disable right-click menu (SOLVED)

#4 Post by jghibiki » Wed Nov 28, 2012 5:47 pm

no problem :) glad I could help
_______________________________________
jghibiki
Web/Twitter/Tumblr

Post Reply

Who is online

Users browsing this forum: enaielei