public GuiWidgetItemSlot createInventorySlot(Rectangle setBounds, Tuple<WidgetType, int> id, ItemRestriction type, Color[] colors, Player player) { GuiWidgetItemSlot widget; widget = new GuiWidgetItemSlot(setBounds, id, type, colors, player); widgets.Add(widget); return widget; }
public GuiWidgetItemSlot(Rectangle setBounds, Tuple <WidgetType, int> id, ItemRestriction restriction, Color[] colors, Player player) { this.id = id; bounds = setBounds; this.restriction = restriction; this.colors = colors; this.player = player; }
public GuiWidgetItemSlot(Rectangle setBounds, Tuple<WidgetType, int> id, ItemRestriction restriction, Color[] colors, Player player) { this.id = id; bounds = setBounds; this.restriction = restriction; this.colors = colors; this.player = player; }
public GuiWidgetItemSlot createInventorySlot(Rectangle setBounds, Tuple <WidgetType, int> id, ItemRestriction type, Color[] colors, Player player) { GuiWidgetItemSlot widget; widget = new GuiWidgetItemSlot(setBounds, id, type, colors, player); widgets.Add(widget); return(widget); }