Ejemplo n.º 1
0
    protected override bool ReceiveCursorHover(int x, int y)
    {
        if (!MenuActive)
        {
            return(false);
        }

        btnAlmanac.tryHover(x, y, 0.25f);

        Hovering = btnAlmanac.containsPoint(x, y);
        if (Hovering && Tip == null)
        {
            Tip = SimpleHelper.Builder().Text(I18n.Almanac_Open()).GetLayout();
        }
        else if (!Hovering && Tip != null)
        {
            Tip = null;
        }

        return(Hovering);
    }