Ejemplo n.º 1
0
        // Token: 0x0600375E RID: 14174 RVA: 0x00183A9C File Offset: 0x00181E9C
        private static void onClickedCraftButton(SleekButton button)
        {
            if (MenuSurvivorsClothingUI.isCrafting)
            {
                return;
            }
            int num = MenuSurvivorsClothingUI.craftingScrollBox.search(button);

            if (num == -1)
            {
                return;
            }
            EconCraftOption econCraftOption = MenuSurvivorsClothingUI.ECON_CRAFT_OPTIONS[num];

            ulong[] array = new ulong[econCraftOption.scrapsNeeded];
            if (!Provider.provider.economyService.getInventoryPackages(19000, array))
            {
                return;
            }
            MenuSurvivorsClothingUI.prepareForCraftResult();
            Provider.provider.economyService.exchangeInventory(econCraftOption.generate, array);
        }
Ejemplo n.º 2
0
        // Token: 0x0600374F RID: 14159 RVA: 0x001826A8 File Offset: 0x00180AA8
        public MenuSurvivorsClothingUI()
        {
            MenuSurvivorsClothingUI.localization = Localization.read("/Menu/Survivors/MenuSurvivorsClothing.dat");
            if (MenuSurvivorsClothingUI.icons != null)
            {
                MenuSurvivorsClothingUI.icons.unload();
                MenuSurvivorsClothingUI.icons = null;
            }
            MenuSurvivorsClothingUI.icons     = Bundles.getBundle("/Bundles/Textures/Menu/Icons/Survivors/MenuSurvivorsClothing/MenuSurvivorsClothing.unity3d");
            MenuSurvivorsClothingUI.container = new Sleek();
            MenuSurvivorsClothingUI.container.positionOffset_X = 10;
            MenuSurvivorsClothingUI.container.positionOffset_Y = 10;
            MenuSurvivorsClothingUI.container.positionScale_Y  = 1f;
            MenuSurvivorsClothingUI.container.sizeOffset_X     = -20;
            MenuSurvivorsClothingUI.container.sizeOffset_Y     = -20;
            MenuSurvivorsClothingUI.container.sizeScale_X      = 1f;
            MenuSurvivorsClothingUI.container.sizeScale_Y      = 1f;
            MenuUI.container.add(MenuSurvivorsClothingUI.container);
            MenuSurvivorsClothingUI.active     = false;
            MenuSurvivorsClothingUI.page       = 0;
            MenuSurvivorsClothingUI.filterMode = EEconFilterMode.SEARCH;
            MenuSurvivorsClothingUI.inventory  = new Sleek();
            MenuSurvivorsClothingUI.inventory.positionOffset_Y = 40;
            MenuSurvivorsClothingUI.inventory.positionScale_X  = 0.5f;
            MenuSurvivorsClothingUI.inventory.sizeScale_X      = 0.5f;
            MenuSurvivorsClothingUI.inventory.sizeScale_Y      = 1f;
            MenuSurvivorsClothingUI.inventory.sizeOffset_Y     = -80;
            MenuSurvivorsClothingUI.inventory.constraint       = ESleekConstraint.XY;
            MenuSurvivorsClothingUI.container.add(MenuSurvivorsClothingUI.inventory);
            MenuSurvivorsClothingUI.crafting = new Sleek();
            MenuSurvivorsClothingUI.crafting.positionOffset_Y = 40;
            MenuSurvivorsClothingUI.crafting.positionScale_X  = 0.5f;
            MenuSurvivorsClothingUI.crafting.sizeScale_X      = 0.5f;
            MenuSurvivorsClothingUI.crafting.sizeScale_Y      = 1f;
            MenuSurvivorsClothingUI.crafting.sizeOffset_Y     = -80;
            MenuSurvivorsClothingUI.crafting.constraint       = ESleekConstraint.XY;
            MenuSurvivorsClothingUI.container.add(MenuSurvivorsClothingUI.crafting);
            MenuSurvivorsClothingUI.crafting.isVisible = false;
            MenuSurvivorsClothingUI.packageButtons     = new SleekInventory[25];
            for (int i = 0; i < MenuSurvivorsClothingUI.packageButtons.Length; i++)
            {
                SleekInventory sleekInventory = new SleekInventory();
                sleekInventory.positionOffset_X = 5;
                sleekInventory.positionOffset_Y = 5;
                sleekInventory.positionScale_X  = (float)(i % 5) * 0.2f;
                sleekInventory.positionScale_Y  = (float)Mathf.FloorToInt((float)i / 5f) * 0.2f;
                sleekInventory.sizeOffset_X     = -10;
                sleekInventory.sizeOffset_Y     = -10;
                sleekInventory.sizeScale_X      = 0.2f;
                sleekInventory.sizeScale_Y      = 0.2f;
                SleekInventory sleekInventory2 = sleekInventory;
                if (MenuSurvivorsClothingUI.< > f__mg$cache0 == null)
                {
                    MenuSurvivorsClothingUI.< > f__mg$cache0 = new ClickedInventory(MenuSurvivorsClothingUI.onClickedInventory);
                }
                sleekInventory2.onClickedInventory = MenuSurvivorsClothingUI.< > f__mg$cache0;
                MenuSurvivorsClothingUI.inventory.add(sleekInventory);
                MenuSurvivorsClothingUI.packageButtons[i] = sleekInventory;
            }
            MenuSurvivorsClothingUI.searchField = new SleekField();
            MenuSurvivorsClothingUI.searchField.positionOffset_X = 5;
            MenuSurvivorsClothingUI.searchField.positionOffset_Y = -35;
            MenuSurvivorsClothingUI.searchField.sizeOffset_X     = -120;
            MenuSurvivorsClothingUI.searchField.sizeOffset_Y     = 30;
            MenuSurvivorsClothingUI.searchField.sizeScale_X      = 1f;
            MenuSurvivorsClothingUI.searchField.hint             = MenuSurvivorsClothingUI.localization.format("Search_Field_Hint");
            MenuSurvivorsClothingUI.searchField.control          = "Search";
            SleekField sleekField = MenuSurvivorsClothingUI.searchField;
            Delegate   onEntered  = sleekField.onEntered;

            if (MenuSurvivorsClothingUI.< > f__mg$cache1 == null)
            {
                MenuSurvivorsClothingUI.< > f__mg$cache1 = new Entered(MenuSurvivorsClothingUI.onEnteredSearchField);
            }
            sleekField.onEntered = (Entered)Delegate.Combine(onEntered, MenuSurvivorsClothingUI.< > f__mg$cache1);
            MenuSurvivorsClothingUI.inventory.add(MenuSurvivorsClothingUI.searchField);
            MenuSurvivorsClothingUI.searchButton = new SleekButton();
            MenuSurvivorsClothingUI.searchButton.positionOffset_X = -105;
            MenuSurvivorsClothingUI.searchButton.positionOffset_Y = -35;
            MenuSurvivorsClothingUI.searchButton.positionScale_X  = 1f;
            MenuSurvivorsClothingUI.searchButton.sizeOffset_X     = 100;
            MenuSurvivorsClothingUI.searchButton.sizeOffset_Y     = 30;
            MenuSurvivorsClothingUI.searchButton.text             = MenuSurvivorsClothingUI.localization.format("Search");
            MenuSurvivorsClothingUI.searchButton.tooltip          = MenuSurvivorsClothingUI.localization.format("Search_Tooltip");
            SleekButton sleekButton = MenuSurvivorsClothingUI.searchButton;

            if (MenuSurvivorsClothingUI.< > f__mg$cache2 == null)
            {
                MenuSurvivorsClothingUI.< > f__mg$cache2 = new ClickedButton(MenuSurvivorsClothingUI.onClickedSearchButton);
            }
            sleekButton.onClickedButton = MenuSurvivorsClothingUI.< > f__mg$cache2;
            MenuSurvivorsClothingUI.inventory.add(MenuSurvivorsClothingUI.searchButton);
            MenuSurvivorsClothingUI.filterBox = new SleekBox();
            MenuSurvivorsClothingUI.filterBox.positionOffset_X = 5;
            MenuSurvivorsClothingUI.filterBox.positionOffset_Y = -35;
            MenuSurvivorsClothingUI.filterBox.sizeOffset_X     = -120;
            MenuSurvivorsClothingUI.filterBox.sizeOffset_Y     = 30;
            MenuSurvivorsClothingUI.filterBox.sizeScale_X      = 1f;
            MenuSurvivorsClothingUI.filterBox.isRich           = true;
            MenuSurvivorsClothingUI.inventory.add(MenuSurvivorsClothingUI.filterBox);
            MenuSurvivorsClothingUI.filterBox.isVisible = false;
            MenuSurvivorsClothingUI.cancelFilterButton  = new SleekButton();
            MenuSurvivorsClothingUI.cancelFilterButton.positionOffset_X = -105;
            MenuSurvivorsClothingUI.cancelFilterButton.positionOffset_Y = -35;
            MenuSurvivorsClothingUI.cancelFilterButton.positionScale_X  = 1f;
            MenuSurvivorsClothingUI.cancelFilterButton.sizeOffset_X     = 100;
            MenuSurvivorsClothingUI.cancelFilterButton.sizeOffset_Y     = 30;
            MenuSurvivorsClothingUI.cancelFilterButton.text             = MenuSurvivorsClothingUI.localization.format("Cancel_Filter");
            MenuSurvivorsClothingUI.cancelFilterButton.tooltip          = MenuSurvivorsClothingUI.localization.format("Cancel_Filter_Tooltip");
            SleekButton sleekButton2 = MenuSurvivorsClothingUI.cancelFilterButton;

            if (MenuSurvivorsClothingUI.< > f__mg$cache3 == null)
            {
                MenuSurvivorsClothingUI.< > f__mg$cache3 = new ClickedButton(MenuSurvivorsClothingUI.onClickedCancelFilterButton);
            }
            sleekButton2.onClickedButton = MenuSurvivorsClothingUI.< > f__mg$cache3;
            MenuSurvivorsClothingUI.inventory.add(MenuSurvivorsClothingUI.cancelFilterButton);
            MenuSurvivorsClothingUI.cancelFilterButton.isVisible = false;
            MenuSurvivorsClothingUI.pageBox = new SleekBox();
            MenuSurvivorsClothingUI.pageBox.positionOffset_X = -145;
            MenuSurvivorsClothingUI.pageBox.positionOffset_Y = 5;
            MenuSurvivorsClothingUI.pageBox.positionScale_X  = 1f;
            MenuSurvivorsClothingUI.pageBox.positionScale_Y  = 1f;
            MenuSurvivorsClothingUI.pageBox.sizeOffset_X     = 100;
            MenuSurvivorsClothingUI.pageBox.sizeOffset_Y     = 30;
            MenuSurvivorsClothingUI.pageBox.fontSize         = 14;
            MenuSurvivorsClothingUI.inventory.add(MenuSurvivorsClothingUI.pageBox);
            MenuSurvivorsClothingUI.infoBox = new SleekBox();
            MenuSurvivorsClothingUI.infoBox.positionOffset_X = 5;
            MenuSurvivorsClothingUI.infoBox.positionOffset_Y = -25;
            MenuSurvivorsClothingUI.infoBox.positionScale_Y  = 0.5f;
            MenuSurvivorsClothingUI.infoBox.sizeScale_X      = 1f;
            MenuSurvivorsClothingUI.infoBox.sizeOffset_X     = -10;
            MenuSurvivorsClothingUI.infoBox.sizeOffset_Y     = 50;
            MenuSurvivorsClothingUI.infoBox.text             = MenuSurvivorsClothingUI.localization.format("No_Items");
            MenuSurvivorsClothingUI.infoBox.fontSize         = 14;
            MenuSurvivorsClothingUI.inventory.add(MenuSurvivorsClothingUI.infoBox);
            MenuSurvivorsClothingUI.infoBox.isVisible                   = !Provider.provider.economyService.isInventoryAvailable;
            MenuSurvivorsClothingUI.leftButton                          = new SleekButtonIcon((Texture2D)MenuSurvivorsClothingUI.icons.load("Left"));
            MenuSurvivorsClothingUI.leftButton.positionOffset_X         = -185;
            MenuSurvivorsClothingUI.leftButton.positionOffset_Y         = 5;
            MenuSurvivorsClothingUI.leftButton.positionScale_X          = 1f;
            MenuSurvivorsClothingUI.leftButton.positionScale_Y          = 1f;
            MenuSurvivorsClothingUI.leftButton.sizeOffset_X             = 30;
            MenuSurvivorsClothingUI.leftButton.sizeOffset_Y             = 30;
            MenuSurvivorsClothingUI.leftButton.tooltip                  = MenuSurvivorsClothingUI.localization.format("Left_Tooltip");
            MenuSurvivorsClothingUI.leftButton.iconImage.backgroundTint = ESleekTint.FOREGROUND;
            SleekButton sleekButton3 = MenuSurvivorsClothingUI.leftButton;

            if (MenuSurvivorsClothingUI.< > f__mg$cache4 == null)
            {
                MenuSurvivorsClothingUI.< > f__mg$cache4 = new ClickedButton(MenuSurvivorsClothingUI.onClickedLeftButton);
            }
            sleekButton3.onClickedButton = MenuSurvivorsClothingUI.< > f__mg$cache4;
            MenuSurvivorsClothingUI.inventory.add(MenuSurvivorsClothingUI.leftButton);
            MenuSurvivorsClothingUI.rightButton = new SleekButtonIcon((Texture2D)MenuSurvivorsClothingUI.icons.load("Right"));
            MenuSurvivorsClothingUI.rightButton.positionOffset_X         = -35;
            MenuSurvivorsClothingUI.rightButton.positionOffset_Y         = 5;
            MenuSurvivorsClothingUI.rightButton.positionScale_X          = 1f;
            MenuSurvivorsClothingUI.rightButton.positionScale_Y          = 1f;
            MenuSurvivorsClothingUI.rightButton.sizeOffset_X             = 30;
            MenuSurvivorsClothingUI.rightButton.sizeOffset_Y             = 30;
            MenuSurvivorsClothingUI.rightButton.tooltip                  = MenuSurvivorsClothingUI.localization.format("Right_Tooltip");
            MenuSurvivorsClothingUI.rightButton.iconImage.backgroundTint = ESleekTint.FOREGROUND;
            SleekButton sleekButton4 = MenuSurvivorsClothingUI.rightButton;

            if (MenuSurvivorsClothingUI.< > f__mg$cache5 == null)
            {
                MenuSurvivorsClothingUI.< > f__mg$cache5 = new ClickedButton(MenuSurvivorsClothingUI.onClickedRightButton);
            }
            sleekButton4.onClickedButton = MenuSurvivorsClothingUI.< > f__mg$cache5;
            MenuSurvivorsClothingUI.inventory.add(MenuSurvivorsClothingUI.rightButton);
            MenuSurvivorsClothingUI.refreshButton = new SleekButtonIcon((Texture2D)MenuSurvivorsClothingUI.icons.load("Refresh"));
            MenuSurvivorsClothingUI.refreshButton.positionOffset_X         = 5;
            MenuSurvivorsClothingUI.refreshButton.positionOffset_Y         = 5;
            MenuSurvivorsClothingUI.refreshButton.positionScale_Y          = 1f;
            MenuSurvivorsClothingUI.refreshButton.sizeOffset_X             = 30;
            MenuSurvivorsClothingUI.refreshButton.sizeOffset_Y             = 30;
            MenuSurvivorsClothingUI.refreshButton.tooltip                  = MenuSurvivorsClothingUI.localization.format("Refresh_Tooltip");
            MenuSurvivorsClothingUI.refreshButton.iconImage.backgroundTint = ESleekTint.FOREGROUND;
            SleekButton sleekButton5 = MenuSurvivorsClothingUI.refreshButton;

            if (MenuSurvivorsClothingUI.< > f__mg$cache6 == null)
            {
                MenuSurvivorsClothingUI.< > f__mg$cache6 = new ClickedButton(MenuSurvivorsClothingUI.onClickedRefreshButton);
            }
            sleekButton5.onClickedButton = MenuSurvivorsClothingUI.< > f__mg$cache6;
            MenuSurvivorsClothingUI.inventory.add(MenuSurvivorsClothingUI.refreshButton);
            MenuSurvivorsClothingUI.characterSlider = new SleekSlider();
            MenuSurvivorsClothingUI.characterSlider.positionOffset_X = 45;
            MenuSurvivorsClothingUI.characterSlider.positionOffset_Y = 10;
            MenuSurvivorsClothingUI.characterSlider.positionScale_Y  = 1f;
            MenuSurvivorsClothingUI.characterSlider.sizeOffset_X     = -240;
            MenuSurvivorsClothingUI.characterSlider.sizeOffset_Y     = 20;
            MenuSurvivorsClothingUI.characterSlider.sizeScale_X      = 1f;
            MenuSurvivorsClothingUI.characterSlider.orientation      = ESleekOrientation.HORIZONTAL;
            SleekSlider sleekSlider = MenuSurvivorsClothingUI.characterSlider;

            if (MenuSurvivorsClothingUI.< > f__mg$cache7 == null)
            {
                MenuSurvivorsClothingUI.< > f__mg$cache7 = new Dragged(MenuSurvivorsClothingUI.onDraggedCharacterSlider);
            }
            sleekSlider.onDragged = MenuSurvivorsClothingUI.< > f__mg$cache7;
            MenuSurvivorsClothingUI.inventory.add(MenuSurvivorsClothingUI.characterSlider);
            MenuSurvivorsClothingUI.availableBox              = new SleekBox();
            MenuSurvivorsClothingUI.availableBox.sizeScale_X  = 1f;
            MenuSurvivorsClothingUI.availableBox.sizeOffset_Y = 30;
            MenuSurvivorsClothingUI.availableBox.isRich       = true;
            MenuSurvivorsClothingUI.crafting.add(MenuSurvivorsClothingUI.availableBox);
            MenuSurvivorsClothingUI.craftingScrollBox = new SleekScrollBox();
            MenuSurvivorsClothingUI.craftingScrollBox.positionOffset_Y = 40;
            MenuSurvivorsClothingUI.craftingScrollBox.sizeScale_X      = 1f;
            MenuSurvivorsClothingUI.craftingScrollBox.sizeScale_Y      = 1f;
            MenuSurvivorsClothingUI.craftingScrollBox.sizeOffset_Y     = -40;
            MenuSurvivorsClothingUI.crafting.add(MenuSurvivorsClothingUI.craftingScrollBox);
            MenuSurvivorsClothingUI.craftingButtons = new SleekButton[MenuSurvivorsClothingUI.ECON_CRAFT_OPTIONS.Length];
            for (int j = 0; j < MenuSurvivorsClothingUI.craftingButtons.Length; j++)
            {
                EconCraftOption econCraftOption = MenuSurvivorsClothingUI.ECON_CRAFT_OPTIONS[j];
                SleekButton     sleekButton6    = new SleekButton();
                sleekButton6.positionOffset_Y = j * 30;
                sleekButton6.sizeScale_X      = 1f;
                sleekButton6.sizeOffset_X     = -30;
                sleekButton6.sizeOffset_Y     = 30;
                sleekButton6.isRich           = true;
                sleekButton6.text             = ItemTool.filterRarityRichText(MenuSurvivorsClothingUI.localization.format("Craft_Entry", new object[]
                {
                    MenuSurvivorsClothingUI.localization.format(econCraftOption.token),
                    econCraftOption.scrapsNeeded
                }));
                SleekButton sleekButton7 = sleekButton6;
                if (MenuSurvivorsClothingUI.< > f__mg$cache8 == null)
                {
                    MenuSurvivorsClothingUI.< > f__mg$cache8 = new ClickedButton(MenuSurvivorsClothingUI.onClickedCraftButton);
                }
                sleekButton7.onClickedButton = MenuSurvivorsClothingUI.< > f__mg$cache8;
                MenuSurvivorsClothingUI.craftingScrollBox.add(sleekButton6);
                MenuSurvivorsClothingUI.craftingButtons[j] = sleekButton6;
            }
            MenuSurvivorsClothingUI.craftingScrollBox.area      = new Rect(0f, 0f, 5f, (float)(MenuSurvivorsClothingUI.ECON_CRAFT_OPTIONS.Length * 30));
            MenuSurvivorsClothingUI.backButton                  = new SleekButtonIcon((Texture2D)MenuDashboardUI.icons.load("Exit"));
            MenuSurvivorsClothingUI.backButton.positionOffset_Y = -50;
            MenuSurvivorsClothingUI.backButton.positionScale_Y  = 1f;
            MenuSurvivorsClothingUI.backButton.sizeOffset_X     = 200;
            MenuSurvivorsClothingUI.backButton.sizeOffset_Y     = 50;
            MenuSurvivorsClothingUI.backButton.text             = MenuDashboardUI.localization.format("BackButtonText");
            MenuSurvivorsClothingUI.backButton.tooltip          = MenuDashboardUI.localization.format("BackButtonTooltip");
            SleekButton sleekButton8 = MenuSurvivorsClothingUI.backButton;

            if (MenuSurvivorsClothingUI.< > f__mg$cache9 == null)
            {
                MenuSurvivorsClothingUI.< > f__mg$cache9 = new ClickedButton(MenuSurvivorsClothingUI.onClickedBackButton);
            }
            sleekButton8.onClickedButton = MenuSurvivorsClothingUI.< > f__mg$cache9;
            MenuSurvivorsClothingUI.backButton.fontSize = 14;
            MenuSurvivorsClothingUI.backButton.iconImage.backgroundTint = ESleekTint.FOREGROUND;
            MenuSurvivorsClothingUI.container.add(MenuSurvivorsClothingUI.backButton);
            MenuSurvivorsClothingUI.itemstoreButton = new SleekButton();
            MenuSurvivorsClothingUI.itemstoreButton.positionOffset_Y = -170;
            MenuSurvivorsClothingUI.itemstoreButton.positionScale_Y  = 1f;
            MenuSurvivorsClothingUI.itemstoreButton.sizeOffset_X     = 200;
            MenuSurvivorsClothingUI.itemstoreButton.sizeOffset_Y     = 50;
            MenuSurvivorsClothingUI.itemstoreButton.text             = MenuSurvivorsClothingUI.localization.format("Itemstore");
            MenuSurvivorsClothingUI.itemstoreButton.tooltip          = MenuSurvivorsClothingUI.localization.format("Itemstore_Tooltip");
            SleekButton sleekButton9 = MenuSurvivorsClothingUI.itemstoreButton;

            if (MenuSurvivorsClothingUI.< > f__mg$cacheA == null)
            {
                MenuSurvivorsClothingUI.< > f__mg$cacheA = new ClickedButton(MenuSurvivorsClothingUI.onClickedItemstoreButton);
            }
            sleekButton9.onClickedButton = MenuSurvivorsClothingUI.< > f__mg$cacheA;
            MenuSurvivorsClothingUI.itemstoreButton.fontSize = 14;
            MenuSurvivorsClothingUI.container.add(MenuSurvivorsClothingUI.itemstoreButton);
            MenuSurvivorsClothingUI.craftingButton = new SleekButtonIcon((Texture2D)MenuSurvivorsClothingUI.icons.load("Crafting"));
            MenuSurvivorsClothingUI.craftingButton.positionOffset_Y = -110;
            MenuSurvivorsClothingUI.craftingButton.positionScale_Y  = 1f;
            MenuSurvivorsClothingUI.craftingButton.sizeOffset_X     = 200;
            MenuSurvivorsClothingUI.craftingButton.sizeOffset_Y     = 50;
            MenuSurvivorsClothingUI.craftingButton.text             = MenuSurvivorsClothingUI.localization.format("Crafting");
            MenuSurvivorsClothingUI.craftingButton.tooltip          = MenuSurvivorsClothingUI.localization.format("Crafting_Tooltip");
            SleekButton sleekButton10 = MenuSurvivorsClothingUI.craftingButton;

            if (MenuSurvivorsClothingUI.< > f__mg$cacheB == null)
            {
                MenuSurvivorsClothingUI.< > f__mg$cacheB = new ClickedButton(MenuSurvivorsClothingUI.onClickedCraftingButton);
            }
            sleekButton10.onClickedButton = MenuSurvivorsClothingUI.< > f__mg$cacheB;
            MenuSurvivorsClothingUI.craftingButton.fontSize = 14;
            MenuSurvivorsClothingUI.craftingButton.iconImage.backgroundTint = ESleekTint.FOREGROUND;
            MenuSurvivorsClothingUI.container.add(MenuSurvivorsClothingUI.craftingButton);
            if (Provider.statusData.Stockpile.Has_New_Items)
            {
                SleekNew sleek = new SleekNew(false);
                MenuSurvivorsClothingUI.itemstoreButton.add(sleek);
            }
            if (Provider.statusData.Stockpile.Featured_Item != 0)
            {
                MenuSurvivorsClothingUI.featuredButton = new SleekButton();
                MenuSurvivorsClothingUI.featuredButton.positionOffset_Y = -230;
                MenuSurvivorsClothingUI.featuredButton.positionScale_Y  = 1f;
                MenuSurvivorsClothingUI.featuredButton.sizeOffset_X     = 200;
                MenuSurvivorsClothingUI.featuredButton.sizeOffset_Y     = 50;
                MenuSurvivorsClothingUI.featuredButton.text             = Provider.provider.economyService.getInventoryName(Provider.statusData.Stockpile.Featured_Item);
                MenuSurvivorsClothingUI.featuredButton.tooltip          = MenuSurvivorsClothingUI.localization.format("Featured_Tooltip");
                SleekButton sleekButton11 = MenuSurvivorsClothingUI.featuredButton;
                if (MenuSurvivorsClothingUI.< > f__mg$cacheC == null)
                {
                    MenuSurvivorsClothingUI.< > f__mg$cacheC = new ClickedButton(MenuSurvivorsClothingUI.onClickedFeaturedButton);
                }
                sleekButton11.onClickedButton = MenuSurvivorsClothingUI.< > f__mg$cacheC;
                MenuSurvivorsClothingUI.featuredButton.foregroundTint  = ESleekTint.NONE;
                MenuSurvivorsClothingUI.featuredButton.foregroundColor = Provider.provider.economyService.getInventoryColor(Provider.statusData.Stockpile.Featured_Item);
                MenuSurvivorsClothingUI.featuredButton.fontSize        = 14;
                MenuSurvivorsClothingUI.container.add(MenuSurvivorsClothingUI.featuredButton);
                SleekNew sleek2 = new SleekNew(false);
                MenuSurvivorsClothingUI.featuredButton.add(sleek2);
            }
            if (!MenuSurvivorsClothingUI.hasLoaded)
            {
                TempSteamworksEconomy economyService = Provider.provider.economyService;
                Delegate onInventoryExchanged        = economyService.onInventoryExchanged;
                if (MenuSurvivorsClothingUI.< > f__mg$cacheD == null)
                {
                    MenuSurvivorsClothingUI.< > f__mg$cacheD = new TempSteamworksEconomy.InventoryExchanged(MenuSurvivorsClothingUI.onInventoryExchanged);
                }
                economyService.onInventoryExchanged = (TempSteamworksEconomy.InventoryExchanged)Delegate.Combine(onInventoryExchanged, MenuSurvivorsClothingUI.< > f__mg$cacheD);
                TempSteamworksEconomy economyService2 = Provider.provider.economyService;
                Delegate onInventoryRefreshed         = economyService2.onInventoryRefreshed;
                if (MenuSurvivorsClothingUI.< > f__mg$cacheE == null)
                {
                    MenuSurvivorsClothingUI.< > f__mg$cacheE = new TempSteamworksEconomy.InventoryRefreshed(MenuSurvivorsClothingUI.onInventoryRefreshed);
                }
                economyService2.onInventoryRefreshed = (TempSteamworksEconomy.InventoryRefreshed)Delegate.Combine(onInventoryRefreshed, MenuSurvivorsClothingUI.< > f__mg$cacheE);
                TempSteamworksEconomy economyService3 = Provider.provider.economyService;
                Delegate onInventoryDropped           = economyService3.onInventoryDropped;
                if (MenuSurvivorsClothingUI.< > f__mg$cacheF == null)
                {
                    MenuSurvivorsClothingUI.< > f__mg$cacheF = new TempSteamworksEconomy.InventoryDropped(MenuSurvivorsClothingUI.onInventoryDropped);
                }
                economyService3.onInventoryDropped = (TempSteamworksEconomy.InventoryDropped)Delegate.Combine(onInventoryDropped, MenuSurvivorsClothingUI.< > f__mg$cacheF);
            }
            Delegate onCharacterUpdated = Characters.onCharacterUpdated;

            if (MenuSurvivorsClothingUI.< > f__mg$cache10 == null)
            {
                MenuSurvivorsClothingUI.< > f__mg$cache10 = new CharacterUpdated(MenuSurvivorsClothingUI.onCharacterUpdated);
            }
            Characters.onCharacterUpdated     = (CharacterUpdated)Delegate.Combine(onCharacterUpdated, MenuSurvivorsClothingUI.< > f__mg$cache10);
            MenuSurvivorsClothingUI.hasLoaded = true;
            MenuSurvivorsClothingUI.updateFilter();
            MenuSurvivorsClothingUI.updatePage();
            new MenuSurvivorsClothingItemUI();
            new MenuSurvivorsClothingInspectUI();
            new MenuSurvivorsClothingDeleteUI();
            new MenuSurvivorsClothingBoxUI();
        }