Esempio n. 1
0
        private void CloseCategoryMenu()
        {
            RemoveChild(CategoryMenu);
            CategoryMenu = null;

            SetItemsClickable(true);
        }
Esempio n. 2
0
        private void OpenCategoryMenu()
        {
            var chestData = Module.ChestDataManager.GetChestData(Chest);

            CategoryMenu          = new CategoryMenu(chestData, Module.ItemDataManager, TooltipManager);
            CategoryMenu.Position = new Point(
                ItemGrabMenu.xPositionOnScreen + ItemGrabMenu.width / 2 - CategoryMenu.Width / 2 - 6 * Game1.pixelZoom,
                ItemGrabMenu.yPositionOnScreen - 10 * Game1.pixelZoom
                );
            CategoryMenu.OnClose += CloseCategoryMenu;
            AddChild(CategoryMenu);

            SetItemsClickable(false);
        }
Esempio n. 3
0
        private void OpenCategoryMenu()
        {
            var chestData = Module.ChestDataManager.GetChestData(Chest);

            CategoryMenu          = new CategoryMenu(chestData, Module.ItemDataManager, TooltipManager, ItemGrabMenu.width - 24);
            CategoryMenu.Position = new Point(
                ItemGrabMenu.xPositionOnScreen - GlobalBounds.X - 12,
                ItemGrabMenu.yPositionOnScreen - GlobalBounds.Y - 60
                );

            CategoryMenu.OnClose += CloseCategoryMenu;
            AddChild(CategoryMenu);

            SetItemsClickable(false);
        }