Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - slims

Pages: [1]
1
NGUI 3 Support / Display tooltip for a disabled box collider
« on: May 04, 2014, 06:07:29 PM »
My game is a turn based game where the player has control of various units, each of which have abilities that can be used by pressing corresponding buttons.  Hovering over the buttons will display a tool tip describing what the ability does.  When it's not a player's turn, I disable the ability buttons, so that they kind of grey out.  However, I still want the player to be able to view the tooltips for the ability buttons when it's not their turn.

I've tried adding another box collider on top of each button that never gets deactivated that serves at the collider for the tooltip, however, you can't have box colliders on top of each other since only the top one will ever receive events.

Does anyone know of a way I can achieve what I'm trying to do here in a non-complicated way using existing NGUI code? Specifically, always be able to view tooltips when hovering over a button, regardless of whether or not the button is disabled.

Pages: [1]