FSO.Client.UI.Framework.UIElement.WillDraw C# (CSharp) Method

WillDraw() public method

Scans through parents to determine if this element will be drawn.
public WillDraw ( ) : bool
return bool
        public bool WillDraw()
        {
            UIElement elem = this;
            if (!elem.Visible) return false;
            while (elem.Parent != null) {
                elem = elem.Parent;
                if (!elem.Visible) return false;
            }
            return true; //we've reached the top and nothing is invisible!
        }