public ComposterMenu(CompostingBin bin) { BinPos = new Vector2(bin.tileX, bin.tileY); nutritionsComponent = new NutritionsComponent(0, 0, 0, 0); cancelButton = new ClickableComponent(new Rectangle(), "cancel"); activateButton = new ClickableComponent(new Rectangle(), "activate"); applyButton = new ClickableComponent(new Rectangle(), "apply"); AddCompostItems(); resetGUI(); }
public ComposterMenu(CompostingBin bin) { BinPos = new Vector2(bin.tileX, bin.tileY); nutritionsComponent = new NutritionsComponent(0, 0, 0, 0); cancelButton = new ClickableComponent(new Rectangle(), "cancel"); activateButton = new ClickableComponent(new Rectangle(), "activate"); applyButton = new ClickableComponent(new Rectangle(), "apply"); AddCompostItems(); playerInventoryMenu = new PlayerInventoryMenu(this); compostInventoryMenu = new CompostInventoryMenu(this, nutritionsComponent, compostItems); compostInventoryMenu.SetOtherInventoryMenu(playerInventoryMenu); playerInventoryMenu.SetOtherInventoryMenu(compostInventoryMenu); ResetGUI(); SetState(); UpdateGreenTiles(); }
public CompostInventoryMenu(ComposterMenu menu, NutritionsComponent nutritionsComponent, List <Item> items) : base(menu, false, items) { this.nutritionsComponent = nutritionsComponent; }