public override Item getOne() { var thisCopy = new Showcase(parentSheetIndex); Cloner.Instance.CopyData(base.getOne(), thisCopy); thisCopy.Initialize(); thisCopy.ItemProvider.AddRange(ItemProvider); return(thisCopy); }
public ShowcaseContainer( Showcase showcase, List <Item> items, int capacity, int rows, InventoryMenu.highlightThisItem isItemEnabled, bool allowColoring) : base(items, capacity, rows, null, isItemEnabled) { Items = items; this.SetFieldValue <behaviorOnItemChange>(ItemChangeBehaviorField, ProcessItemChanged); ItemsToGrabMenu.movePosition(0, (3 - rows) * Game1.tileSize); if (!allowColoring) { return; } ColorPicker = new ShowcaseColorPicker(xPositionOnScreen, yPositionOnScreen - Game1.tileSize - borderWidth * 2, showcase); }
public ShowcaseColorPicker(int xPosition, int yPosition, Showcase showcase) : base(xPosition, yPosition, 0, showcase) { Showcase = showcase; colorSelection = getSelectionFromColor(showcase.Color); }