// Token: 0x06003748 RID: 14152 RVA: 0x00182500 File Offset: 0x00180900
 private static void onClickedUseButton(SleekButton button)
 {
     if (MenuSurvivorsClothingItemUI.packageBox.itemAsset != null && MenuSurvivorsClothingItemUI.packageBox.itemAsset.type == EItemType.KEY)
     {
         MenuSurvivorsClothingUI.setFilter(EEconFilterMode.STAT_TRACKER, MenuSurvivorsClothingItemUI.instance);
         MenuSurvivorsClothingUI.open();
         MenuSurvivorsClothingItemUI.close();
     }
     else if (MenuSurvivorsClothingItemUI.packageBox.itemAsset != null && MenuSurvivorsClothingItemUI.packageBox.itemAsset.type == EItemType.BOX)
     {
         MenuSurvivorsClothingBoxUI.viewItem(MenuSurvivorsClothingItemUI.item, MenuSurvivorsClothingItemUI.quantity, MenuSurvivorsClothingItemUI.instance);
         MenuSurvivorsClothingBoxUI.open();
         MenuSurvivorsClothingItemUI.close();
     }
     else
     {
         Characters.package(MenuSurvivorsClothingItemUI.instance);
         MenuSurvivorsClothingItemUI.viewItem();
     }
 }
Пример #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();
                }
            }
        }
Пример #3
0
 // Token: 0x06003759 RID: 14169 RVA: 0x00183A2D File Offset: 0x00181E2D
 private static void onClickedCancelFilterButton(SleekButton button)
 {
     MenuSurvivorsClothingUI.setFilter(EEconFilterMode.SEARCH, 0UL);
 }