just a question about tooltips and ldb display mods - its up to them to actually show and hide the gametooltip when you enter and leave the object?
all i have to do is provide a myobject:OnTooltipShow( ) function for the display mod to call if i want something in the tooltip? and i dont do anything to hide the tooltip at all?
Note that your data object is not passed as the first parameter to OnTooltipShow as it is to every other member function. I don't know why this is, and it's annoying as hell, but that's how it works.
Generally speaking though, yes, you need only provide an OnTooltipShow, or an OnEnter and OnLeave. If you use OnTooltipShow, you don't need to worry about showing, anchoring, or hiding the tooltip, as the display addon should do that for you.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
all i have to do is provide a myobject:OnTooltipShow( ) function for the display mod to call if i want something in the tooltip? and i dont do anything to hide the tooltip at all?
Note that your data object is not passed as the first parameter to OnTooltipShow as it is to every other member function. I don't know why this is, and it's annoying as hell, but that's how it works.
Generally speaking though, yes, you need only provide an OnTooltipShow, or an OnEnter and OnLeave. If you use OnTooltipShow, you don't need to worry about showing, anchoring, or hiding the tooltip, as the display addon should do that for you.