How to make mouse unclickable and insensitive?

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
Yjga125
Newbie
Posts: 6
Joined: Sat Mar 18, 2017 8:47 pm
Contact:

How to make mouse unclickable and insensitive?

#1 Post by Yjga125 »

So, I have a situation where mouse shouldn't be clickable. How to make this?

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2400
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: How to make mouse unclickable and insensitive?

#2 Post by Ocelot »

I believe, the easiest way is to cover whole screen with invisible transparent button with NullAction.
< < insert Rick Cook quote here > >

Yjga125
Newbie
Posts: 6
Joined: Sat Mar 18, 2017 8:47 pm
Contact:

Re: How to make mouse unclickable and insensitive?

#3 Post by Yjga125 »

Ok, but what code of this screen should I use?

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2400
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: How to make mouse unclickable and insensitive?

#4 Post by Ocelot »

Someting like that:

Code: Select all

screen noclick():
    button:
        xysize (10000, 10000)
        action NullAction()
< < insert Rick Cook quote here > >

Yjga125
Newbie
Posts: 6
Joined: Sat Mar 18, 2017 8:47 pm
Contact:

Re: How to make mouse unclickable and insensitive?

#5 Post by Yjga125 »

Thank you so much! But, how to make this button transparent now?
Because this screen shouldn't seem like this, I think.
Attachments
Unnamed.jpg

User avatar
SethRiley
Regular
Posts: 35
Joined: Sat Mar 18, 2017 3:27 pm
Contact:

Re: How to make mouse unclickable and insensitive?

#6 Post by SethRiley »

Hi Yjga125 (^_^)/

You can make .png images transparent in Photoshop. Do you have that?

Also, this thread is about disabling left mouse click, though it is complicated and might not work:viewtopic.php?f=6&t=3461

philat
Eileen-Class Veteran
Posts: 1909
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: How to make mouse unclickable and insensitive?

#7 Post by philat »


Post Reply

Who is online

Users browsing this forum: Bing [Bot], geoWaffle