public void AddItem(string text, Texture2D texture, Vector2 pos, Color c, MenuActionS a, string bpn) { int w = this.w - 6; items.Add(new MenuItemBlueprint(text, texture, new Vector2(pos.X + 3, pos.Y + 2), w, MenuItem.defaultHeight, true, c, this, a, bpn)); }
public MenuItemBlueprint(string text, Texture2D texture, Vector2 pos, int w, int h, bool selectable, Color c, Menu m, MenuActionS a, string bluePrintName) : base(text, texture, pos, w, h, selectable, c, m, delegate() { }) { this.bluePrintName = bluePrintName; action = a; }