INTERACT FORUM

More => Old Versions => Media Center 12 (Development Ended) => Topic started by: Mr ChriZ on July 20, 2006, 03:03:54 pm

Title: Custom Hit Boxes
Post by: Mr ChriZ on July 20, 2006, 03:03:54 pm
Quote
6. NEW: Skinning engine supports custom hit boxes for certain skin items. (implement by adding a 5th image to a skin item that defines the hit area)

Is there an example of this, or will this becoming?
Am I right in thinking that means that say if it's a round button,
it only changes state when the mouse is over the hit area?
Title: Re: Custom Hit Boxes
Post by: DarkPenguin on July 20, 2006, 03:57:38 pm
Take a look at the Noire skin.

Maximize.png, Minimize.png and Close.png are examples.  When checking if the mouse is over the control we check it against that last image.  The upshot is that if you have round buttons you can actually end up with round hit boxes.  (Hit circles, I guess.)