Exemplo n.º 1
0
 /// <summary>
 /// Replace the menu.
 /// </summary>
 /// <param name="newMenu">The new menu to replace.</param>
 public void LoadMenu(IClickableMenu newMenu)
 {
     FridgeList = new FridgeVirtualList(this);
     if (!MenuEnabled)
     {
         return;
     }
     if (CookingSkillApi != null)
     {
         return;
     }
     Game1.activeClickableMenu = new RemoteFridgeCraftingPage(newMenu, this);
 }
Exemplo n.º 2
0
        public FridgeHandler(Texture2D fridgeSelectedIcon, Texture2D fridgeDeselectedIcon, bool offsetIcon,
                             Config config)
        {
            _config           = config;
            _offsetIcon       = offsetIcon;
            _fridgeSelected   = new ClickableTextureComponent(Rectangle.Empty, fridgeSelectedIcon, Rectangle.Empty, 1f);
            _fridgeDeselected =
                new ClickableTextureComponent(Rectangle.Empty, fridgeDeselectedIcon, Rectangle.Empty, 1f);

            MenuEnabled = true;
            Chests      = new HashSet <Chest>();
            FridgeList  = new FridgeVirtualList(this);
        }
Exemplo n.º 3
0
 public void UpdateFridgeContents()
 {
     FridgeList = new FridgeVirtualList(this);
 }