Page 1 of 1

Sized ImageButtons?

Posted: Thu Jul 29, 2021 8:01 pm
by HypersDev
Hello all!

Is there a way to re-size image buttons to be a certain shape?

I am creating a point and click game, and I have only figured out how to add an image button in a certain bit of an image, instead of a certain area...
image_2021-07-30_010106.png
image_2021-07-30_010106.png (134.05 KiB) Viewed 1310 times
I want an image-button to be the size of this door, although I can only figure out how to do a pixel of it, instead of the whole thing.

Re: Sized ImageButtons?

Posted: Thu Jul 29, 2021 8:11 pm
by Ocelot
Step 1: make everything, but areas you want to be sensitive, transparent. Like that:
Image

Step 2: create an imagebutton using this image and place it in its proper place

Step 3: set focus_mask property to True: https://www.renpy.org/doc/html/style_pr ... focus_mask

Re: Sized ImageButtons?

Posted: Wed Aug 04, 2021 4:26 pm
by HypersDev
Ocelot wrote: Thu Jul 29, 2021 8:11 pm Step 1: make everything, but areas you want to be sensitive, transparent. Like that:
Image

Step 2: create an imagebutton using this image and place it in its proper place

Step 3: set focus_mask property to True: https://www.renpy.org/doc/html/style_pr ... focus_mask
That seems like a lot for something so trivial, I'll give it a shot though! ty