private void Render() { if (StatMaster.hudHidden) { return; } foreach (var i in _interfaces) { if ( !(i.Target is UIContainer container) || !container.Display || container.UIObjects == null ) { continue; } var window = Renderer.CreateWindow( container.Position, container.Lines, container.Key, container.Title ); if (window != null) { container.Position = window.StartRender( () => OnRender(container, window) ); } } }