Posted: 4th Dec 2011 0:18
I have a custom button that doesn't fill up the entire image file.
How do I set the size of the area that can be clicked.
Posted: 4th Dec 2011 2:05
I haven't actually used the button commands yet but SetVirtualButtonSize()?
Posted: 4th Dec 2011 2:33
That changes the size of the button sprite.
The extra space is still taken into account.
Posted: 4th Dec 2011 2:41
I see what you mean now. Well you could write a manual work around. Just a bit of bounds checking. Some pseudocode:
+ Code Snippet
if GetButtonPressed(button)
    if GetPointerX() < SomeNumber and GetPointerX() > AnotherNumber
       if GetPointerY() < SomeOtherNumber and GetPointerY() > OneMoreNumber
            // events go here
       endif
    endif
endif


Hope that makes sense? You'll have to do a bit of trial and error to work out those numbers though.
Posted: 4th Dec 2011 2:50
On second thought I might just fix them in photoshop haha
Posted: 4th Dec 2011 3:03
That too
Posted: 4th Dec 2011 12:41
Hi

You can make a png and use the transparent area you need to click around the colored button.

Regards