// Token: 0x0600374C RID: 14156 RVA: 0x0018261C File Offset: 0x00180A1C
 private static void onClickedScrapButton(SleekButton button)
 {
     if (Provider.provider.economyService.getInventoryMythicID(MenuSurvivorsClothingItemUI.item) != 0)
     {
         MenuSurvivorsClothingDeleteUI.viewItem(MenuSurvivorsClothingItemUI.item, MenuSurvivorsClothingItemUI.instance, EDeleteMode.SALVAGE, 0UL);
         MenuSurvivorsClothingDeleteUI.open();
         MenuSurvivorsClothingItemUI.close();
     }
     else
     {
         MenuSurvivorsClothingDeleteUI.salvageItem(MenuSurvivorsClothingItemUI.item, MenuSurvivorsClothingItemUI.instance);
         MenuSurvivorsClothingItemUI.onClickedBackButton(MenuSurvivorsClothingItemUI.backButton);
     }
 }
Exemple #2
0
        // Token: 0x06003756 RID: 14166 RVA: 0x0018381C File Offset: 0x00181C1C
        private static void onClickedInventory(SleekInventory button)
        {
            int num  = MenuSurvivorsClothingUI.packageButtons.Length * MenuSurvivorsClothingUI.page;
            int num2 = MenuSurvivorsClothingUI.inventory.search(button);

            if (num + num2 < MenuSurvivorsClothingUI.filteredItems.Count)
            {
                if (MenuSurvivorsClothingUI.filterMode == EEconFilterMode.STAT_TRACKER)
                {
                    MenuSurvivorsClothingDeleteUI.viewItem(MenuSurvivorsClothingUI.filteredItems[num + num2].m_iDefinition.m_SteamItemDef, MenuSurvivorsClothingUI.filteredItems[num + num2].m_itemId.m_SteamItemInstanceID, EDeleteMode.TAG_TOOL, MenuSurvivorsClothingUI.filterInstigator);
                    MenuSurvivorsClothingDeleteUI.open();
                    MenuSurvivorsClothingUI.setFilter(EEconFilterMode.SEARCH, 0UL);
                    MenuSurvivorsClothingUI.close();
                }
                else if (Input.GetKey(ControlsSettings.other) && MenuSurvivorsClothingUI.packageButtons[num2].itemAsset != null)
                {
                    if (MenuSurvivorsClothingUI.packageButtons[num2].itemAsset.type == EItemType.BOX)
                    {
                        MenuSurvivorsClothingItemUI.viewItem(MenuSurvivorsClothingUI.filteredItems[num + num2].m_iDefinition.m_SteamItemDef, MenuSurvivorsClothingUI.filteredItems[num + num2].m_unQuantity, MenuSurvivorsClothingUI.filteredItems[num + num2].m_itemId.m_SteamItemInstanceID);
                        MenuSurvivorsClothingBoxUI.viewItem(MenuSurvivorsClothingUI.filteredItems[num + num2].m_iDefinition.m_SteamItemDef, MenuSurvivorsClothingUI.filteredItems[num + num2].m_unQuantity, MenuSurvivorsClothingUI.filteredItems[num + num2].m_itemId.m_SteamItemInstanceID);
                        MenuSurvivorsClothingBoxUI.open();
                        MenuSurvivorsClothingUI.close();
                    }
                    else
                    {
                        Characters.package(MenuSurvivorsClothingUI.filteredItems[num + num2].m_itemId.m_SteamItemInstanceID);
                    }
                }
                else
                {
                    MenuSurvivorsClothingItemUI.viewItem(MenuSurvivorsClothingUI.filteredItems[num + num2].m_iDefinition.m_SteamItemDef, MenuSurvivorsClothingUI.filteredItems[num + num2].m_unQuantity, MenuSurvivorsClothingUI.filteredItems[num + num2].m_itemId.m_SteamItemInstanceID);
                    MenuSurvivorsClothingItemUI.open();
                    MenuSurvivorsClothingUI.close();
                }
            }
        }
Exemple #3
0
 private static void onClickedDeleteButton(SleekButton button)
 {
     MenuSurvivorsClothingDeleteUI.viewItem(MenuSurvivorsClothingItemUI.item, MenuSurvivorsClothingItemUI.instance);
     MenuSurvivorsClothingDeleteUI.open();
     MenuSurvivorsClothingItemUI.close();
 }