playMaker

Author Topic: Show tooltip at runtime  (Read 2644 times)

logiquefloue

  • Playmaker Newbie
  • *
  • Posts: 35
Show tooltip at runtime
« on: August 30, 2013, 07:36:55 AM »
Hello,
I want to display a tooltip when the mouse hovers over a button or object of the game I can not find how to do this. Should I use Ngui for this?

Thank you for your help :)

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: Show tooltip at runtime
« Reply #1 on: August 30, 2013, 07:41:28 AM »
Well there are two aspects of getting it to work - the input and the UI

The input is easy, use the mouse pick event to check if the mouse is over the Button.

The UI could be done with any UI plugin or 3D element (all you have to do is test that the mouse over is the correct gameobject and then display the tooltip via the plugin or via gameobject activate (if you had 3D text already created with the tooltip parented to a gameobject). The UI part is up to you.

logiquefloue

  • Playmaker Newbie
  • *
  • Posts: 35
Re: Show tooltip at runtime
« Reply #2 on: August 30, 2013, 09:21:35 AM »
Thank you.

I actually have no problem with the inputs and logic. My problem is to create the tooltip ... So if I understand, playmaker has no action to create a tooltip? it must pass through a plugin.

action 'gui button' has a tooltip damage that tooltip appears only in the scene but not during the game!