Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: weejohn on April 28, 2013, 05:10:34 AM

Title: Tooltips on UIButtonKeys
Post by: weejohn on April 28, 2013, 05:10:34 AM
Hello, I'am new to NGUI and looking for some help. I have disabled the mouse input and my menus are solely driven using the d-pad on an Xbox controller. I would like a tooltip or even a UIlabel to appear when the user navigates through each option/button on any panel.
Can I use UITooltip or is that for mouse input only? If I cannot is there a way for me to call a function when the UIButton is "highlighted" or on hover? I have tried using OnHover, however is seems to run once on highlighting the UIButton and then again when "leaving" the UIButton.

Many thanks for any advice offered
Title: Re: Tooltips on UIButtonKeys
Post by: ArenMook on April 28, 2013, 05:31:51 AM
UITooltip is for mouse input, and so is OnHover. You will write your own custom logic that will watch UICamera.selectedObject for changes.
Title: Re: Tooltips on UIButtonKeys
Post by: weejohn on April 28, 2013, 05:55:11 AM
Many thanks ArenMook for your swift reply. I'm actually a modeller who has picked the short straw to learn how to code and provide a GUI. I have some experience coding Unity using Java but C# is completely alien to me. I appreciate you are not here to do it all for me  :) so i'll need to find a solution that is within my abilities. I was not too bad at unity's OnGUI stuff, but NGUI is so much slicker - once your up to speed. Anyway thanks again for your swift response, I'm sure i'll be posting more today  ;)