public InventoryPanel(string id, int x, int y, int width, int height, Color color) { _id = id; _x = x; _y = y; _width = width; _height = height; _panel = PrimRectangle.Create(x, y, width, height, color); }
public InfoPanel(string text, int x, int y, int width, int height, Color color, bool hasBorder) { _text = text; _x = x; _y = y; _width = width; _height = height; _color = color; _panel = PrimRectangle.Create(x, y, width, height, color); if (hasBorder) { _border = new PrimRectangle(x, y, width, height, Color.White, 1, 0, false); } }