Chatterer.chatterer.tooltips C# (CSharp) Method

tooltips() private method

private tooltips ( Rect pos ) : void
pos Rect
return void
        private void tooltips(Rect pos)
        {
            if (show_tooltips && GUI.tooltip != "")
            {
                float w = 5.5f * GUI.tooltip.Length;
                float x = (Event.current.mousePosition.x < pos.width / 2) ? Event.current.mousePosition.x + 10 : Event.current.mousePosition.x - 10 - w;
                GUI.Box(new Rect(x, Event.current.mousePosition.y, w, 25f), GUI.tooltip, gs_tooltip);
            }
        }
chatterer