INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Custom Hit Boxes  (Read 1259 times)

Mr ChriZ

  • Citizen of the Universe
  • *****
  • Posts: 4375
  • :-D
Custom Hit Boxes
« 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?

DarkPenguin

  • Citizen of the Universe
  • *****
  • Posts: 1921
Re: Custom Hit Boxes
« Reply #1 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.)
Logged
Pages: [1]   Go Up