Changing clickable area of inventory items? (SOLVED)

Started by sven, Sun 23/07/2006 14:50:28

Previous topic - Next topic

sven

My apologies if this is answered somewhere already, but I could not find it anywhere. The problem I am having is as follows:

I want to use sprites for inventory objects that are a bit larger than standard (100x100, to be exact). This is working fine and looks good, but the problem is that AGS will only register clicks on my inventory object in the top-left corner (I suspect it registers clicks in the top-left 50x50 pixels since that seems to be the standard size for inventory items). If the top-left of the picture is transparent, clicks are not registered at all. Is it possible to change the size of the inventory item's clickable area? Or am I restricted to using 50x50 (or whatever it is exactly) inventory items? I couldn't find anywhere in the settings or any script command that lets me change this.

Ashen

It's in the manual:
ItemHeight and ItemWidth properties. You can also set it in the Editor, on the InvWindow object's Properties box.
I know what you're thinking ... Don't think that.

sven


SMF spam blocked by CleanTalk