public bool MouseHover(int x, int y, float frameDeltaTime)
{
if (_timeSinceClick < 10)
{
_timeSinceClick += frameDeltaTime;
}
if (x >= _xPos && x < _xPos + _width && y >= _yPos && y < _yPos + _height)
{
if (_pulse < 0.6f)
{
_pulse = 0.9f;
}
if (Enabled)
{
if (_direction)
{
_pulse += frameDeltaTime / 2;
if (_pulse > 0.9f)
{
_direction = !_direction;
_pulse = 0.9f;
}
}
else
{
_pulse -= frameDeltaTime / 2;
if (_pulse < 0.6f)
{
_direction = !_direction;
_pulse = 0.6f;
}
}
}
if (_toolTip != null)
{
_toolTip.SetShowing(true);
_toolTip.MouseHover(x, y, frameDeltaTime);
}
return true;
}
if (_pulse > 0)
{
_pulse -= frameDeltaTime * 2;
if (_pulse < 0)
{
_pulse = 0;
}
}
if (_toolTip != null)
{
_toolTip.SetShowing(false);
}
return false;
}