public void render(ref Graphics g) { // Don't render if worldbuilder is open if (WorldBuilder.Enabled) { return; } g.FillRectangle(Brushes.Gray, _BottomBar.GetGraphBounds(ref g)); _InvButton.SetAppendText("(" + Game.P.GetInventory().Size() + ")"); foreach (var b in _Buttons) { b.render(ref g); } }