private bool isMouseOver = false;
void OnHover(bool isOver)
{
// ignore if the mouse is already over - this happens since the OnHover event happens when the button is clicked
if (isOver && isMouseOver) return;
if(isOver)
{
isMouseOver = true;
if(TrackedSkill == null)
return;
string tip = "[FF9900]" + TrackedSkill.skillName+ "[-]\n";
tip += "[ffffff]" + TrackedSkill.tooltipDescription(false)+ "[-]";
if(TrackedSkill.OwnedRank < TrackedSkill.maxRanks)
{
tip += "\n\n[cccccc]NEXT RANK[-]\n";
tip += "[FF9900]" + TrackedSkill.skillName+ "[-]\n";
tip += "[ffffff]" + TrackedSkill.tooltipDescription(true)+ "[-]";
}
UITooltip.ShowText(tip);
//return;
}
else
{
isMouseOver = false;
UITooltip.ShowText(null);
}
}