Пример #1
0
        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();
        }
Пример #2
0
        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();
        }
Пример #3
0
 public CompostInventoryMenu(ComposterMenu menu, NutritionsComponent nutritionsComponent, List <Item> items) : base(menu, false, items)
 {
     this.nutritionsComponent = nutritionsComponent;
 }