PDA

View Full Version : button clicking detection



tsmpaul
July 26th, 2010, 01:40
Hi! I've been working on a ruleset, and I have a little problem that's been bothering me. On the story/image/personality/items pages:

When it shows the list of entries, and in the bottom right corner is the "NEW" button, I have moved the NEW button down and to the right a bit, from its original position, to fit in with my new frames.

My problem is, it is drawing the button at the right coordinates now, but it is still only detecting mouse clicks at the 'original' button location!

For example:
I have changed the 'new entry' button control at the bottom of adventure_story.xml, so it says:

<bounds>-52,-50,34,25</bounds>

And that draws the NEW button image at the right coordinates. Is there another place in the scripts that need coordinates to be changed, where it detects the mouse clicks?

It seems to detect a mouse click right on the left, top and right edges of the button, but the whole middle and the bottom of the button does nothing when clicked upon...

Thanks for any advice!

Moon Wizard
July 26th, 2010, 20:30
The button click detection is tied to the actual location of the control.

Is there perhaps another rogue control overlapping, or is your control off the edge of the sheet?

Regards,
JPG