Пример #1
0
 // Token: 0x06003753 RID: 14163 RVA: 0x001836D8 File Offset: 0x00181AD8
 public static void setFilter(EEconFilterMode newFilterMode, ulong newFilterInstigator)
 {
     MenuSurvivorsClothingUI.setCrafting(false);
     MenuSurvivorsClothingUI.filterMode                   = newFilterMode;
     MenuSurvivorsClothingUI.filterInstigator             = newFilterInstigator;
     MenuSurvivorsClothingUI.searchField.isVisible        = (MenuSurvivorsClothingUI.filterMode == EEconFilterMode.SEARCH);
     MenuSurvivorsClothingUI.searchButton.isVisible       = (MenuSurvivorsClothingUI.filterMode == EEconFilterMode.SEARCH);
     MenuSurvivorsClothingUI.filterBox.isVisible          = (MenuSurvivorsClothingUI.filterMode != EEconFilterMode.SEARCH);
     MenuSurvivorsClothingUI.cancelFilterButton.isVisible = (MenuSurvivorsClothingUI.filterMode != EEconFilterMode.SEARCH);
     if (MenuSurvivorsClothingUI.filterMode == EEconFilterMode.STAT_TRACKER)
     {
         int    inventoryItem  = Provider.provider.economyService.getInventoryItem(MenuSurvivorsClothingUI.filterInstigator);
         string inventoryName  = Provider.provider.economyService.getInventoryName(inventoryItem);
         Color  inventoryColor = Provider.provider.economyService.getInventoryColor(inventoryItem);
         string text           = string.Concat(new string[]
         {
             "<color=",
             Palette.hex(inventoryColor),
             ">",
             inventoryName,
             "</color>"
         });
         MenuSurvivorsClothingUI.filterBox.text = MenuSurvivorsClothingUI.localization.format("Filter_Item_Target", new object[]
         {
             text
         });
     }
     MenuSurvivorsClothingUI.updateFilterAndPage();
 }
Пример #2
0
 // Token: 0x06003768 RID: 14184 RVA: 0x00183FA9 File Offset: 0x001823A9
 private static void onClickedCraftingButton(SleekButton button)
 {
     MenuSurvivorsClothingUI.setCrafting(!MenuSurvivorsClothingUI.crafting.isVisible);
 }