Example #1
0
        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 (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();
                }
            }
        }
Example #2
0
 private static void onClickedUseButton(SleekButton button)
 {
     if (MenuSurvivorsClothingItemUI.packageBox.itemAsset == null)
     {
         return;
     }
     if (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();
     }
 }
 // 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();
     }
 }