private static void onTypedNameField(SleekField field, string state)
 {
     if (EditorNodes.node != null && EditorNodes.node.type == ENodeType.LOCATION)
     {
         ((LocationNode)EditorNodes.node).name = state;
     }
 }
 private static void onDifficultyGUIDFieldTyped(SleekField field, string state)
 {
     if ((int)EditorSpawns.selectedZombie < LevelZombies.tables.Count)
     {
         LevelZombies.tables[(int)EditorSpawns.selectedZombie].difficultyGUID = state;
     }
 }
示例#3
0
 // Token: 0x060034BB RID: 13499 RVA: 0x0015B48F File Offset: 0x0015988F
 private static void onDifficultyGUIDFieldTyped(SleekField field, string state)
 {
     if (EditorNavigation.flag != null)
     {
         EditorNavigation.flag.data.difficultyGUID = state;
     }
 }
 // Token: 0x0600356B RID: 13675 RVA: 0x001656D4 File Offset: 0x00163AD4
 private static void onTypedTierNameField(SleekField field, string state)
 {
     if ((int)EditorSpawns.selectedVehicle < LevelVehicles.tables.Count && (int)EditorSpawnsVehiclesUI.selectedTier < LevelVehicles.tables[(int)EditorSpawns.selectedVehicle].tiers.Count)
     {
         LevelVehicles.tables[(int)EditorSpawns.selectedVehicle].tiers[(int)EditorSpawnsVehiclesUI.selectedTier].name = state;
         EditorSpawnsVehiclesUI.tierButtons[(int)EditorSpawnsVehiclesUI.selectedTier].text = state;
     }
 }
 private static void onTypedTableNameField(SleekField field, string state)
 {
     if ((int)EditorSpawns.selectedItem < LevelItems.tables.Count)
     {
         EditorSpawnsItemsUI.selectedBox.text = state;
         LevelItems.tables[(int)EditorSpawns.selectedItem].name = state;
         EditorSpawnsItemsUI.tableButtons[(int)EditorSpawns.selectedItem].text = EditorSpawns.selectedItem + " " + state;
     }
 }
 private static void onTypedNameField(SleekField field, string state)
 {
     if ((int)EditorSpawns.selectedAnimal < LevelAnimals.tables.Count)
     {
         EditorSpawnsAnimalsUI.selectedBox.text = state;
         LevelAnimals.tables[(int)EditorSpawns.selectedAnimal].name = state;
         EditorSpawnsAnimalsUI.tableButtons[(int)EditorSpawns.selectedAnimal].text = EditorSpawns.selectedAnimal + " " + state;
     }
 }
 // Token: 0x06003568 RID: 13672 RVA: 0x001655CC File Offset: 0x001639CC
 private static void onTypedNameField(SleekField field, string state)
 {
     if ((int)EditorSpawns.selectedVehicle < LevelVehicles.tables.Count)
     {
         EditorSpawnsVehiclesUI.selectedBox.text = state;
         LevelVehicles.tables[(int)EditorSpawns.selectedVehicle].name = state;
         EditorSpawnsVehiclesUI.tableButtons[(int)EditorSpawns.selectedVehicle].text = EditorSpawns.selectedVehicle + " " + state;
     }
 }
示例#8
0
 private static void onEnteredSearchField(SleekField field)
 {
     MenuSurvivorsClothingUI.updateFilter();
     if (MenuSurvivorsClothingUI.page >= MenuSurvivorsClothingUI.pages)
     {
         MenuSurvivorsClothingUI.page = MenuSurvivorsClothingUI.pages - 1;
     }
     MenuSurvivorsClothingUI.updatePage();
 }
示例#9
0
        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.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.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.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 sleekButton2 = MenuSurvivorsClothingUI.leftButton;

            if (MenuSurvivorsClothingUI.< > f__mg$cache3 == null)
            {
                MenuSurvivorsClothingUI.< > f__mg$cache3 = new ClickedButton(MenuSurvivorsClothingUI.onClickedLeftButton);
            }
            sleekButton2.onClickedButton = MenuSurvivorsClothingUI.< > f__mg$cache3;
            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 sleekButton3 = MenuSurvivorsClothingUI.rightButton;

            if (MenuSurvivorsClothingUI.< > f__mg$cache4 == null)
            {
                MenuSurvivorsClothingUI.< > f__mg$cache4 = new ClickedButton(MenuSurvivorsClothingUI.onClickedRightButton);
            }
            sleekButton3.onClickedButton = MenuSurvivorsClothingUI.< > f__mg$cache4;
            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 sleekButton4 = MenuSurvivorsClothingUI.refreshButton;

            if (MenuSurvivorsClothingUI.< > f__mg$cache5 == null)
            {
                MenuSurvivorsClothingUI.< > f__mg$cache5 = new ClickedButton(MenuSurvivorsClothingUI.onClickedRefreshButton);
            }
            sleekButton4.onClickedButton = MenuSurvivorsClothingUI.< > f__mg$cache5;
            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$cache6 == null)
            {
                MenuSurvivorsClothingUI.< > f__mg$cache6 = new Dragged(MenuSurvivorsClothingUI.onDraggedCharacterSlider);
            }
            sleekSlider.onDragged = MenuSurvivorsClothingUI.< > f__mg$cache6;
            MenuSurvivorsClothingUI.inventory.add(MenuSurvivorsClothingUI.characterSlider);
            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 sleekButton5 = MenuSurvivorsClothingUI.backButton;

            if (MenuSurvivorsClothingUI.< > f__mg$cache7 == null)
            {
                MenuSurvivorsClothingUI.< > f__mg$cache7 = new ClickedButton(MenuSurvivorsClothingUI.onClickedBackButton);
            }
            sleekButton5.onClickedButton = MenuSurvivorsClothingUI.< > f__mg$cache7;
            MenuSurvivorsClothingUI.backButton.fontSize = 14;
            MenuSurvivorsClothingUI.backButton.iconImage.backgroundTint = ESleekTint.FOREGROUND;
            MenuSurvivorsClothingUI.container.add(MenuSurvivorsClothingUI.backButton);
            MenuSurvivorsClothingUI.itemstoreButton = new SleekButton();
            MenuSurvivorsClothingUI.itemstoreButton.positionOffset_Y = -110;
            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 sleekButton6 = MenuSurvivorsClothingUI.itemstoreButton;

            if (MenuSurvivorsClothingUI.< > f__mg$cache8 == null)
            {
                MenuSurvivorsClothingUI.< > f__mg$cache8 = new ClickedButton(MenuSurvivorsClothingUI.onClickedItemstoreButton);
            }
            sleekButton6.onClickedButton = MenuSurvivorsClothingUI.< > f__mg$cache8;
            MenuSurvivorsClothingUI.itemstoreButton.fontSize = 14;
            MenuSurvivorsClothingUI.container.add(MenuSurvivorsClothingUI.itemstoreButton);
            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 = -170;
                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 sleekButton7 = MenuSurvivorsClothingUI.featuredButton;
                if (MenuSurvivorsClothingUI.< > f__mg$cache9 == null)
                {
                    MenuSurvivorsClothingUI.< > f__mg$cache9 = new ClickedButton(MenuSurvivorsClothingUI.onClickedFeaturedButton);
                }
                sleekButton7.onClickedButton = MenuSurvivorsClothingUI.< > f__mg$cache9;
                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 onInventoryRefreshed        = economyService.onInventoryRefreshed;
                if (MenuSurvivorsClothingUI.< > f__mg$cacheA == null)
                {
                    MenuSurvivorsClothingUI.< > f__mg$cacheA = new TempSteamworksEconomy.InventoryRefreshed(MenuSurvivorsClothingUI.onInventoryRefreshed);
                }
                economyService.onInventoryRefreshed = (TempSteamworksEconomy.InventoryRefreshed)Delegate.Combine(onInventoryRefreshed, MenuSurvivorsClothingUI.< > f__mg$cacheA);
                TempSteamworksEconomy economyService2 = Provider.provider.economyService;
                Delegate onInventoryDropped           = economyService2.onInventoryDropped;
                if (MenuSurvivorsClothingUI.< > f__mg$cacheB == null)
                {
                    MenuSurvivorsClothingUI.< > f__mg$cacheB = new TempSteamworksEconomy.InventoryDropped(MenuSurvivorsClothingUI.onInventoryDropped);
                }
                economyService2.onInventoryDropped = (TempSteamworksEconomy.InventoryDropped)Delegate.Combine(onInventoryDropped, MenuSurvivorsClothingUI.< > f__mg$cacheB);
            }
            Delegate onCharacterUpdated = Characters.onCharacterUpdated;

            if (MenuSurvivorsClothingUI.< > f__mg$cacheC == null)
            {
                MenuSurvivorsClothingUI.< > f__mg$cacheC = new CharacterUpdated(MenuSurvivorsClothingUI.onCharacterUpdated);
            }
            Characters.onCharacterUpdated     = (CharacterUpdated)Delegate.Combine(onCharacterUpdated, MenuSurvivorsClothingUI.< > f__mg$cacheC);
            MenuSurvivorsClothingUI.hasLoaded = true;
            MenuSurvivorsClothingUI.updateFilter();
            MenuSurvivorsClothingUI.updatePage();
            new MenuSurvivorsClothingItemUI();
            new MenuSurvivorsClothingInspectUI();
            new MenuSurvivorsClothingDeleteUI();
            new MenuSurvivorsClothingBoxUI();
        }
示例#10
0
 private static void onTypedNickField(SleekField field, string text)
 {
     Characters.renick(text);
 }
示例#11
0
        public EditorLevelObjectsUI()
        {
            Local  local  = Localization.read("/Editor/EditorLevelObjects.dat");
            Bundle bundle = Bundles.getBundle("/Bundles/Textures/Edit/Icons/EditorLevelObjects/EditorLevelObjects.unity3d");

            EditorLevelObjectsUI.container = new Sleek();
            EditorLevelObjectsUI.container.positionOffset_X = 10;
            EditorLevelObjectsUI.container.positionOffset_Y = 10;
            EditorLevelObjectsUI.container.positionScale_X  = 1f;
            EditorLevelObjectsUI.container.sizeOffset_X     = -20;
            EditorLevelObjectsUI.container.sizeOffset_Y     = -20;
            EditorLevelObjectsUI.container.sizeScale_X      = 1f;
            EditorLevelObjectsUI.container.sizeScale_Y      = 1f;
            EditorUI.window.add(EditorLevelObjectsUI.container);
            EditorLevelObjectsUI.active      = false;
            EditorLevelObjectsUI.assets      = new List <Asset>();
            EditorLevelObjectsUI.selectedBox = new SleekBox();
            EditorLevelObjectsUI.selectedBox.positionOffset_X = -230;
            EditorLevelObjectsUI.selectedBox.positionOffset_Y = 80;
            EditorLevelObjectsUI.selectedBox.positionScale_X  = 1f;
            EditorLevelObjectsUI.selectedBox.sizeOffset_X     = 230;
            EditorLevelObjectsUI.selectedBox.sizeOffset_Y     = 30;
            EditorLevelObjectsUI.selectedBox.addLabel(local.format("SelectionBoxLabelText"), ESleekSide.LEFT);
            EditorLevelObjectsUI.container.add(EditorLevelObjectsUI.selectedBox);
            EditorLevelObjectsUI.searchField = new SleekField();
            EditorLevelObjectsUI.searchField.positionOffset_X = -230;
            EditorLevelObjectsUI.searchField.positionOffset_Y = 120;
            EditorLevelObjectsUI.searchField.positionScale_X  = 1f;
            EditorLevelObjectsUI.searchField.sizeOffset_X     = 160;
            EditorLevelObjectsUI.searchField.sizeOffset_Y     = 30;
            EditorLevelObjectsUI.searchField.hint             = local.format("Search_Field_Hint");
            EditorLevelObjectsUI.searchField.control          = "Search";
            SleekField sleekField = EditorLevelObjectsUI.searchField;

            if (EditorLevelObjectsUI.< > f__mg$cache1 == null)
            {
                EditorLevelObjectsUI.< > f__mg$cache1 = new Entered(EditorLevelObjectsUI.onEnteredSearchField);
            }
            sleekField.onEntered = EditorLevelObjectsUI.< > f__mg$cache1;
            EditorLevelObjectsUI.container.add(EditorLevelObjectsUI.searchField);
            EditorLevelObjectsUI.searchButton = new SleekButton();
            EditorLevelObjectsUI.searchButton.positionOffset_X = -60;
            EditorLevelObjectsUI.searchButton.positionOffset_Y = 120;
            EditorLevelObjectsUI.searchButton.positionScale_X  = 1f;
            EditorLevelObjectsUI.searchButton.sizeOffset_X     = 60;
            EditorLevelObjectsUI.searchButton.sizeOffset_Y     = 30;
            EditorLevelObjectsUI.searchButton.text             = local.format("Search");
            EditorLevelObjectsUI.searchButton.tooltip          = local.format("Search_Tooltip");
            SleekButton sleekButton = EditorLevelObjectsUI.searchButton;

            if (EditorLevelObjectsUI.< > f__mg$cache2 == null)
            {
                EditorLevelObjectsUI.< > f__mg$cache2 = new ClickedButton(EditorLevelObjectsUI.onClickedSearchButton);
            }
            sleekButton.onClickedButton = EditorLevelObjectsUI.< > f__mg$cache2;
            EditorLevelObjectsUI.container.add(EditorLevelObjectsUI.searchButton);
            EditorLevelObjectsUI.largeToggle = new SleekToggle();
            EditorLevelObjectsUI.largeToggle.positionOffset_X = -230;
            EditorLevelObjectsUI.largeToggle.positionOffset_Y = 160;
            EditorLevelObjectsUI.largeToggle.positionScale_X  = 1f;
            EditorLevelObjectsUI.largeToggle.sizeOffset_X     = 40;
            EditorLevelObjectsUI.largeToggle.sizeOffset_Y     = 40;
            EditorLevelObjectsUI.largeToggle.addLabel(local.format("LargeLabel"), ESleekSide.RIGHT);
            EditorLevelObjectsUI.largeToggle.state = true;
            SleekToggle sleekToggle = EditorLevelObjectsUI.largeToggle;

            if (EditorLevelObjectsUI.< > f__mg$cache3 == null)
            {
                EditorLevelObjectsUI.< > f__mg$cache3 = new Toggled(EditorLevelObjectsUI.onToggledLargeToggle);
            }
            sleekToggle.onToggled = EditorLevelObjectsUI.< > f__mg$cache3;
            EditorLevelObjectsUI.container.add(EditorLevelObjectsUI.largeToggle);
            EditorLevelObjectsUI.mediumToggle = new SleekToggle();
            EditorLevelObjectsUI.mediumToggle.positionOffset_X = -230;
            EditorLevelObjectsUI.mediumToggle.positionOffset_Y = 210;
            EditorLevelObjectsUI.mediumToggle.positionScale_X  = 1f;
            EditorLevelObjectsUI.mediumToggle.sizeOffset_X     = 40;
            EditorLevelObjectsUI.mediumToggle.sizeOffset_Y     = 40;
            EditorLevelObjectsUI.mediumToggle.addLabel(local.format("MediumLabel"), ESleekSide.RIGHT);
            EditorLevelObjectsUI.mediumToggle.state = true;
            SleekToggle sleekToggle2 = EditorLevelObjectsUI.mediumToggle;

            if (EditorLevelObjectsUI.< > f__mg$cache4 == null)
            {
                EditorLevelObjectsUI.< > f__mg$cache4 = new Toggled(EditorLevelObjectsUI.onToggledMediumToggle);
            }
            sleekToggle2.onToggled = EditorLevelObjectsUI.< > f__mg$cache4;
            EditorLevelObjectsUI.container.add(EditorLevelObjectsUI.mediumToggle);
            EditorLevelObjectsUI.smallToggle = new SleekToggle();
            EditorLevelObjectsUI.smallToggle.positionOffset_X = -230;
            EditorLevelObjectsUI.smallToggle.positionOffset_Y = 260;
            EditorLevelObjectsUI.smallToggle.positionScale_X  = 1f;
            EditorLevelObjectsUI.smallToggle.sizeOffset_X     = 40;
            EditorLevelObjectsUI.smallToggle.sizeOffset_Y     = 40;
            EditorLevelObjectsUI.smallToggle.addLabel(local.format("SmallLabel"), ESleekSide.RIGHT);
            EditorLevelObjectsUI.smallToggle.state = true;
            SleekToggle sleekToggle3 = EditorLevelObjectsUI.smallToggle;

            if (EditorLevelObjectsUI.< > f__mg$cache5 == null)
            {
                EditorLevelObjectsUI.< > f__mg$cache5 = new Toggled(EditorLevelObjectsUI.onToggledSmallToggle);
            }
            sleekToggle3.onToggled = EditorLevelObjectsUI.< > f__mg$cache5;
            EditorLevelObjectsUI.container.add(EditorLevelObjectsUI.smallToggle);
            EditorLevelObjectsUI.barricadesToggle = new SleekToggle();
            EditorLevelObjectsUI.barricadesToggle.positionOffset_X = -130;
            EditorLevelObjectsUI.barricadesToggle.positionOffset_Y = 160;
            EditorLevelObjectsUI.barricadesToggle.positionScale_X  = 1f;
            EditorLevelObjectsUI.barricadesToggle.sizeOffset_X     = 40;
            EditorLevelObjectsUI.barricadesToggle.sizeOffset_Y     = 40;
            EditorLevelObjectsUI.barricadesToggle.addLabel(local.format("BarricadesLabel"), ESleekSide.RIGHT);
            EditorLevelObjectsUI.barricadesToggle.state = true;
            SleekToggle sleekToggle4 = EditorLevelObjectsUI.barricadesToggle;

            if (EditorLevelObjectsUI.< > f__mg$cache6 == null)
            {
                EditorLevelObjectsUI.< > f__mg$cache6 = new Toggled(EditorLevelObjectsUI.onToggledBarricadesToggle);
            }
            sleekToggle4.onToggled = EditorLevelObjectsUI.< > f__mg$cache6;
            EditorLevelObjectsUI.container.add(EditorLevelObjectsUI.barricadesToggle);
            EditorLevelObjectsUI.structuresToggle = new SleekToggle();
            EditorLevelObjectsUI.structuresToggle.positionOffset_X = -130;
            EditorLevelObjectsUI.structuresToggle.positionOffset_Y = 210;
            EditorLevelObjectsUI.structuresToggle.positionScale_X  = 1f;
            EditorLevelObjectsUI.structuresToggle.sizeOffset_X     = 40;
            EditorLevelObjectsUI.structuresToggle.sizeOffset_Y     = 40;
            EditorLevelObjectsUI.structuresToggle.addLabel(local.format("StructuresLabel"), ESleekSide.RIGHT);
            EditorLevelObjectsUI.structuresToggle.state = true;
            SleekToggle sleekToggle5 = EditorLevelObjectsUI.structuresToggle;

            if (EditorLevelObjectsUI.< > f__mg$cache7 == null)
            {
                EditorLevelObjectsUI.< > f__mg$cache7 = new Toggled(EditorLevelObjectsUI.onToggledStructuresToggle);
            }
            sleekToggle5.onToggled = EditorLevelObjectsUI.< > f__mg$cache7;
            EditorLevelObjectsUI.container.add(EditorLevelObjectsUI.structuresToggle);
            EditorLevelObjectsUI.npcsToggle = new SleekToggle();
            EditorLevelObjectsUI.npcsToggle.positionOffset_X = -130;
            EditorLevelObjectsUI.npcsToggle.positionOffset_Y = 260;
            EditorLevelObjectsUI.npcsToggle.positionScale_X  = 1f;
            EditorLevelObjectsUI.npcsToggle.sizeOffset_X     = 40;
            EditorLevelObjectsUI.npcsToggle.sizeOffset_Y     = 40;
            EditorLevelObjectsUI.npcsToggle.addLabel(local.format("NPCsLabel"), ESleekSide.RIGHT);
            EditorLevelObjectsUI.npcsToggle.state = true;
            SleekToggle sleekToggle6 = EditorLevelObjectsUI.npcsToggle;

            if (EditorLevelObjectsUI.< > f__mg$cache8 == null)
            {
                EditorLevelObjectsUI.< > f__mg$cache8 = new Toggled(EditorLevelObjectsUI.onToggledNPCsToggle);
            }
            sleekToggle6.onToggled = EditorLevelObjectsUI.< > f__mg$cache8;
            EditorLevelObjectsUI.container.add(EditorLevelObjectsUI.npcsToggle);
            EditorLevelObjectsUI.assetsScrollBox = new SleekScrollBox();
            EditorLevelObjectsUI.assetsScrollBox.positionOffset_X = -230;
            EditorLevelObjectsUI.assetsScrollBox.positionOffset_Y = 310;
            EditorLevelObjectsUI.assetsScrollBox.positionScale_X  = 1f;
            EditorLevelObjectsUI.assetsScrollBox.sizeOffset_X     = 230;
            EditorLevelObjectsUI.assetsScrollBox.sizeOffset_Y     = -310;
            EditorLevelObjectsUI.assetsScrollBox.sizeScale_Y      = 1f;
            EditorLevelObjectsUI.container.add(EditorLevelObjectsUI.assetsScrollBox);
            EditorObjects.selectedObjectAsset = null;
            EditorObjects.selectedItemAsset   = null;
            if (EditorLevelObjectsUI.< > f__mg$cache9 == null)
            {
                EditorLevelObjectsUI.< > f__mg$cache9 = new DragStarted(EditorLevelObjectsUI.onDragStarted);
            }
            EditorObjects.onDragStarted = EditorLevelObjectsUI.< > f__mg$cache9;
            if (EditorLevelObjectsUI.< > f__mg$cacheA == null)
            {
                EditorLevelObjectsUI.< > f__mg$cacheA = new DragStopped(EditorLevelObjectsUI.onDragStopped);
            }
            EditorObjects.onDragStopped  = EditorLevelObjectsUI.< > f__mg$cacheA;
            EditorLevelObjectsUI.dragBox = new SleekBox();
            EditorUI.window.add(EditorLevelObjectsUI.dragBox);
            EditorLevelObjectsUI.dragBox.isVisible  = false;
            EditorLevelObjectsUI.snapTransformField = new SleekSingleField();
            EditorLevelObjectsUI.snapTransformField.positionOffset_Y = -230;
            EditorLevelObjectsUI.snapTransformField.positionScale_Y  = 1f;
            EditorLevelObjectsUI.snapTransformField.sizeOffset_X     = 200;
            EditorLevelObjectsUI.snapTransformField.sizeOffset_Y     = 30;
            EditorLevelObjectsUI.snapTransformField.text             = (Mathf.Floor(EditorObjects.snapTransform * 100f) / 100f).ToString();
            EditorLevelObjectsUI.snapTransformField.addLabel(local.format("SnapTransformLabelText"), ESleekSide.RIGHT);
            SleekSingleField sleekSingleField = EditorLevelObjectsUI.snapTransformField;

            if (EditorLevelObjectsUI.< > f__mg$cacheB == null)
            {
                EditorLevelObjectsUI.< > f__mg$cacheB = new TypedSingle(EditorLevelObjectsUI.onTypedSnapTransformField);
            }
            sleekSingleField.onTypedSingle = EditorLevelObjectsUI.< > f__mg$cacheB;
            EditorLevelObjectsUI.container.add(EditorLevelObjectsUI.snapTransformField);
            EditorLevelObjectsUI.snapRotationField = new SleekSingleField();
            EditorLevelObjectsUI.snapRotationField.positionOffset_Y = -190;
            EditorLevelObjectsUI.snapRotationField.positionScale_Y  = 1f;
            EditorLevelObjectsUI.snapRotationField.sizeOffset_X     = 200;
            EditorLevelObjectsUI.snapRotationField.sizeOffset_Y     = 30;
            EditorLevelObjectsUI.snapRotationField.text             = (Mathf.Floor(EditorObjects.snapRotation * 100f) / 100f).ToString();
            EditorLevelObjectsUI.snapRotationField.addLabel(local.format("SnapRotationLabelText"), ESleekSide.RIGHT);
            SleekSingleField sleekSingleField2 = EditorLevelObjectsUI.snapRotationField;

            if (EditorLevelObjectsUI.< > f__mg$cacheC == null)
            {
                EditorLevelObjectsUI.< > f__mg$cacheC = new TypedSingle(EditorLevelObjectsUI.onTypedSnapRotationField);
            }
            sleekSingleField2.onTypedSingle = EditorLevelObjectsUI.< > f__mg$cacheC;
            EditorLevelObjectsUI.container.add(EditorLevelObjectsUI.snapRotationField);
            EditorLevelObjectsUI.transformButton = new SleekButtonIcon((Texture2D)bundle.load("Transform"));
            EditorLevelObjectsUI.transformButton.positionOffset_Y = -150;
            EditorLevelObjectsUI.transformButton.positionScale_Y  = 1f;
            EditorLevelObjectsUI.transformButton.sizeOffset_X     = 200;
            EditorLevelObjectsUI.transformButton.sizeOffset_Y     = 30;
            EditorLevelObjectsUI.transformButton.text             = local.format("TransformButtonText", new object[]
            {
                ControlsSettings.tool_0
            });
            EditorLevelObjectsUI.transformButton.tooltip = local.format("TransformButtonTooltip");
            SleekButton sleekButton2 = EditorLevelObjectsUI.transformButton;

            if (EditorLevelObjectsUI.< > f__mg$cacheD == null)
            {
                EditorLevelObjectsUI.< > f__mg$cacheD = new ClickedButton(EditorLevelObjectsUI.onClickedTransformButton);
            }
            sleekButton2.onClickedButton = EditorLevelObjectsUI.< > f__mg$cacheD;
            EditorLevelObjectsUI.container.add(EditorLevelObjectsUI.transformButton);
            EditorLevelObjectsUI.rotateButton = new SleekButtonIcon((Texture2D)bundle.load("Rotate"));
            EditorLevelObjectsUI.rotateButton.positionOffset_Y = -110;
            EditorLevelObjectsUI.rotateButton.positionScale_Y  = 1f;
            EditorLevelObjectsUI.rotateButton.sizeOffset_X     = 200;
            EditorLevelObjectsUI.rotateButton.sizeOffset_Y     = 30;
            EditorLevelObjectsUI.rotateButton.text             = local.format("RotateButtonText", new object[]
            {
                ControlsSettings.tool_1
            });
            EditorLevelObjectsUI.rotateButton.tooltip = local.format("RotateButtonTooltip");
            SleekButton sleekButton3 = EditorLevelObjectsUI.rotateButton;

            if (EditorLevelObjectsUI.< > f__mg$cacheE == null)
            {
                EditorLevelObjectsUI.< > f__mg$cacheE = new ClickedButton(EditorLevelObjectsUI.onClickedRotateButton);
            }
            sleekButton3.onClickedButton = EditorLevelObjectsUI.< > f__mg$cacheE;
            EditorLevelObjectsUI.container.add(EditorLevelObjectsUI.rotateButton);
            EditorLevelObjectsUI.scaleButton = new SleekButtonIcon((Texture2D)bundle.load("Scale"));
            EditorLevelObjectsUI.scaleButton.positionOffset_Y = -70;
            EditorLevelObjectsUI.scaleButton.positionScale_Y  = 1f;
            EditorLevelObjectsUI.scaleButton.sizeOffset_X     = 200;
            EditorLevelObjectsUI.scaleButton.sizeOffset_Y     = 30;
            EditorLevelObjectsUI.scaleButton.text             = local.format("ScaleButtonText", new object[]
            {
                ControlsSettings.tool_3
            });
            EditorLevelObjectsUI.scaleButton.tooltip = local.format("ScaleButtonTooltip");
            SleekButton sleekButton4 = EditorLevelObjectsUI.scaleButton;

            if (EditorLevelObjectsUI.< > f__mg$cacheF == null)
            {
                EditorLevelObjectsUI.< > f__mg$cacheF = new ClickedButton(EditorLevelObjectsUI.onClickedScaleButton);
            }
            sleekButton4.onClickedButton = EditorLevelObjectsUI.< > f__mg$cacheF;
            EditorLevelObjectsUI.container.add(EditorLevelObjectsUI.scaleButton);
            EditorLevelObjectsUI.coordinateButton = new SleekButtonState(new GUIContent[]
            {
                new GUIContent(local.format("CoordinateButtonTextGlobal"), (Texture)bundle.load("Global")),
                new GUIContent(local.format("CoordinateButtonTextLocal"), (Texture)bundle.load("Local"))
            });
            EditorLevelObjectsUI.coordinateButton.positionOffset_Y = -30;
            EditorLevelObjectsUI.coordinateButton.positionScale_Y  = 1f;
            EditorLevelObjectsUI.coordinateButton.sizeOffset_X     = 200;
            EditorLevelObjectsUI.coordinateButton.sizeOffset_Y     = 30;
            EditorLevelObjectsUI.coordinateButton.tooltip          = local.format("CoordinateButtonTooltip");
            SleekButtonState sleekButtonState = EditorLevelObjectsUI.coordinateButton;

            if (EditorLevelObjectsUI.< > f__mg$cache10 == null)
            {
                EditorLevelObjectsUI.< > f__mg$cache10 = new SwappedState(EditorLevelObjectsUI.onSwappedStateCoordinate);
            }
            sleekButtonState.onSwappedState = EditorLevelObjectsUI.< > f__mg$cache10;
            EditorLevelObjectsUI.container.add(EditorLevelObjectsUI.coordinateButton);
            bundle.unload();
            EditorLevelObjectsUI.onAssetsRefreshed();
            if (EditorLevelObjectsUI.< > f__mg$cache11 == null)
            {
                EditorLevelObjectsUI.< > f__mg$cache11 = new AssetsRefreshed(EditorLevelObjectsUI.onAssetsRefreshed);
            }
            Assets.onAssetsRefreshed = EditorLevelObjectsUI.< > f__mg$cache11;
        }
示例#12
0
 private static void onEnteredSearchField(SleekField field)
 {
     EditorLevelObjectsUI.updateSelection(EditorLevelObjectsUI.searchField.text, EditorLevelObjectsUI.largeToggle.state, EditorLevelObjectsUI.mediumToggle.state, EditorLevelObjectsUI.smallToggle.state, EditorLevelObjectsUI.barricadesToggle.state, EditorLevelObjectsUI.structuresToggle.state, EditorLevelObjectsUI.npcsToggle.state);
 }
示例#13
0
        public PlayerDashboardCraftingUI()
        {
            if (PlayerDashboardCraftingUI.icons != null)
            {
                PlayerDashboardCraftingUI.icons.unload();
            }
            PlayerDashboardCraftingUI.localization = Localization.read("/Player/PlayerDashboardCrafting.dat");
            PlayerDashboardCraftingUI.icons        = Bundles.getBundle("/Bundles/Textures/Player/Icons/PlayerDashboardCrafting/PlayerDashboardCrafting.unity3d");
            PlayerDashboardCraftingUI.container    = new Sleek();
            PlayerDashboardCraftingUI.container.positionScale_Y  = 1f;
            PlayerDashboardCraftingUI.container.positionOffset_X = 10;
            PlayerDashboardCraftingUI.container.positionOffset_Y = 10;
            PlayerDashboardCraftingUI.container.sizeOffset_X     = -20;
            PlayerDashboardCraftingUI.container.sizeOffset_Y     = -20;
            PlayerDashboardCraftingUI.container.sizeScale_X      = 1f;
            PlayerDashboardCraftingUI.container.sizeScale_Y      = 1f;
            PlayerUI.container.add(PlayerDashboardCraftingUI.container);
            PlayerDashboardCraftingUI.active          = false;
            PlayerDashboardCraftingUI.selectedType    = byte.MaxValue;
            PlayerDashboardCraftingUI.hideUncraftable = false;
            PlayerDashboardCraftingUI.searchText      = string.Empty;
            PlayerDashboardCraftingUI.backdropBox     = new SleekBox();
            PlayerDashboardCraftingUI.backdropBox.positionOffset_Y = 60;
            PlayerDashboardCraftingUI.backdropBox.sizeOffset_Y     = -60;
            PlayerDashboardCraftingUI.backdropBox.sizeScale_X      = 1f;
            PlayerDashboardCraftingUI.backdropBox.sizeScale_Y      = 1f;
            Color white = Color.white;

            white.a = 0.5f;
            PlayerDashboardCraftingUI.backdropBox.backgroundColor = white;
            PlayerDashboardCraftingUI.container.add(PlayerDashboardCraftingUI.backdropBox);
            PlayerDashboardCraftingUI.blueprintsScrollBox = new SleekScrollBox();
            PlayerDashboardCraftingUI.blueprintsScrollBox.positionOffset_X = 10;
            PlayerDashboardCraftingUI.blueprintsScrollBox.positionOffset_Y = 110;
            PlayerDashboardCraftingUI.blueprintsScrollBox.sizeOffset_X     = -20;
            PlayerDashboardCraftingUI.blueprintsScrollBox.sizeOffset_Y     = -120;
            PlayerDashboardCraftingUI.blueprintsScrollBox.sizeScale_X      = 1f;
            PlayerDashboardCraftingUI.blueprintsScrollBox.sizeScale_Y      = 1f;
            PlayerDashboardCraftingUI.backdropBox.add(PlayerDashboardCraftingUI.blueprintsScrollBox);
            for (int i = 0; i < PlayerDashboardCraftingUI.TYPES; i++)
            {
                SleekButtonIcon sleekButtonIcon = new SleekButtonIcon((Texture2D)PlayerDashboardCraftingUI.icons.load("Blueprint_" + i));
                sleekButtonIcon.positionOffset_X         = PlayerDashboardCraftingUI.TYPES * -30 + 5 + i * 60;
                sleekButtonIcon.positionOffset_Y         = 10;
                sleekButtonIcon.positionScale_X          = 0.5f;
                sleekButtonIcon.sizeOffset_X             = 50;
                sleekButtonIcon.sizeOffset_Y             = 50;
                sleekButtonIcon.tooltip                  = PlayerDashboardCraftingUI.localization.format("Type_" + i + "_Tooltip");
                sleekButtonIcon.iconImage.backgroundTint = ESleekTint.FOREGROUND;
                SleekButton sleekButton = sleekButtonIcon;
                if (PlayerDashboardCraftingUI.< > f__mg$cache1 == null)
                {
                    PlayerDashboardCraftingUI.< > f__mg$cache1 = new ClickedButton(PlayerDashboardCraftingUI.onClickedTypeButton);
                }
                sleekButton.onClickedButton = PlayerDashboardCraftingUI.< > f__mg$cache1;
                PlayerDashboardCraftingUI.backdropBox.add(sleekButtonIcon);
            }
            PlayerDashboardCraftingUI.hideUncraftableToggle = new SleekToggle();
            PlayerDashboardCraftingUI.hideUncraftableToggle.positionOffset_X = -80;
            PlayerDashboardCraftingUI.hideUncraftableToggle.positionOffset_Y = 65;
            PlayerDashboardCraftingUI.hideUncraftableToggle.positionScale_X  = 1f;
            PlayerDashboardCraftingUI.hideUncraftableToggle.sizeOffset_X     = 40;
            PlayerDashboardCraftingUI.hideUncraftableToggle.sizeOffset_Y     = 40;
            PlayerDashboardCraftingUI.hideUncraftableToggle.addLabel(PlayerDashboardCraftingUI.localization.format("Hide_Uncraftable_Toggle_Label"), ESleekSide.LEFT);
            PlayerDashboardCraftingUI.hideUncraftableToggle.state = PlayerDashboardCraftingUI.hideUncraftable;
            SleekToggle sleekToggle = PlayerDashboardCraftingUI.hideUncraftableToggle;

            if (PlayerDashboardCraftingUI.< > f__mg$cache2 == null)
            {
                PlayerDashboardCraftingUI.< > f__mg$cache2 = new Toggled(PlayerDashboardCraftingUI.onToggledHideUncraftableToggle);
            }
            sleekToggle.onToggled = PlayerDashboardCraftingUI.< > f__mg$cache2;
            PlayerDashboardCraftingUI.backdropBox.add(PlayerDashboardCraftingUI.hideUncraftableToggle);
            PlayerDashboardCraftingUI.searchField = new SleekField();
            PlayerDashboardCraftingUI.searchField.positionOffset_X = 10;
            PlayerDashboardCraftingUI.searchField.positionOffset_Y = 70;
            PlayerDashboardCraftingUI.searchField.sizeOffset_X     = -410;
            PlayerDashboardCraftingUI.searchField.sizeOffset_Y     = 30;
            PlayerDashboardCraftingUI.searchField.sizeScale_X      = 1f;
            PlayerDashboardCraftingUI.searchField.hint             = PlayerDashboardCraftingUI.localization.format("Search_Field_Hint");
            PlayerDashboardCraftingUI.searchField.control          = "Search";
            SleekField sleekField = PlayerDashboardCraftingUI.searchField;
            Delegate   onEntered  = sleekField.onEntered;

            if (PlayerDashboardCraftingUI.< > f__mg$cache3 == null)
            {
                PlayerDashboardCraftingUI.< > f__mg$cache3 = new Entered(PlayerDashboardCraftingUI.onEnteredSearchField);
            }
            sleekField.onEntered = (Entered)Delegate.Combine(onEntered, PlayerDashboardCraftingUI.< > f__mg$cache3);
            PlayerDashboardCraftingUI.backdropBox.add(PlayerDashboardCraftingUI.searchField);
            PlayerDashboardCraftingUI.searchButton = new SleekButton();
            PlayerDashboardCraftingUI.searchButton.positionOffset_X = -390;
            PlayerDashboardCraftingUI.searchButton.positionOffset_Y = 70;
            PlayerDashboardCraftingUI.searchButton.positionScale_X  = 1f;
            PlayerDashboardCraftingUI.searchButton.sizeOffset_X     = 100;
            PlayerDashboardCraftingUI.searchButton.sizeOffset_Y     = 30;
            PlayerDashboardCraftingUI.searchButton.text             = PlayerDashboardCraftingUI.localization.format("Search");
            PlayerDashboardCraftingUI.searchButton.tooltip          = PlayerDashboardCraftingUI.localization.format("Search_Tooltip");
            SleekButton sleekButton2 = PlayerDashboardCraftingUI.searchButton;

            if (PlayerDashboardCraftingUI.< > f__mg$cache4 == null)
            {
                PlayerDashboardCraftingUI.< > f__mg$cache4 = new ClickedButton(PlayerDashboardCraftingUI.onClickedSearchButton);
            }
            sleekButton2.onClickedButton = PlayerDashboardCraftingUI.< > f__mg$cache4;
            PlayerDashboardCraftingUI.backdropBox.add(PlayerDashboardCraftingUI.searchButton);
            PlayerDashboardCraftingUI.infoBox = new SleekBox();
            PlayerDashboardCraftingUI.infoBox.positionOffset_X = 10;
            PlayerDashboardCraftingUI.infoBox.positionOffset_Y = 110;
            PlayerDashboardCraftingUI.infoBox.sizeOffset_X     = -20;
            PlayerDashboardCraftingUI.infoBox.sizeOffset_Y     = 50;
            PlayerDashboardCraftingUI.infoBox.sizeScale_X      = 1f;
            PlayerDashboardCraftingUI.infoBox.text             = PlayerDashboardCraftingUI.localization.format("No_Blueprints");
            PlayerDashboardCraftingUI.infoBox.fontSize         = 14;
            PlayerDashboardCraftingUI.backdropBox.add(PlayerDashboardCraftingUI.infoBox);
            PlayerDashboardCraftingUI.infoBox.isVisible = false;
            PlayerDashboardCraftingUI.viewBlueprints    = null;
            PlayerDashboardCraftingUI.selectedType      = 0;
            PlayerDashboardCraftingUI.hideUncraftable   = false;
            PlayerDashboardCraftingUI.searchText        = string.Empty;
            PlayerInventory inventory          = Player.player.inventory;
            Delegate        onInventoryResized = inventory.onInventoryResized;

            if (PlayerDashboardCraftingUI.< > f__mg$cache5 == null)
            {
                PlayerDashboardCraftingUI.< > f__mg$cache5 = new InventoryResized(PlayerDashboardCraftingUI.onInventoryResized);
            }
            inventory.onInventoryResized = (InventoryResized)Delegate.Combine(onInventoryResized, PlayerDashboardCraftingUI.< > f__mg$cache5);
            PlayerCrafting crafting          = Player.player.crafting;
            Delegate       onCraftingUpdated = crafting.onCraftingUpdated;

            if (PlayerDashboardCraftingUI.< > f__mg$cache6 == null)
            {
                PlayerDashboardCraftingUI.< > f__mg$cache6 = new CraftingUpdated(PlayerDashboardCraftingUI.onCraftingUpdated);
            }
            crafting.onCraftingUpdated = (CraftingUpdated)Delegate.Combine(onCraftingUpdated, PlayerDashboardCraftingUI.< > f__mg$cache6);
        }
示例#14
0
 private static void onEnteredSearchField(SleekField field)
 {
     PlayerDashboardCraftingUI.updateSelection(null, PlayerDashboardCraftingUI.selectedType, PlayerDashboardCraftingUI.hideUncraftable, PlayerDashboardCraftingUI.searchField.text);
 }
示例#15
0
 private static void onTypedPasswordField(SleekField field, string text)
 {
     PlaySettings.connectPassword = text;
 }
        // Token: 0x06003722 RID: 14114 RVA: 0x0017EF24 File Offset: 0x0017D324
        public MenuSurvivorsCharacterUI()
        {
            if (MenuSurvivorsCharacterUI.icons != null)
            {
                MenuSurvivorsCharacterUI.icons.unload();
            }
            MenuSurvivorsCharacterUI.localization = Localization.read("/Menu/Survivors/MenuSurvivorsCharacter.dat");
            MenuSurvivorsCharacterUI.icons        = Bundles.getBundle("/Bundles/Textures/Menu/Icons/Survivors/MenuSurvivorsCharacter/MenuSurvivorsCharacter.unity3d");
            MenuSurvivorsCharacterUI.container    = new Sleek();
            MenuSurvivorsCharacterUI.container.positionOffset_X = 10;
            MenuSurvivorsCharacterUI.container.positionOffset_Y = 10;
            MenuSurvivorsCharacterUI.container.positionScale_Y  = 1f;
            MenuSurvivorsCharacterUI.container.sizeOffset_X     = -20;
            MenuSurvivorsCharacterUI.container.sizeOffset_Y     = -20;
            MenuSurvivorsCharacterUI.container.sizeScale_X      = 1f;
            MenuSurvivorsCharacterUI.container.sizeScale_Y      = 1f;
            MenuUI.container.add(MenuSurvivorsCharacterUI.container);
            MenuSurvivorsCharacterUI.active       = false;
            MenuSurvivorsCharacterUI.characterBox = new SleekScrollBox();
            MenuSurvivorsCharacterUI.characterBox.positionOffset_X = -100;
            MenuSurvivorsCharacterUI.characterBox.positionOffset_Y = 45;
            MenuSurvivorsCharacterUI.characterBox.positionScale_X  = 0.75f;
            MenuSurvivorsCharacterUI.characterBox.positionScale_Y  = 0.5f;
            MenuSurvivorsCharacterUI.characterBox.sizeOffset_X     = 230;
            MenuSurvivorsCharacterUI.characterBox.sizeOffset_Y     = -145;
            MenuSurvivorsCharacterUI.characterBox.sizeScale_Y      = 0.5f;
            MenuSurvivorsCharacterUI.characterBox.area             = new Rect(0f, 0f, 5f, (float)((Customization.FREE_CHARACTERS + Customization.PRO_CHARACTERS) * 80 - 10));
            MenuSurvivorsCharacterUI.container.add(MenuSurvivorsCharacterUI.characterBox);
            MenuSurvivorsCharacterUI.characterButtons = new SleekCharacter[(int)(Customization.FREE_CHARACTERS + Customization.PRO_CHARACTERS)];
            byte b = 0;

            while ((int)b < MenuSurvivorsCharacterUI.characterButtons.Length)
            {
                SleekCharacter sleekCharacter = new SleekCharacter(b);
                sleekCharacter.positionOffset_Y = (int)(b * 80);
                sleekCharacter.sizeOffset_X     = 200;
                sleekCharacter.sizeOffset_Y     = 70;
                SleekCharacter sleekCharacter2 = sleekCharacter;
                if (MenuSurvivorsCharacterUI.< > f__mg$cache0 == null)
                {
                    MenuSurvivorsCharacterUI.< > f__mg$cache0 = new ClickedCharacter(MenuSurvivorsCharacterUI.onClickedCharacter);
                }
                sleekCharacter2.onClickedCharacter = MenuSurvivorsCharacterUI.< > f__mg$cache0;
                MenuSurvivorsCharacterUI.characterBox.add(sleekCharacter);
                MenuSurvivorsCharacterUI.characterButtons[(int)b] = sleekCharacter;
                b += 1;
            }
            MenuSurvivorsCharacterUI.nameField = new SleekField();
            MenuSurvivorsCharacterUI.nameField.positionOffset_X = -100;
            MenuSurvivorsCharacterUI.nameField.positionOffset_Y = 100;
            MenuSurvivorsCharacterUI.nameField.positionScale_X  = 0.75f;
            MenuSurvivorsCharacterUI.nameField.sizeOffset_X     = 200;
            MenuSurvivorsCharacterUI.nameField.sizeOffset_Y     = 30;
            MenuSurvivorsCharacterUI.nameField.maxLength        = 32;
            MenuSurvivorsCharacterUI.nameField.addLabel(MenuSurvivorsCharacterUI.localization.format("Name_Field_Label"), ESleekSide.LEFT);
            SleekField sleekField = MenuSurvivorsCharacterUI.nameField;

            if (MenuSurvivorsCharacterUI.< > f__mg$cache1 == null)
            {
                MenuSurvivorsCharacterUI.< > f__mg$cache1 = new Typed(MenuSurvivorsCharacterUI.onTypedNameField);
            }
            sleekField.onTyped = MenuSurvivorsCharacterUI.< > f__mg$cache1;
            MenuSurvivorsCharacterUI.container.add(MenuSurvivorsCharacterUI.nameField);
            MenuSurvivorsCharacterUI.nickField = new SleekField();
            MenuSurvivorsCharacterUI.nickField.positionOffset_X = -100;
            MenuSurvivorsCharacterUI.nickField.positionOffset_Y = 140;
            MenuSurvivorsCharacterUI.nickField.positionScale_X  = 0.75f;
            MenuSurvivorsCharacterUI.nickField.sizeOffset_X     = 200;
            MenuSurvivorsCharacterUI.nickField.sizeOffset_Y     = 30;
            MenuSurvivorsCharacterUI.nickField.maxLength        = 32;
            MenuSurvivorsCharacterUI.nickField.addLabel(MenuSurvivorsCharacterUI.localization.format("Nick_Field_Label"), ESleekSide.LEFT);
            SleekField sleekField2 = MenuSurvivorsCharacterUI.nickField;

            if (MenuSurvivorsCharacterUI.< > f__mg$cache2 == null)
            {
                MenuSurvivorsCharacterUI.< > f__mg$cache2 = new Typed(MenuSurvivorsCharacterUI.onTypedNickField);
            }
            sleekField2.onTyped = MenuSurvivorsCharacterUI.< > f__mg$cache2;
            MenuSurvivorsCharacterUI.container.add(MenuSurvivorsCharacterUI.nickField);
            MenuSurvivorsCharacterUI.skillsetBox = new SleekBoxIcon(null);
            MenuSurvivorsCharacterUI.skillsetBox.positionOffset_X         = -100;
            MenuSurvivorsCharacterUI.skillsetBox.positionOffset_Y         = 180;
            MenuSurvivorsCharacterUI.skillsetBox.positionScale_X          = 0.75f;
            MenuSurvivorsCharacterUI.skillsetBox.sizeOffset_X             = 200;
            MenuSurvivorsCharacterUI.skillsetBox.sizeOffset_Y             = 30;
            MenuSurvivorsCharacterUI.skillsetBox.iconImage.backgroundTint = ESleekTint.FOREGROUND;
            MenuSurvivorsCharacterUI.skillsetBox.addLabel(MenuSurvivorsCharacterUI.localization.format("Skillset_Box_Label"), ESleekSide.LEFT);
            MenuSurvivorsCharacterUI.container.add(MenuSurvivorsCharacterUI.skillsetBox);
            MenuSurvivorsCharacterUI.skillsetsBox = new SleekScrollBox();
            MenuSurvivorsCharacterUI.skillsetsBox.positionOffset_X = -100;
            MenuSurvivorsCharacterUI.skillsetsBox.positionOffset_Y = 220;
            MenuSurvivorsCharacterUI.skillsetsBox.positionScale_X  = 0.75f;
            MenuSurvivorsCharacterUI.skillsetsBox.sizeOffset_X     = 230;
            MenuSurvivorsCharacterUI.skillsetsBox.sizeOffset_Y     = -185;
            MenuSurvivorsCharacterUI.skillsetsBox.sizeScale_Y      = 0.5f;
            MenuSurvivorsCharacterUI.skillsetsBox.area             = new Rect(0f, 0f, 5f, (float)(Customization.SKILLSETS * 40 - 10));
            MenuSurvivorsCharacterUI.container.add(MenuSurvivorsCharacterUI.skillsetsBox);
            for (int i = 0; i < (int)Customization.SKILLSETS; i++)
            {
                SleekButtonIcon sleekButtonIcon = new SleekButtonIcon((Texture2D)MenuSurvivorsCharacterUI.icons.load("Skillset_" + i));
                sleekButtonIcon.positionOffset_Y         = i * 40;
                sleekButtonIcon.sizeOffset_X             = 200;
                sleekButtonIcon.sizeOffset_Y             = 30;
                sleekButtonIcon.text                     = MenuSurvivorsCharacterUI.localization.format("Skillset_" + i);
                sleekButtonIcon.iconImage.backgroundTint = ESleekTint.FOREGROUND;
                SleekButton sleekButton = sleekButtonIcon;
                if (MenuSurvivorsCharacterUI.< > f__mg$cache3 == null)
                {
                    MenuSurvivorsCharacterUI.< > f__mg$cache3 = new ClickedButton(MenuSurvivorsCharacterUI.onClickedSkillset);
                }
                sleekButton.onClickedButton = MenuSurvivorsCharacterUI.< > f__mg$cache3;
                MenuSurvivorsCharacterUI.skillsetsBox.add(sleekButtonIcon);
            }
            Delegate onCharacterUpdated = Characters.onCharacterUpdated;

            if (MenuSurvivorsCharacterUI.< > f__mg$cache4 == null)
            {
                MenuSurvivorsCharacterUI.< > f__mg$cache4 = new CharacterUpdated(MenuSurvivorsCharacterUI.onCharacterUpdated);
            }
            Characters.onCharacterUpdated       = (CharacterUpdated)Delegate.Combine(onCharacterUpdated, MenuSurvivorsCharacterUI.< > f__mg$cache4);
            MenuSurvivorsCharacterUI.backButton = new SleekButtonIcon((Texture2D)MenuDashboardUI.icons.load("Exit"));
            MenuSurvivorsCharacterUI.backButton.positionOffset_Y = -50;
            MenuSurvivorsCharacterUI.backButton.positionScale_Y  = 1f;
            MenuSurvivorsCharacterUI.backButton.sizeOffset_X     = 200;
            MenuSurvivorsCharacterUI.backButton.sizeOffset_Y     = 50;
            MenuSurvivorsCharacterUI.backButton.text             = MenuDashboardUI.localization.format("BackButtonText");
            MenuSurvivorsCharacterUI.backButton.tooltip          = MenuDashboardUI.localization.format("BackButtonTooltip");
            SleekButton sleekButton2 = MenuSurvivorsCharacterUI.backButton;

            if (MenuSurvivorsCharacterUI.< > f__mg$cache5 == null)
            {
                MenuSurvivorsCharacterUI.< > f__mg$cache5 = new ClickedButton(MenuSurvivorsCharacterUI.onClickedBackButton);
            }
            sleekButton2.onClickedButton = MenuSurvivorsCharacterUI.< > f__mg$cache5;
            MenuSurvivorsCharacterUI.backButton.fontSize = 14;
            MenuSurvivorsCharacterUI.backButton.iconImage.backgroundTint = ESleekTint.FOREGROUND;
            MenuSurvivorsCharacterUI.container.add(MenuSurvivorsCharacterUI.backButton);
        }
 // Token: 0x06003726 RID: 14118 RVA: 0x0017F641 File Offset: 0x0017DA41
 private static void onTypedNameField(SleekField field, string text)
 {
     Characters.rename(text);
 }
示例#18
0
        // Token: 0x060034B5 RID: 13493 RVA: 0x0015AD6C File Offset: 0x0015916C
        public EditorEnvironmentNavigationUI()
        {
            Local  local  = Localization.read("/Editor/EditorEnvironmentNavigation.dat");
            Bundle bundle = Bundles.getBundle("/Bundles/Textures/Edit/Icons/EditorEnvironmentNavigation/EditorEnvironmentNavigation.unity3d");

            EditorEnvironmentNavigationUI.container = new Sleek();
            EditorEnvironmentNavigationUI.container.positionOffset_X = 10;
            EditorEnvironmentNavigationUI.container.positionOffset_Y = 10;
            EditorEnvironmentNavigationUI.container.positionScale_X  = 1f;
            EditorEnvironmentNavigationUI.container.sizeOffset_X     = -20;
            EditorEnvironmentNavigationUI.container.sizeOffset_Y     = -20;
            EditorEnvironmentNavigationUI.container.sizeScale_X      = 1f;
            EditorEnvironmentNavigationUI.container.sizeScale_Y      = 1f;
            EditorUI.window.add(EditorEnvironmentNavigationUI.container);
            EditorEnvironmentNavigationUI.active      = false;
            EditorEnvironmentNavigationUI.widthSlider = new SleekSlider();
            EditorEnvironmentNavigationUI.widthSlider.positionOffset_X = -200;
            EditorEnvironmentNavigationUI.widthSlider.positionOffset_Y = 80;
            EditorEnvironmentNavigationUI.widthSlider.positionScale_X  = 1f;
            EditorEnvironmentNavigationUI.widthSlider.sizeOffset_X     = 200;
            EditorEnvironmentNavigationUI.widthSlider.sizeOffset_Y     = 20;
            EditorEnvironmentNavigationUI.widthSlider.orientation      = ESleekOrientation.HORIZONTAL;
            EditorEnvironmentNavigationUI.widthSlider.addLabel(local.format("Width_Label"), ESleekSide.LEFT);
            SleekSlider sleekSlider = EditorEnvironmentNavigationUI.widthSlider;

            if (EditorEnvironmentNavigationUI.< > f__mg$cache0 == null)
            {
                EditorEnvironmentNavigationUI.< > f__mg$cache0 = new Dragged(EditorEnvironmentNavigationUI.onDraggedWidthSlider);
            }
            sleekSlider.onDragged = EditorEnvironmentNavigationUI.< > f__mg$cache0;
            EditorEnvironmentNavigationUI.container.add(EditorEnvironmentNavigationUI.widthSlider);
            EditorEnvironmentNavigationUI.widthSlider.isVisible         = false;
            EditorEnvironmentNavigationUI.heightSlider                  = new SleekSlider();
            EditorEnvironmentNavigationUI.heightSlider.positionOffset_X = -200;
            EditorEnvironmentNavigationUI.heightSlider.positionOffset_Y = 110;
            EditorEnvironmentNavigationUI.heightSlider.positionScale_X  = 1f;
            EditorEnvironmentNavigationUI.heightSlider.sizeOffset_X     = 200;
            EditorEnvironmentNavigationUI.heightSlider.sizeOffset_Y     = 20;
            EditorEnvironmentNavigationUI.heightSlider.orientation      = ESleekOrientation.HORIZONTAL;
            EditorEnvironmentNavigationUI.heightSlider.addLabel(local.format("Height_Label"), ESleekSide.LEFT);
            SleekSlider sleekSlider2 = EditorEnvironmentNavigationUI.heightSlider;

            if (EditorEnvironmentNavigationUI.< > f__mg$cache1 == null)
            {
                EditorEnvironmentNavigationUI.< > f__mg$cache1 = new Dragged(EditorEnvironmentNavigationUI.onDraggedHeightSlider);
            }
            sleekSlider2.onDragged = EditorEnvironmentNavigationUI.< > f__mg$cache1;
            EditorEnvironmentNavigationUI.container.add(EditorEnvironmentNavigationUI.heightSlider);
            EditorEnvironmentNavigationUI.heightSlider.isVisible = false;
            EditorEnvironmentNavigationUI.navBox = new SleekBox();
            EditorEnvironmentNavigationUI.navBox.positionOffset_X = -200;
            EditorEnvironmentNavigationUI.navBox.positionOffset_Y = 140;
            EditorEnvironmentNavigationUI.navBox.positionScale_X  = 1f;
            EditorEnvironmentNavigationUI.navBox.sizeOffset_X     = 200;
            EditorEnvironmentNavigationUI.navBox.sizeOffset_Y     = 30;
            EditorEnvironmentNavigationUI.navBox.addLabel(local.format("Nav_Label"), ESleekSide.LEFT);
            EditorEnvironmentNavigationUI.container.add(EditorEnvironmentNavigationUI.navBox);
            EditorEnvironmentNavigationUI.navBox.isVisible    = false;
            EditorEnvironmentNavigationUI.difficultyGUIDField = new SleekField();
            EditorEnvironmentNavigationUI.difficultyGUIDField.positionOffset_X = -200;
            EditorEnvironmentNavigationUI.difficultyGUIDField.positionOffset_Y = 180;
            EditorEnvironmentNavigationUI.difficultyGUIDField.positionScale_X  = 1f;
            EditorEnvironmentNavigationUI.difficultyGUIDField.sizeOffset_X     = 200;
            EditorEnvironmentNavigationUI.difficultyGUIDField.sizeOffset_Y     = 30;
            EditorEnvironmentNavigationUI.difficultyGUIDField.maxLength        = 32;
            SleekField sleekField = EditorEnvironmentNavigationUI.difficultyGUIDField;

            if (EditorEnvironmentNavigationUI.< > f__mg$cache2 == null)
            {
                EditorEnvironmentNavigationUI.< > f__mg$cache2 = new Typed(EditorEnvironmentNavigationUI.onDifficultyGUIDFieldTyped);
            }
            sleekField.onTyped = EditorEnvironmentNavigationUI.< > f__mg$cache2;
            EditorEnvironmentNavigationUI.difficultyGUIDField.addLabel(local.format("Difficulty_GUID_Field_Label"), ESleekSide.LEFT);
            EditorEnvironmentNavigationUI.container.add(EditorEnvironmentNavigationUI.difficultyGUIDField);
            EditorEnvironmentNavigationUI.difficultyGUIDField.isVisible = false;
            EditorEnvironmentNavigationUI.maxZombiesField = new SleekByteField();
            EditorEnvironmentNavigationUI.maxZombiesField.positionOffset_X = -200;
            EditorEnvironmentNavigationUI.maxZombiesField.positionOffset_Y = 220;
            EditorEnvironmentNavigationUI.maxZombiesField.positionScale_X  = 1f;
            EditorEnvironmentNavigationUI.maxZombiesField.sizeOffset_X     = 200;
            EditorEnvironmentNavigationUI.maxZombiesField.sizeOffset_Y     = 30;
            SleekByteField sleekByteField = EditorEnvironmentNavigationUI.maxZombiesField;

            if (EditorEnvironmentNavigationUI.< > f__mg$cache3 == null)
            {
                EditorEnvironmentNavigationUI.< > f__mg$cache3 = new TypedByte(EditorEnvironmentNavigationUI.onMaxZombiesFieldTyped);
            }
            sleekByteField.onTypedByte = EditorEnvironmentNavigationUI.< > f__mg$cache3;
            EditorEnvironmentNavigationUI.maxZombiesField.addLabel(local.format("Max_Zombies_Field_Label"), ESleekSide.LEFT);
            EditorEnvironmentNavigationUI.container.add(EditorEnvironmentNavigationUI.maxZombiesField);
            EditorEnvironmentNavigationUI.maxZombiesField.isVisible           = false;
            EditorEnvironmentNavigationUI.spawnZombiesToggle                  = new SleekToggle();
            EditorEnvironmentNavigationUI.spawnZombiesToggle.positionOffset_X = -200;
            EditorEnvironmentNavigationUI.spawnZombiesToggle.positionOffset_Y = 260;
            EditorEnvironmentNavigationUI.spawnZombiesToggle.positionScale_X  = 1f;
            EditorEnvironmentNavigationUI.spawnZombiesToggle.sizeOffset_X     = 40;
            EditorEnvironmentNavigationUI.spawnZombiesToggle.sizeOffset_Y     = 40;
            SleekToggle sleekToggle = EditorEnvironmentNavigationUI.spawnZombiesToggle;

            if (EditorEnvironmentNavigationUI.< > f__mg$cache4 == null)
            {
                EditorEnvironmentNavigationUI.< > f__mg$cache4 = new Toggled(EditorEnvironmentNavigationUI.onToggledSpawnZombiesToggle);
            }
            sleekToggle.onToggled = EditorEnvironmentNavigationUI.< > f__mg$cache4;
            EditorEnvironmentNavigationUI.spawnZombiesToggle.addLabel(local.format("Spawn_Zombies_Toggle_Label"), ESleekSide.RIGHT);
            EditorEnvironmentNavigationUI.container.add(EditorEnvironmentNavigationUI.spawnZombiesToggle);
            EditorEnvironmentNavigationUI.spawnZombiesToggle.isVisible          = false;
            EditorEnvironmentNavigationUI.bakeNavigationButton                  = new SleekButtonIcon((Texture2D)bundle.load("Navigation"));
            EditorEnvironmentNavigationUI.bakeNavigationButton.positionOffset_X = -200;
            EditorEnvironmentNavigationUI.bakeNavigationButton.positionOffset_Y = -30;
            EditorEnvironmentNavigationUI.bakeNavigationButton.positionScale_X  = 1f;
            EditorEnvironmentNavigationUI.bakeNavigationButton.positionScale_Y  = 1f;
            EditorEnvironmentNavigationUI.bakeNavigationButton.sizeOffset_X     = 200;
            EditorEnvironmentNavigationUI.bakeNavigationButton.sizeOffset_Y     = 30;
            EditorEnvironmentNavigationUI.bakeNavigationButton.text             = local.format("Bake_Navigation");
            EditorEnvironmentNavigationUI.bakeNavigationButton.tooltip          = local.format("Bake_Navigation_Tooltip");
            SleekButton sleekButton = EditorEnvironmentNavigationUI.bakeNavigationButton;

            if (EditorEnvironmentNavigationUI.< > f__mg$cache5 == null)
            {
                EditorEnvironmentNavigationUI.< > f__mg$cache5 = new ClickedButton(EditorEnvironmentNavigationUI.onClickedBakeNavigationButton);
            }
            sleekButton.onClickedButton = EditorEnvironmentNavigationUI.< > f__mg$cache5;
            EditorEnvironmentNavigationUI.container.add(EditorEnvironmentNavigationUI.bakeNavigationButton);
            EditorEnvironmentNavigationUI.bakeNavigationButton.isVisible = false;
            bundle.unload();
        }
        public EditorEnvironmentNodesUI()
        {
            Local local = Localization.read("/Editor/EditorEnvironmentNodes.dat");

            EditorEnvironmentNodesUI.container = new Sleek();
            EditorEnvironmentNodesUI.container.positionOffset_X = 10;
            EditorEnvironmentNodesUI.container.positionOffset_Y = 10;
            EditorEnvironmentNodesUI.container.positionScale_X  = 1f;
            EditorEnvironmentNodesUI.container.sizeOffset_X     = -20;
            EditorEnvironmentNodesUI.container.sizeOffset_Y     = -20;
            EditorEnvironmentNodesUI.container.sizeScale_X      = 1f;
            EditorEnvironmentNodesUI.container.sizeScale_Y      = 1f;
            EditorUI.window.add(EditorEnvironmentNodesUI.container);
            EditorEnvironmentNodesUI.active    = false;
            EditorEnvironmentNodesUI.nameField = new SleekField();
            EditorEnvironmentNodesUI.nameField.positionOffset_X = -200;
            EditorEnvironmentNodesUI.nameField.positionOffset_Y = 80;
            EditorEnvironmentNodesUI.nameField.positionScale_X  = 1f;
            EditorEnvironmentNodesUI.nameField.sizeOffset_X     = 200;
            EditorEnvironmentNodesUI.nameField.sizeOffset_Y     = 30;
            EditorEnvironmentNodesUI.nameField.addLabel(local.format("Name_Label"), ESleekSide.LEFT);
            SleekField sleekField = EditorEnvironmentNodesUI.nameField;

            if (EditorEnvironmentNodesUI.< > f__mg$cache0 == null)
            {
                EditorEnvironmentNodesUI.< > f__mg$cache0 = new Typed(EditorEnvironmentNodesUI.onTypedNameField);
            }
            sleekField.onTyped = EditorEnvironmentNodesUI.< > f__mg$cache0;
            EditorEnvironmentNodesUI.nameField.maxLength = 32;
            EditorEnvironmentNodesUI.container.add(EditorEnvironmentNodesUI.nameField);
            EditorEnvironmentNodesUI.nameField.isVisible           = false;
            EditorEnvironmentNodesUI.radiusSlider                  = new SleekSlider();
            EditorEnvironmentNodesUI.radiusSlider.positionOffset_X = -200;
            EditorEnvironmentNodesUI.radiusSlider.positionOffset_Y = 80;
            EditorEnvironmentNodesUI.radiusSlider.positionScale_X  = 1f;
            EditorEnvironmentNodesUI.radiusSlider.sizeOffset_X     = 200;
            EditorEnvironmentNodesUI.radiusSlider.sizeOffset_Y     = 20;
            EditorEnvironmentNodesUI.radiusSlider.addLabel(local.format("Radius_Label"), ESleekSide.LEFT);
            EditorEnvironmentNodesUI.radiusSlider.orientation = ESleekOrientation.HORIZONTAL;
            SleekSlider sleekSlider = EditorEnvironmentNodesUI.radiusSlider;

            if (EditorEnvironmentNodesUI.< > f__mg$cache1 == null)
            {
                EditorEnvironmentNodesUI.< > f__mg$cache1 = new Dragged(EditorEnvironmentNodesUI.onDraggedRadiusSlider);
            }
            sleekSlider.onDragged = EditorEnvironmentNodesUI.< > f__mg$cache1;
            EditorEnvironmentNodesUI.container.add(EditorEnvironmentNodesUI.radiusSlider);
            EditorEnvironmentNodesUI.radiusSlider.isVisible      = false;
            EditorEnvironmentNodesUI.widthField                  = new SleekSingleField();
            EditorEnvironmentNodesUI.widthField.positionOffset_X = -200;
            EditorEnvironmentNodesUI.widthField.positionOffset_Y = 110;
            EditorEnvironmentNodesUI.widthField.positionScale_X  = 1f;
            EditorEnvironmentNodesUI.widthField.sizeOffset_X     = 200;
            EditorEnvironmentNodesUI.widthField.sizeOffset_Y     = 30;
            EditorEnvironmentNodesUI.widthField.addLabel(local.format("Width_Label"), ESleekSide.LEFT);
            SleekSingleField sleekSingleField = EditorEnvironmentNodesUI.widthField;

            if (EditorEnvironmentNodesUI.< > f__mg$cache2 == null)
            {
                EditorEnvironmentNodesUI.< > f__mg$cache2 = new TypedSingle(EditorEnvironmentNodesUI.onTypedWidthField);
            }
            sleekSingleField.onTypedSingle = EditorEnvironmentNodesUI.< > f__mg$cache2;
            EditorEnvironmentNodesUI.container.add(EditorEnvironmentNodesUI.widthField);
            EditorEnvironmentNodesUI.widthField.isVisible         = false;
            EditorEnvironmentNodesUI.heightField                  = new SleekSingleField();
            EditorEnvironmentNodesUI.heightField.positionOffset_X = -200;
            EditorEnvironmentNodesUI.heightField.positionOffset_Y = 150;
            EditorEnvironmentNodesUI.heightField.positionScale_X  = 1f;
            EditorEnvironmentNodesUI.heightField.sizeOffset_X     = 200;
            EditorEnvironmentNodesUI.heightField.sizeOffset_Y     = 30;
            EditorEnvironmentNodesUI.heightField.addLabel(local.format("Height_Label"), ESleekSide.LEFT);
            SleekSingleField sleekSingleField2 = EditorEnvironmentNodesUI.heightField;

            if (EditorEnvironmentNodesUI.< > f__mg$cache3 == null)
            {
                EditorEnvironmentNodesUI.< > f__mg$cache3 = new TypedSingle(EditorEnvironmentNodesUI.onTypedHeightField);
            }
            sleekSingleField2.onTypedSingle = EditorEnvironmentNodesUI.< > f__mg$cache3;
            EditorEnvironmentNodesUI.container.add(EditorEnvironmentNodesUI.heightField);
            EditorEnvironmentNodesUI.heightField.isVisible        = false;
            EditorEnvironmentNodesUI.lengthField                  = new SleekSingleField();
            EditorEnvironmentNodesUI.lengthField.positionOffset_X = -200;
            EditorEnvironmentNodesUI.lengthField.positionOffset_Y = 190;
            EditorEnvironmentNodesUI.lengthField.positionScale_X  = 1f;
            EditorEnvironmentNodesUI.lengthField.sizeOffset_X     = 200;
            EditorEnvironmentNodesUI.lengthField.sizeOffset_Y     = 30;
            EditorEnvironmentNodesUI.lengthField.addLabel(local.format("Length_Label"), ESleekSide.LEFT);
            SleekSingleField sleekSingleField3 = EditorEnvironmentNodesUI.lengthField;

            if (EditorEnvironmentNodesUI.< > f__mg$cache4 == null)
            {
                EditorEnvironmentNodesUI.< > f__mg$cache4 = new TypedSingle(EditorEnvironmentNodesUI.onTypedLengthField);
            }
            sleekSingleField3.onTypedSingle = EditorEnvironmentNodesUI.< > f__mg$cache4;
            EditorEnvironmentNodesUI.container.add(EditorEnvironmentNodesUI.lengthField);
            EditorEnvironmentNodesUI.lengthField.isVisible = false;
            EditorEnvironmentNodesUI.shapeButton           = new SleekButtonState(new GUIContent[]
            {
                new GUIContent(local.format("Sphere")),
                new GUIContent(local.format("Box"))
            });
            EditorEnvironmentNodesUI.shapeButton.positionOffset_X = -200;
            EditorEnvironmentNodesUI.shapeButton.positionOffset_Y = 230;
            EditorEnvironmentNodesUI.shapeButton.positionScale_X  = 1f;
            EditorEnvironmentNodesUI.shapeButton.sizeOffset_X     = 200;
            EditorEnvironmentNodesUI.shapeButton.sizeOffset_Y     = 30;
            EditorEnvironmentNodesUI.shapeButton.tooltip          = local.format("Shape_Tooltip");
            SleekButtonState sleekButtonState = EditorEnvironmentNodesUI.shapeButton;

            if (EditorEnvironmentNodesUI.< > f__mg$cache5 == null)
            {
                EditorEnvironmentNodesUI.< > f__mg$cache5 = new SwappedState(EditorEnvironmentNodesUI.onSwappedShape);
            }
            sleekButtonState.onSwappedState = EditorEnvironmentNodesUI.< > f__mg$cache5;
            EditorEnvironmentNodesUI.container.add(EditorEnvironmentNodesUI.shapeButton);
            EditorEnvironmentNodesUI.shapeButton.isVisible        = false;
            EditorEnvironmentNodesUI.itemIDField                  = new SleekUInt16Field();
            EditorEnvironmentNodesUI.itemIDField.positionOffset_X = -200;
            EditorEnvironmentNodesUI.itemIDField.positionOffset_Y = 110;
            EditorEnvironmentNodesUI.itemIDField.positionScale_X  = 1f;
            EditorEnvironmentNodesUI.itemIDField.sizeOffset_X     = 200;
            EditorEnvironmentNodesUI.itemIDField.sizeOffset_Y     = 30;
            EditorEnvironmentNodesUI.itemIDField.addLabel(local.format("Item_ID_Label"), ESleekSide.LEFT);
            SleekUInt16Field sleekUInt16Field = EditorEnvironmentNodesUI.itemIDField;

            if (EditorEnvironmentNodesUI.< > f__mg$cache6 == null)
            {
                EditorEnvironmentNodesUI.< > f__mg$cache6 = new TypedUInt16(EditorEnvironmentNodesUI.onTypedItemIDField);
            }
            sleekUInt16Field.onTypedUInt16 = EditorEnvironmentNodesUI.< > f__mg$cache6;
            EditorEnvironmentNodesUI.container.add(EditorEnvironmentNodesUI.itemIDField);
            EditorEnvironmentNodesUI.itemIDField.isVisible      = false;
            EditorEnvironmentNodesUI.costField                  = new SleekUInt32Field();
            EditorEnvironmentNodesUI.costField.positionOffset_X = -200;
            EditorEnvironmentNodesUI.costField.positionOffset_Y = 150;
            EditorEnvironmentNodesUI.costField.positionScale_X  = 1f;
            EditorEnvironmentNodesUI.costField.sizeOffset_X     = 200;
            EditorEnvironmentNodesUI.costField.sizeOffset_Y     = 30;
            EditorEnvironmentNodesUI.costField.addLabel(local.format("Cost_Label"), ESleekSide.LEFT);
            SleekUInt32Field sleekUInt32Field = EditorEnvironmentNodesUI.costField;

            if (EditorEnvironmentNodesUI.< > f__mg$cache7 == null)
            {
                EditorEnvironmentNodesUI.< > f__mg$cache7 = new TypedUInt32(EditorEnvironmentNodesUI.onTypedCostField);
            }
            sleekUInt32Field.onTypedUInt32 = EditorEnvironmentNodesUI.< > f__mg$cache7;
            EditorEnvironmentNodesUI.container.add(EditorEnvironmentNodesUI.costField);
            EditorEnvironmentNodesUI.costField.isVisible           = false;
            EditorEnvironmentNodesUI.heightToggle                  = new SleekToggle();
            EditorEnvironmentNodesUI.heightToggle.positionOffset_X = -40;
            EditorEnvironmentNodesUI.heightToggle.positionOffset_Y = 110;
            EditorEnvironmentNodesUI.heightToggle.positionScale_X  = 1f;
            EditorEnvironmentNodesUI.heightToggle.sizeOffset_X     = 40;
            EditorEnvironmentNodesUI.heightToggle.sizeOffset_Y     = 40;
            EditorEnvironmentNodesUI.heightToggle.addLabel(local.format("Height_Label"), ESleekSide.LEFT);
            SleekToggle sleekToggle = EditorEnvironmentNodesUI.heightToggle;

            if (EditorEnvironmentNodesUI.< > f__mg$cache8 == null)
            {
                EditorEnvironmentNodesUI.< > f__mg$cache8 = new Toggled(EditorEnvironmentNodesUI.onToggledHeightToggle);
            }
            sleekToggle.onToggled = EditorEnvironmentNodesUI.< > f__mg$cache8;
            EditorEnvironmentNodesUI.container.add(EditorEnvironmentNodesUI.heightToggle);
            EditorEnvironmentNodesUI.heightToggle.isVisible           = false;
            EditorEnvironmentNodesUI.noWeaponsToggle                  = new SleekToggle();
            EditorEnvironmentNodesUI.noWeaponsToggle.positionOffset_X = -40;
            EditorEnvironmentNodesUI.noWeaponsToggle.positionOffset_Y = 160;
            EditorEnvironmentNodesUI.noWeaponsToggle.positionScale_X  = 1f;
            EditorEnvironmentNodesUI.noWeaponsToggle.sizeOffset_X     = 40;
            EditorEnvironmentNodesUI.noWeaponsToggle.sizeOffset_Y     = 40;
            EditorEnvironmentNodesUI.noWeaponsToggle.addLabel(local.format("No_Weapons_Label"), ESleekSide.LEFT);
            SleekToggle sleekToggle2 = EditorEnvironmentNodesUI.noWeaponsToggle;

            if (EditorEnvironmentNodesUI.< > f__mg$cache9 == null)
            {
                EditorEnvironmentNodesUI.< > f__mg$cache9 = new Toggled(EditorEnvironmentNodesUI.onToggledNoWeaponsToggle);
            }
            sleekToggle2.onToggled = EditorEnvironmentNodesUI.< > f__mg$cache9;
            EditorEnvironmentNodesUI.container.add(EditorEnvironmentNodesUI.noWeaponsToggle);
            EditorEnvironmentNodesUI.noWeaponsToggle.isVisible           = false;
            EditorEnvironmentNodesUI.noBuildablesToggle                  = new SleekToggle();
            EditorEnvironmentNodesUI.noBuildablesToggle.positionOffset_X = -40;
            EditorEnvironmentNodesUI.noBuildablesToggle.positionOffset_Y = 210;
            EditorEnvironmentNodesUI.noBuildablesToggle.positionScale_X  = 1f;
            EditorEnvironmentNodesUI.noBuildablesToggle.sizeOffset_X     = 40;
            EditorEnvironmentNodesUI.noBuildablesToggle.sizeOffset_Y     = 40;
            EditorEnvironmentNodesUI.noBuildablesToggle.addLabel(local.format("No_Buildables_Label"), ESleekSide.LEFT);
            SleekToggle sleekToggle3 = EditorEnvironmentNodesUI.noBuildablesToggle;

            if (EditorEnvironmentNodesUI.< > f__mg$cacheA == null)
            {
                EditorEnvironmentNodesUI.< > f__mg$cacheA = new Toggled(EditorEnvironmentNodesUI.onToggledNoBuildablesToggle);
            }
            sleekToggle3.onToggled = EditorEnvironmentNodesUI.< > f__mg$cacheA;
            EditorEnvironmentNodesUI.container.add(EditorEnvironmentNodesUI.noBuildablesToggle);
            EditorEnvironmentNodesUI.noBuildablesToggle.isVisible = false;
            EditorEnvironmentNodesUI.spawnIDField = new SleekUInt16Field();
            EditorEnvironmentNodesUI.spawnIDField.positionOffset_X = -200;
            EditorEnvironmentNodesUI.spawnIDField.positionOffset_Y = 80;
            EditorEnvironmentNodesUI.spawnIDField.positionScale_X  = 1f;
            EditorEnvironmentNodesUI.spawnIDField.sizeOffset_X     = 200;
            EditorEnvironmentNodesUI.spawnIDField.sizeOffset_Y     = 30;
            EditorEnvironmentNodesUI.spawnIDField.addLabel(local.format("Spawn_ID_Label"), ESleekSide.LEFT);
            SleekUInt16Field sleekUInt16Field2 = EditorEnvironmentNodesUI.spawnIDField;

            if (EditorEnvironmentNodesUI.< > f__mg$cacheB == null)
            {
                EditorEnvironmentNodesUI.< > f__mg$cacheB = new TypedUInt16(EditorEnvironmentNodesUI.onTypedSpawnIDField);
            }
            sleekUInt16Field2.onTypedUInt16 = EditorEnvironmentNodesUI.< > f__mg$cacheB;
            EditorEnvironmentNodesUI.container.add(EditorEnvironmentNodesUI.spawnIDField);
            EditorEnvironmentNodesUI.spawnIDField.isVisible         = false;
            EditorEnvironmentNodesUI.effectIDField                  = new SleekUInt16Field();
            EditorEnvironmentNodesUI.effectIDField.positionOffset_X = -200;
            EditorEnvironmentNodesUI.effectIDField.positionOffset_Y = 270;
            EditorEnvironmentNodesUI.effectIDField.positionScale_X  = 1f;
            EditorEnvironmentNodesUI.effectIDField.sizeOffset_X     = 200;
            EditorEnvironmentNodesUI.effectIDField.sizeOffset_Y     = 30;
            EditorEnvironmentNodesUI.effectIDField.addLabel(local.format("Effect_ID_Label"), ESleekSide.LEFT);
            SleekUInt16Field sleekUInt16Field3 = EditorEnvironmentNodesUI.effectIDField;

            if (EditorEnvironmentNodesUI.< > f__mg$cacheC == null)
            {
                EditorEnvironmentNodesUI.< > f__mg$cacheC = new TypedUInt16(EditorEnvironmentNodesUI.onTypedEffectIDField);
            }
            sleekUInt16Field3.onTypedUInt16 = EditorEnvironmentNodesUI.< > f__mg$cacheC;
            EditorEnvironmentNodesUI.container.add(EditorEnvironmentNodesUI.effectIDField);
            EditorEnvironmentNodesUI.effectIDField.isVisible        = false;
            EditorEnvironmentNodesUI.noWaterToggle                  = new SleekToggle();
            EditorEnvironmentNodesUI.noWaterToggle.positionOffset_X = -40;
            EditorEnvironmentNodesUI.noWaterToggle.positionOffset_Y = 310;
            EditorEnvironmentNodesUI.noWaterToggle.positionScale_X  = 1f;
            EditorEnvironmentNodesUI.noWaterToggle.sizeOffset_X     = 40;
            EditorEnvironmentNodesUI.noWaterToggle.sizeOffset_Y     = 40;
            EditorEnvironmentNodesUI.noWaterToggle.addLabel(local.format("No_Water_Label"), ESleekSide.LEFT);
            SleekToggle sleekToggle4 = EditorEnvironmentNodesUI.noWaterToggle;

            if (EditorEnvironmentNodesUI.< > f__mg$cacheD == null)
            {
                EditorEnvironmentNodesUI.< > f__mg$cacheD = new Toggled(EditorEnvironmentNodesUI.onToggledNoWaterToggle);
            }
            sleekToggle4.onToggled = EditorEnvironmentNodesUI.< > f__mg$cacheD;
            EditorEnvironmentNodesUI.container.add(EditorEnvironmentNodesUI.noWaterToggle);
            EditorEnvironmentNodesUI.noWaterToggle.isVisible           = false;
            EditorEnvironmentNodesUI.noLightingToggle                  = new SleekToggle();
            EditorEnvironmentNodesUI.noLightingToggle.positionOffset_X = -40;
            EditorEnvironmentNodesUI.noLightingToggle.positionOffset_Y = 360;
            EditorEnvironmentNodesUI.noLightingToggle.positionScale_X  = 1f;
            EditorEnvironmentNodesUI.noLightingToggle.sizeOffset_X     = 40;
            EditorEnvironmentNodesUI.noLightingToggle.sizeOffset_Y     = 40;
            EditorEnvironmentNodesUI.noLightingToggle.addLabel(local.format("No_Lighting_Label"), ESleekSide.LEFT);
            SleekToggle sleekToggle5 = EditorEnvironmentNodesUI.noLightingToggle;

            if (EditorEnvironmentNodesUI.< > f__mg$cacheE == null)
            {
                EditorEnvironmentNodesUI.< > f__mg$cacheE = new Toggled(EditorEnvironmentNodesUI.onToggledNoLightingToggle);
            }
            sleekToggle5.onToggled = EditorEnvironmentNodesUI.< > f__mg$cacheE;
            EditorEnvironmentNodesUI.container.add(EditorEnvironmentNodesUI.noLightingToggle);
            EditorEnvironmentNodesUI.noLightingToggle.isVisible = false;
            EditorEnvironmentNodesUI.typeButton = new SleekButtonState(new GUIContent[]
            {
                new GUIContent(local.format("Location")),
                new GUIContent(local.format("Safezone")),
                new GUIContent(local.format("Purchase")),
                new GUIContent(local.format("Arena")),
                new GUIContent(local.format("Deadzone")),
                new GUIContent(local.format("Airdrop")),
                new GUIContent(local.format("Effect"))
            });
            EditorEnvironmentNodesUI.typeButton.positionOffset_Y = -30;
            EditorEnvironmentNodesUI.typeButton.positionScale_Y  = 1f;
            EditorEnvironmentNodesUI.typeButton.sizeOffset_X     = 200;
            EditorEnvironmentNodesUI.typeButton.sizeOffset_Y     = 30;
            EditorEnvironmentNodesUI.typeButton.tooltip          = local.format("Type_Tooltip");
            SleekButtonState sleekButtonState2 = EditorEnvironmentNodesUI.typeButton;

            if (EditorEnvironmentNodesUI.< > f__mg$cacheF == null)
            {
                EditorEnvironmentNodesUI.< > f__mg$cacheF = new SwappedState(EditorEnvironmentNodesUI.onSwappedType);
            }
            sleekButtonState2.onSwappedState = EditorEnvironmentNodesUI.< > f__mg$cacheF;
            EditorEnvironmentNodesUI.container.add(EditorEnvironmentNodesUI.typeButton);
        }
        public EditorSpawnsZombiesUI()
        {
            EditorSpawnsZombiesUI.localization = Localization.read("/Editor/EditorSpawnsZombies.dat");
            Bundle bundle = Bundles.getBundle("/Bundles/Textures/Edit/Icons/EditorSpawnsZombies/EditorSpawnsZombies.unity3d");

            EditorSpawnsZombiesUI.container = new Sleek();
            EditorSpawnsZombiesUI.container.positionOffset_X = 10;
            EditorSpawnsZombiesUI.container.positionOffset_Y = 10;
            EditorSpawnsZombiesUI.container.positionScale_X  = 1f;
            EditorSpawnsZombiesUI.container.sizeOffset_X     = -20;
            EditorSpawnsZombiesUI.container.sizeOffset_Y     = -20;
            EditorSpawnsZombiesUI.container.sizeScale_X      = 1f;
            EditorSpawnsZombiesUI.container.sizeScale_Y      = 1f;
            EditorUI.window.add(EditorSpawnsZombiesUI.container);
            EditorSpawnsZombiesUI.active         = false;
            EditorSpawnsZombiesUI.tableScrollBox = new SleekScrollBox();
            EditorSpawnsZombiesUI.tableScrollBox.positionOffset_X = -470;
            EditorSpawnsZombiesUI.tableScrollBox.positionOffset_Y = 120;
            EditorSpawnsZombiesUI.tableScrollBox.positionScale_X  = 1f;
            EditorSpawnsZombiesUI.tableScrollBox.sizeOffset_X     = 470;
            EditorSpawnsZombiesUI.tableScrollBox.sizeOffset_Y     = 200;
            EditorSpawnsZombiesUI.container.add(EditorSpawnsZombiesUI.tableScrollBox);
            EditorSpawnsZombiesUI.tableNameField = new SleekField();
            EditorSpawnsZombiesUI.tableNameField.positionOffset_X = -230;
            EditorSpawnsZombiesUI.tableNameField.positionOffset_Y = 330;
            EditorSpawnsZombiesUI.tableNameField.positionScale_X  = 1f;
            EditorSpawnsZombiesUI.tableNameField.sizeOffset_X     = 230;
            EditorSpawnsZombiesUI.tableNameField.sizeOffset_Y     = 30;
            EditorSpawnsZombiesUI.tableNameField.maxLength        = 64;
            EditorSpawnsZombiesUI.tableNameField.addLabel(EditorSpawnsZombiesUI.localization.format("TableNameFieldLabelText"), ESleekSide.LEFT);
            SleekField sleekField = EditorSpawnsZombiesUI.tableNameField;
            Delegate   onTyped    = sleekField.onTyped;

            if (EditorSpawnsZombiesUI.< > f__mg$cache4 == null)
            {
                EditorSpawnsZombiesUI.< > f__mg$cache4 = new Typed(EditorSpawnsZombiesUI.onTypedNameField);
            }
            sleekField.onTyped = (Typed)Delegate.Combine(onTyped, EditorSpawnsZombiesUI.< > f__mg$cache4);
            EditorSpawnsZombiesUI.container.add(EditorSpawnsZombiesUI.tableNameField);
            EditorSpawnsZombiesUI.addTableButton = new SleekButtonIcon((Texture2D)bundle.load("Add"));
            EditorSpawnsZombiesUI.addTableButton.positionOffset_X = -230;
            EditorSpawnsZombiesUI.addTableButton.positionOffset_Y = 370;
            EditorSpawnsZombiesUI.addTableButton.positionScale_X  = 1f;
            EditorSpawnsZombiesUI.addTableButton.sizeOffset_X     = 110;
            EditorSpawnsZombiesUI.addTableButton.sizeOffset_Y     = 30;
            EditorSpawnsZombiesUI.addTableButton.text             = EditorSpawnsZombiesUI.localization.format("AddTableButtonText");
            EditorSpawnsZombiesUI.addTableButton.tooltip          = EditorSpawnsZombiesUI.localization.format("AddTableButtonTooltip");
            SleekButton sleekButton = EditorSpawnsZombiesUI.addTableButton;

            if (EditorSpawnsZombiesUI.< > f__mg$cache5 == null)
            {
                EditorSpawnsZombiesUI.< > f__mg$cache5 = new ClickedButton(EditorSpawnsZombiesUI.onClickedAddTableButton);
            }
            sleekButton.onClickedButton = EditorSpawnsZombiesUI.< > f__mg$cache5;
            EditorSpawnsZombiesUI.container.add(EditorSpawnsZombiesUI.addTableButton);
            EditorSpawnsZombiesUI.removeTableButton = new SleekButtonIcon((Texture2D)bundle.load("Remove"));
            EditorSpawnsZombiesUI.removeTableButton.positionOffset_X = -110;
            EditorSpawnsZombiesUI.removeTableButton.positionOffset_Y = 370;
            EditorSpawnsZombiesUI.removeTableButton.positionScale_X  = 1f;
            EditorSpawnsZombiesUI.removeTableButton.sizeOffset_X     = 110;
            EditorSpawnsZombiesUI.removeTableButton.sizeOffset_Y     = 30;
            EditorSpawnsZombiesUI.removeTableButton.text             = EditorSpawnsZombiesUI.localization.format("RemoveTableButtonText");
            EditorSpawnsZombiesUI.removeTableButton.tooltip          = EditorSpawnsZombiesUI.localization.format("RemoveTableButtonTooltip");
            SleekButton sleekButton2 = EditorSpawnsZombiesUI.removeTableButton;

            if (EditorSpawnsZombiesUI.< > f__mg$cache6 == null)
            {
                EditorSpawnsZombiesUI.< > f__mg$cache6 = new ClickedButton(EditorSpawnsZombiesUI.onClickedRemoveTableButton);
            }
            sleekButton2.onClickedButton = EditorSpawnsZombiesUI.< > f__mg$cache6;
            EditorSpawnsZombiesUI.container.add(EditorSpawnsZombiesUI.removeTableButton);
            EditorSpawnsZombiesUI.updateTables();
            EditorSpawnsZombiesUI.spawnsScrollBox = new SleekScrollBox();
            EditorSpawnsZombiesUI.spawnsScrollBox.positionOffset_X = -470;
            EditorSpawnsZombiesUI.spawnsScrollBox.positionOffset_Y = 410;
            EditorSpawnsZombiesUI.spawnsScrollBox.positionScale_X  = 1f;
            EditorSpawnsZombiesUI.spawnsScrollBox.sizeOffset_X     = 470;
            EditorSpawnsZombiesUI.spawnsScrollBox.sizeOffset_Y     = -410;
            EditorSpawnsZombiesUI.spawnsScrollBox.sizeScale_Y      = 1f;
            EditorSpawnsZombiesUI.spawnsScrollBox.area             = new Rect(0f, 0f, 5f, 1000f);
            EditorSpawnsZombiesUI.container.add(EditorSpawnsZombiesUI.spawnsScrollBox);
            EditorSpawnsZombiesUI.tableColorPicker = new SleekColorPicker();
            EditorSpawnsZombiesUI.tableColorPicker.positionOffset_X = 200;
            SleekColorPicker sleekColorPicker = EditorSpawnsZombiesUI.tableColorPicker;

            if (EditorSpawnsZombiesUI.< > f__mg$cache7 == null)
            {
                EditorSpawnsZombiesUI.< > f__mg$cache7 = new ColorPicked(EditorSpawnsZombiesUI.onZombieColorPicked);
            }
            sleekColorPicker.onColorPicked = EditorSpawnsZombiesUI.< > f__mg$cache7;
            EditorSpawnsZombiesUI.spawnsScrollBox.add(EditorSpawnsZombiesUI.tableColorPicker);
            EditorSpawnsZombiesUI.megaToggle = new SleekToggle();
            EditorSpawnsZombiesUI.megaToggle.positionOffset_X = 240;
            EditorSpawnsZombiesUI.megaToggle.positionOffset_Y = 130;
            EditorSpawnsZombiesUI.megaToggle.sizeOffset_X     = 40;
            EditorSpawnsZombiesUI.megaToggle.sizeOffset_Y     = 40;
            SleekToggle sleekToggle = EditorSpawnsZombiesUI.megaToggle;

            if (EditorSpawnsZombiesUI.< > f__mg$cache8 == null)
            {
                EditorSpawnsZombiesUI.< > f__mg$cache8 = new Toggled(EditorSpawnsZombiesUI.onToggledMegaToggle);
            }
            sleekToggle.onToggled = EditorSpawnsZombiesUI.< > f__mg$cache8;
            EditorSpawnsZombiesUI.megaToggle.addLabel(EditorSpawnsZombiesUI.localization.format("MegaToggleLabelText"), ESleekSide.LEFT);
            EditorSpawnsZombiesUI.spawnsScrollBox.add(EditorSpawnsZombiesUI.megaToggle);
            EditorSpawnsZombiesUI.healthField = new SleekUInt16Field();
            EditorSpawnsZombiesUI.healthField.positionOffset_X = 240;
            EditorSpawnsZombiesUI.healthField.positionOffset_Y = 180;
            EditorSpawnsZombiesUI.healthField.sizeOffset_X     = 200;
            EditorSpawnsZombiesUI.healthField.sizeOffset_Y     = 30;
            SleekUInt16Field sleekUInt16Field = EditorSpawnsZombiesUI.healthField;

            if (EditorSpawnsZombiesUI.< > f__mg$cache9 == null)
            {
                EditorSpawnsZombiesUI.< > f__mg$cache9 = new TypedUInt16(EditorSpawnsZombiesUI.onHealthFieldTyped);
            }
            sleekUInt16Field.onTypedUInt16 = EditorSpawnsZombiesUI.< > f__mg$cache9;
            EditorSpawnsZombiesUI.healthField.addLabel(EditorSpawnsZombiesUI.localization.format("HealthFieldLabelText"), ESleekSide.LEFT);
            EditorSpawnsZombiesUI.spawnsScrollBox.add(EditorSpawnsZombiesUI.healthField);
            EditorSpawnsZombiesUI.damageField = new SleekByteField();
            EditorSpawnsZombiesUI.damageField.positionOffset_X = 240;
            EditorSpawnsZombiesUI.damageField.positionOffset_Y = 220;
            EditorSpawnsZombiesUI.damageField.sizeOffset_X     = 200;
            EditorSpawnsZombiesUI.damageField.sizeOffset_Y     = 30;
            SleekByteField sleekByteField = EditorSpawnsZombiesUI.damageField;

            if (EditorSpawnsZombiesUI.< > f__mg$cacheA == null)
            {
                EditorSpawnsZombiesUI.< > f__mg$cacheA = new TypedByte(EditorSpawnsZombiesUI.onDamageFieldTyped);
            }
            sleekByteField.onTypedByte = EditorSpawnsZombiesUI.< > f__mg$cacheA;
            EditorSpawnsZombiesUI.damageField.addLabel(EditorSpawnsZombiesUI.localization.format("DamageFieldLabelText"), ESleekSide.LEFT);
            EditorSpawnsZombiesUI.spawnsScrollBox.add(EditorSpawnsZombiesUI.damageField);
            EditorSpawnsZombiesUI.lootIndexField = new SleekByteField();
            EditorSpawnsZombiesUI.lootIndexField.positionOffset_X = 240;
            EditorSpawnsZombiesUI.lootIndexField.positionOffset_Y = 260;
            EditorSpawnsZombiesUI.lootIndexField.sizeOffset_X     = 200;
            EditorSpawnsZombiesUI.lootIndexField.sizeOffset_Y     = 30;
            SleekByteField sleekByteField2 = EditorSpawnsZombiesUI.lootIndexField;

            if (EditorSpawnsZombiesUI.< > f__mg$cacheB == null)
            {
                EditorSpawnsZombiesUI.< > f__mg$cacheB = new TypedByte(EditorSpawnsZombiesUI.onLootIndexFieldTyped);
            }
            sleekByteField2.onTypedByte = EditorSpawnsZombiesUI.< > f__mg$cacheB;
            EditorSpawnsZombiesUI.lootIndexField.addLabel(EditorSpawnsZombiesUI.localization.format("LootIndexFieldLabelText"), ESleekSide.LEFT);
            EditorSpawnsZombiesUI.spawnsScrollBox.add(EditorSpawnsZombiesUI.lootIndexField);
            EditorSpawnsZombiesUI.lootIDField = new SleekUInt16Field();
            EditorSpawnsZombiesUI.lootIDField.positionOffset_X = 240;
            EditorSpawnsZombiesUI.lootIDField.positionOffset_Y = 300;
            EditorSpawnsZombiesUI.lootIDField.sizeOffset_X     = 200;
            EditorSpawnsZombiesUI.lootIDField.sizeOffset_Y     = 30;
            SleekUInt16Field sleekUInt16Field2 = EditorSpawnsZombiesUI.lootIDField;

            if (EditorSpawnsZombiesUI.< > f__mg$cacheC == null)
            {
                EditorSpawnsZombiesUI.< > f__mg$cacheC = new TypedUInt16(EditorSpawnsZombiesUI.onLootIDFieldTyped);
            }
            sleekUInt16Field2.onTypedUInt16 = EditorSpawnsZombiesUI.< > f__mg$cacheC;
            EditorSpawnsZombiesUI.lootIDField.addLabel(EditorSpawnsZombiesUI.localization.format("LootIDFieldLabelText"), ESleekSide.LEFT);
            EditorSpawnsZombiesUI.spawnsScrollBox.add(EditorSpawnsZombiesUI.lootIDField);
            EditorSpawnsZombiesUI.xpField = new SleekUInt32Field();
            EditorSpawnsZombiesUI.xpField.positionOffset_X = 240;
            EditorSpawnsZombiesUI.xpField.positionOffset_Y = 340;
            EditorSpawnsZombiesUI.xpField.sizeOffset_X     = 200;
            EditorSpawnsZombiesUI.xpField.sizeOffset_Y     = 30;
            SleekUInt32Field sleekUInt32Field = EditorSpawnsZombiesUI.xpField;

            if (EditorSpawnsZombiesUI.< > f__mg$cacheD == null)
            {
                EditorSpawnsZombiesUI.< > f__mg$cacheD = new TypedUInt32(EditorSpawnsZombiesUI.onXPFieldTyped);
            }
            sleekUInt32Field.onTypedUInt32 = EditorSpawnsZombiesUI.< > f__mg$cacheD;
            EditorSpawnsZombiesUI.xpField.addLabel(EditorSpawnsZombiesUI.localization.format("XPFieldLabelText"), ESleekSide.LEFT);
            EditorSpawnsZombiesUI.spawnsScrollBox.add(EditorSpawnsZombiesUI.xpField);
            EditorSpawnsZombiesUI.regenField = new SleekSingleField();
            EditorSpawnsZombiesUI.regenField.positionOffset_X = 240;
            EditorSpawnsZombiesUI.regenField.positionOffset_Y = 380;
            EditorSpawnsZombiesUI.regenField.sizeOffset_X     = 200;
            EditorSpawnsZombiesUI.regenField.sizeOffset_Y     = 30;
            SleekSingleField sleekSingleField = EditorSpawnsZombiesUI.regenField;

            if (EditorSpawnsZombiesUI.< > f__mg$cacheE == null)
            {
                EditorSpawnsZombiesUI.< > f__mg$cacheE = new TypedSingle(EditorSpawnsZombiesUI.onRegenFieldTyped);
            }
            sleekSingleField.onTypedSingle = EditorSpawnsZombiesUI.< > f__mg$cacheE;
            EditorSpawnsZombiesUI.regenField.addLabel(EditorSpawnsZombiesUI.localization.format("RegenFieldLabelText"), ESleekSide.LEFT);
            EditorSpawnsZombiesUI.spawnsScrollBox.add(EditorSpawnsZombiesUI.regenField);
            EditorSpawnsZombiesUI.difficultyGUIDField = new SleekField();
            EditorSpawnsZombiesUI.difficultyGUIDField.positionOffset_X = 240;
            EditorSpawnsZombiesUI.difficultyGUIDField.positionOffset_Y = 420;
            EditorSpawnsZombiesUI.difficultyGUIDField.sizeOffset_X     = 200;
            EditorSpawnsZombiesUI.difficultyGUIDField.sizeOffset_Y     = 30;
            EditorSpawnsZombiesUI.difficultyGUIDField.maxLength        = 32;
            SleekField sleekField2 = EditorSpawnsZombiesUI.difficultyGUIDField;

            if (EditorSpawnsZombiesUI.< > f__mg$cacheF == null)
            {
                EditorSpawnsZombiesUI.< > f__mg$cacheF = new Typed(EditorSpawnsZombiesUI.onDifficultyGUIDFieldTyped);
            }
            sleekField2.onTyped = EditorSpawnsZombiesUI.< > f__mg$cacheF;
            EditorSpawnsZombiesUI.difficultyGUIDField.addLabel(EditorSpawnsZombiesUI.localization.format("DifficultyGUIDFieldLabelText"), ESleekSide.LEFT);
            EditorSpawnsZombiesUI.spawnsScrollBox.add(EditorSpawnsZombiesUI.difficultyGUIDField);
            EditorSpawnsZombiesUI.itemIDField = new SleekUInt16Field();
            EditorSpawnsZombiesUI.itemIDField.positionOffset_X = 240;
            EditorSpawnsZombiesUI.itemIDField.sizeOffset_X     = 200;
            EditorSpawnsZombiesUI.itemIDField.sizeOffset_Y     = 30;
            EditorSpawnsZombiesUI.itemIDField.addLabel(EditorSpawnsZombiesUI.localization.format("ItemIDFieldLabelText"), ESleekSide.LEFT);
            EditorSpawnsZombiesUI.spawnsScrollBox.add(EditorSpawnsZombiesUI.itemIDField);
            EditorSpawnsZombiesUI.addItemButton = new SleekButtonIcon((Texture2D)bundle.load("Add"));
            EditorSpawnsZombiesUI.addItemButton.positionOffset_X = 240;
            EditorSpawnsZombiesUI.addItemButton.sizeOffset_X     = 95;
            EditorSpawnsZombiesUI.addItemButton.sizeOffset_Y     = 30;
            EditorSpawnsZombiesUI.addItemButton.text             = EditorSpawnsZombiesUI.localization.format("AddItemButtonText");
            EditorSpawnsZombiesUI.addItemButton.tooltip          = EditorSpawnsZombiesUI.localization.format("AddItemButtonTooltip");
            SleekButton sleekButton3 = EditorSpawnsZombiesUI.addItemButton;

            if (EditorSpawnsZombiesUI.< > f__mg$cache10 == null)
            {
                EditorSpawnsZombiesUI.< > f__mg$cache10 = new ClickedButton(EditorSpawnsZombiesUI.onClickedAddItemButton);
            }
            sleekButton3.onClickedButton = EditorSpawnsZombiesUI.< > f__mg$cache10;
            EditorSpawnsZombiesUI.spawnsScrollBox.add(EditorSpawnsZombiesUI.addItemButton);
            EditorSpawnsZombiesUI.removeItemButton = new SleekButtonIcon((Texture2D)bundle.load("Remove"));
            EditorSpawnsZombiesUI.removeItemButton.positionOffset_X = 345;
            EditorSpawnsZombiesUI.removeItemButton.sizeOffset_X     = 95;
            EditorSpawnsZombiesUI.removeItemButton.sizeOffset_Y     = 30;
            EditorSpawnsZombiesUI.removeItemButton.text             = EditorSpawnsZombiesUI.localization.format("RemoveItemButtonText");
            EditorSpawnsZombiesUI.removeItemButton.tooltip          = EditorSpawnsZombiesUI.localization.format("RemoveItemButtonTooltip");
            SleekButton sleekButton4 = EditorSpawnsZombiesUI.removeItemButton;

            if (EditorSpawnsZombiesUI.< > f__mg$cache11 == null)
            {
                EditorSpawnsZombiesUI.< > f__mg$cache11 = new ClickedButton(EditorSpawnsZombiesUI.onClickedRemoveItemButton);
            }
            sleekButton4.onClickedButton = EditorSpawnsZombiesUI.< > f__mg$cache11;
            EditorSpawnsZombiesUI.spawnsScrollBox.add(EditorSpawnsZombiesUI.removeItemButton);
            EditorSpawnsZombiesUI.selectedBox = new SleekBox();
            EditorSpawnsZombiesUI.selectedBox.positionOffset_X = -230;
            EditorSpawnsZombiesUI.selectedBox.positionOffset_Y = 80;
            EditorSpawnsZombiesUI.selectedBox.positionScale_X  = 1f;
            EditorSpawnsZombiesUI.selectedBox.sizeOffset_X     = 230;
            EditorSpawnsZombiesUI.selectedBox.sizeOffset_Y     = 30;
            EditorSpawnsZombiesUI.selectedBox.addLabel(EditorSpawnsZombiesUI.localization.format("SelectionBoxLabelText"), ESleekSide.LEFT);
            EditorSpawnsZombiesUI.container.add(EditorSpawnsZombiesUI.selectedBox);
            EditorSpawnsZombiesUI.updateSelection();
            EditorSpawnsZombiesUI.radiusSlider = new SleekSlider();
            EditorSpawnsZombiesUI.radiusSlider.positionOffset_Y = -100;
            EditorSpawnsZombiesUI.radiusSlider.positionScale_Y  = 1f;
            EditorSpawnsZombiesUI.radiusSlider.sizeOffset_X     = 200;
            EditorSpawnsZombiesUI.radiusSlider.sizeOffset_Y     = 20;
            EditorSpawnsZombiesUI.radiusSlider.state            = (float)(EditorSpawns.radius - EditorSpawns.MIN_REMOVE_SIZE) / (float)EditorSpawns.MAX_REMOVE_SIZE;
            EditorSpawnsZombiesUI.radiusSlider.orientation      = ESleekOrientation.HORIZONTAL;
            EditorSpawnsZombiesUI.radiusSlider.addLabel(EditorSpawnsZombiesUI.localization.format("RadiusSliderLabelText"), ESleekSide.RIGHT);
            SleekSlider sleekSlider = EditorSpawnsZombiesUI.radiusSlider;

            if (EditorSpawnsZombiesUI.< > f__mg$cache12 == null)
            {
                EditorSpawnsZombiesUI.< > f__mg$cache12 = new Dragged(EditorSpawnsZombiesUI.onDraggedRadiusSlider);
            }
            sleekSlider.onDragged = EditorSpawnsZombiesUI.< > f__mg$cache12;
            EditorSpawnsZombiesUI.container.add(EditorSpawnsZombiesUI.radiusSlider);
            EditorSpawnsZombiesUI.addButton = new SleekButtonIcon((Texture2D)bundle.load("Add"));
            EditorSpawnsZombiesUI.addButton.positionOffset_Y = -70;
            EditorSpawnsZombiesUI.addButton.positionScale_Y  = 1f;
            EditorSpawnsZombiesUI.addButton.sizeOffset_X     = 200;
            EditorSpawnsZombiesUI.addButton.sizeOffset_Y     = 30;
            EditorSpawnsZombiesUI.addButton.text             = EditorSpawnsZombiesUI.localization.format("AddButtonText", new object[]
            {
                ControlsSettings.tool_0
            });
            EditorSpawnsZombiesUI.addButton.tooltip = EditorSpawnsZombiesUI.localization.format("AddButtonTooltip");
            SleekButton sleekButton5 = EditorSpawnsZombiesUI.addButton;

            if (EditorSpawnsZombiesUI.< > f__mg$cache13 == null)
            {
                EditorSpawnsZombiesUI.< > f__mg$cache13 = new ClickedButton(EditorSpawnsZombiesUI.onClickedAddButton);
            }
            sleekButton5.onClickedButton = EditorSpawnsZombiesUI.< > f__mg$cache13;
            EditorSpawnsZombiesUI.container.add(EditorSpawnsZombiesUI.addButton);
            EditorSpawnsZombiesUI.removeButton = new SleekButtonIcon((Texture2D)bundle.load("Remove"));
            EditorSpawnsZombiesUI.removeButton.positionOffset_Y = -30;
            EditorSpawnsZombiesUI.removeButton.positionScale_Y  = 1f;
            EditorSpawnsZombiesUI.removeButton.sizeOffset_X     = 200;
            EditorSpawnsZombiesUI.removeButton.sizeOffset_Y     = 30;
            EditorSpawnsZombiesUI.removeButton.text             = EditorSpawnsZombiesUI.localization.format("RemoveButtonText", new object[]
            {
                ControlsSettings.tool_1
            });
            EditorSpawnsZombiesUI.removeButton.tooltip = EditorSpawnsZombiesUI.localization.format("RemoveButtonTooltip");
            SleekButton sleekButton6 = EditorSpawnsZombiesUI.removeButton;

            if (EditorSpawnsZombiesUI.< > f__mg$cache14 == null)
            {
                EditorSpawnsZombiesUI.< > f__mg$cache14 = new ClickedButton(EditorSpawnsZombiesUI.onClickedRemoveButton);
            }
            sleekButton6.onClickedButton = EditorSpawnsZombiesUI.< > f__mg$cache14;
            EditorSpawnsZombiesUI.container.add(EditorSpawnsZombiesUI.removeButton);
            bundle.unload();
        }
        // Token: 0x0600355D RID: 13661 RVA: 0x00163FC4 File Offset: 0x001623C4
        public EditorSpawnsVehiclesUI()
        {
            Local  local  = Localization.read("/Editor/EditorSpawnsVehicles.dat");
            Bundle bundle = Bundles.getBundle("/Bundles/Textures/Edit/Icons/EditorSpawnsVehicles/EditorSpawnsVehicles.unity3d");

            EditorSpawnsVehiclesUI.container = new Sleek();
            EditorSpawnsVehiclesUI.container.positionOffset_X = 10;
            EditorSpawnsVehiclesUI.container.positionOffset_Y = 10;
            EditorSpawnsVehiclesUI.container.positionScale_X  = 1f;
            EditorSpawnsVehiclesUI.container.sizeOffset_X     = -20;
            EditorSpawnsVehiclesUI.container.sizeOffset_Y     = -20;
            EditorSpawnsVehiclesUI.container.sizeScale_X      = 1f;
            EditorSpawnsVehiclesUI.container.sizeScale_Y      = 1f;
            EditorUI.window.add(EditorSpawnsVehiclesUI.container);
            EditorSpawnsVehiclesUI.active         = false;
            EditorSpawnsVehiclesUI.tableScrollBox = new SleekScrollBox();
            EditorSpawnsVehiclesUI.tableScrollBox.positionOffset_X = -470;
            EditorSpawnsVehiclesUI.tableScrollBox.positionOffset_Y = 120;
            EditorSpawnsVehiclesUI.tableScrollBox.positionScale_X  = 1f;
            EditorSpawnsVehiclesUI.tableScrollBox.sizeOffset_X     = 470;
            EditorSpawnsVehiclesUI.tableScrollBox.sizeOffset_Y     = 200;
            EditorSpawnsVehiclesUI.container.add(EditorSpawnsVehiclesUI.tableScrollBox);
            EditorSpawnsVehiclesUI.tableNameField = new SleekField();
            EditorSpawnsVehiclesUI.tableNameField.positionOffset_X = -230;
            EditorSpawnsVehiclesUI.tableNameField.positionOffset_Y = 330;
            EditorSpawnsVehiclesUI.tableNameField.positionScale_X  = 1f;
            EditorSpawnsVehiclesUI.tableNameField.sizeOffset_X     = 230;
            EditorSpawnsVehiclesUI.tableNameField.sizeOffset_Y     = 30;
            EditorSpawnsVehiclesUI.tableNameField.maxLength        = 64;
            EditorSpawnsVehiclesUI.tableNameField.addLabel(local.format("TableNameFieldLabelText"), ESleekSide.LEFT);
            SleekField sleekField = EditorSpawnsVehiclesUI.tableNameField;
            Delegate   onTyped    = sleekField.onTyped;

            if (EditorSpawnsVehiclesUI.< > f__mg$cache4 == null)
            {
                EditorSpawnsVehiclesUI.< > f__mg$cache4 = new Typed(EditorSpawnsVehiclesUI.onTypedNameField);
            }
            sleekField.onTyped = (Typed)Delegate.Combine(onTyped, EditorSpawnsVehiclesUI.< > f__mg$cache4);
            EditorSpawnsVehiclesUI.container.add(EditorSpawnsVehiclesUI.tableNameField);
            EditorSpawnsVehiclesUI.addTableButton = new SleekButtonIcon((Texture2D)bundle.load("Add"));
            EditorSpawnsVehiclesUI.addTableButton.positionOffset_X = -230;
            EditorSpawnsVehiclesUI.addTableButton.positionOffset_Y = 370;
            EditorSpawnsVehiclesUI.addTableButton.positionScale_X  = 1f;
            EditorSpawnsVehiclesUI.addTableButton.sizeOffset_X     = 110;
            EditorSpawnsVehiclesUI.addTableButton.sizeOffset_Y     = 30;
            EditorSpawnsVehiclesUI.addTableButton.text             = local.format("AddTableButtonText");
            EditorSpawnsVehiclesUI.addTableButton.tooltip          = local.format("AddTableButtonTooltip");
            SleekButton sleekButton = EditorSpawnsVehiclesUI.addTableButton;

            if (EditorSpawnsVehiclesUI.< > f__mg$cache5 == null)
            {
                EditorSpawnsVehiclesUI.< > f__mg$cache5 = new ClickedButton(EditorSpawnsVehiclesUI.onClickedAddTableButton);
            }
            sleekButton.onClickedButton = EditorSpawnsVehiclesUI.< > f__mg$cache5;
            EditorSpawnsVehiclesUI.container.add(EditorSpawnsVehiclesUI.addTableButton);
            EditorSpawnsVehiclesUI.removeTableButton = new SleekButtonIcon((Texture2D)bundle.load("Remove"));
            EditorSpawnsVehiclesUI.removeTableButton.positionOffset_X = -110;
            EditorSpawnsVehiclesUI.removeTableButton.positionOffset_Y = 370;
            EditorSpawnsVehiclesUI.removeTableButton.positionScale_X  = 1f;
            EditorSpawnsVehiclesUI.removeTableButton.sizeOffset_X     = 110;
            EditorSpawnsVehiclesUI.removeTableButton.sizeOffset_Y     = 30;
            EditorSpawnsVehiclesUI.removeTableButton.text             = local.format("RemoveTableButtonText");
            EditorSpawnsVehiclesUI.removeTableButton.tooltip          = local.format("RemoveTableButtonTooltip");
            SleekButton sleekButton2 = EditorSpawnsVehiclesUI.removeTableButton;

            if (EditorSpawnsVehiclesUI.< > f__mg$cache6 == null)
            {
                EditorSpawnsVehiclesUI.< > f__mg$cache6 = new ClickedButton(EditorSpawnsVehiclesUI.onClickedRemoveTableButton);
            }
            sleekButton2.onClickedButton = EditorSpawnsVehiclesUI.< > f__mg$cache6;
            EditorSpawnsVehiclesUI.container.add(EditorSpawnsVehiclesUI.removeTableButton);
            EditorSpawnsVehiclesUI.updateTables();
            EditorSpawnsVehiclesUI.spawnsScrollBox = new SleekScrollBox();
            EditorSpawnsVehiclesUI.spawnsScrollBox.positionOffset_X = -470;
            EditorSpawnsVehiclesUI.spawnsScrollBox.positionOffset_Y = 410;
            EditorSpawnsVehiclesUI.spawnsScrollBox.positionScale_X  = 1f;
            EditorSpawnsVehiclesUI.spawnsScrollBox.sizeOffset_X     = 470;
            EditorSpawnsVehiclesUI.spawnsScrollBox.sizeOffset_Y     = -410;
            EditorSpawnsVehiclesUI.spawnsScrollBox.sizeScale_Y      = 1f;
            EditorSpawnsVehiclesUI.spawnsScrollBox.area             = new Rect(0f, 0f, 5f, 1000f);
            EditorSpawnsVehiclesUI.container.add(EditorSpawnsVehiclesUI.spawnsScrollBox);
            EditorSpawnsVehiclesUI.tableColorPicker = new SleekColorPicker();
            EditorSpawnsVehiclesUI.tableColorPicker.positionOffset_X = 200;
            SleekColorPicker sleekColorPicker = EditorSpawnsVehiclesUI.tableColorPicker;

            if (EditorSpawnsVehiclesUI.< > f__mg$cache7 == null)
            {
                EditorSpawnsVehiclesUI.< > f__mg$cache7 = new ColorPicked(EditorSpawnsVehiclesUI.onVehicleColorPicked);
            }
            sleekColorPicker.onColorPicked = EditorSpawnsVehiclesUI.< > f__mg$cache7;
            EditorSpawnsVehiclesUI.spawnsScrollBox.add(EditorSpawnsVehiclesUI.tableColorPicker);
            EditorSpawnsVehiclesUI.tableIDField = new SleekUInt16Field();
            EditorSpawnsVehiclesUI.tableIDField.positionOffset_X = 240;
            EditorSpawnsVehiclesUI.tableIDField.positionOffset_Y = 130;
            EditorSpawnsVehiclesUI.tableIDField.sizeOffset_X     = 200;
            EditorSpawnsVehiclesUI.tableIDField.sizeOffset_Y     = 30;
            SleekUInt16Field sleekUInt16Field = EditorSpawnsVehiclesUI.tableIDField;

            if (EditorSpawnsVehiclesUI.< > f__mg$cache8 == null)
            {
                EditorSpawnsVehiclesUI.< > f__mg$cache8 = new TypedUInt16(EditorSpawnsVehiclesUI.onTableIDFieldTyped);
            }
            sleekUInt16Field.onTypedUInt16 = EditorSpawnsVehiclesUI.< > f__mg$cache8;
            EditorSpawnsVehiclesUI.tableIDField.addLabel(local.format("TableIDFieldLabelText"), ESleekSide.LEFT);
            EditorSpawnsVehiclesUI.spawnsScrollBox.add(EditorSpawnsVehiclesUI.tableIDField);
            EditorSpawnsVehiclesUI.tierNameField = new SleekField();
            EditorSpawnsVehiclesUI.tierNameField.positionOffset_X = 240;
            EditorSpawnsVehiclesUI.tierNameField.sizeOffset_X     = 200;
            EditorSpawnsVehiclesUI.tierNameField.sizeOffset_Y     = 30;
            EditorSpawnsVehiclesUI.tierNameField.maxLength        = 64;
            EditorSpawnsVehiclesUI.tierNameField.addLabel(local.format("TierNameFieldLabelText"), ESleekSide.LEFT);
            SleekField sleekField2 = EditorSpawnsVehiclesUI.tierNameField;

            if (EditorSpawnsVehiclesUI.< > f__mg$cache9 == null)
            {
                EditorSpawnsVehiclesUI.< > f__mg$cache9 = new Typed(EditorSpawnsVehiclesUI.onTypedTierNameField);
            }
            sleekField2.onTyped = EditorSpawnsVehiclesUI.< > f__mg$cache9;
            EditorSpawnsVehiclesUI.spawnsScrollBox.add(EditorSpawnsVehiclesUI.tierNameField);
            EditorSpawnsVehiclesUI.addTierButton = new SleekButtonIcon((Texture2D)bundle.load("Add"));
            EditorSpawnsVehiclesUI.addTierButton.positionOffset_X = 240;
            EditorSpawnsVehiclesUI.addTierButton.sizeOffset_X     = 95;
            EditorSpawnsVehiclesUI.addTierButton.sizeOffset_Y     = 30;
            EditorSpawnsVehiclesUI.addTierButton.text             = local.format("AddTierButtonText");
            EditorSpawnsVehiclesUI.addTierButton.tooltip          = local.format("AddTierButtonTooltip");
            SleekButton sleekButton3 = EditorSpawnsVehiclesUI.addTierButton;

            if (EditorSpawnsVehiclesUI.< > f__mg$cacheA == null)
            {
                EditorSpawnsVehiclesUI.< > f__mg$cacheA = new ClickedButton(EditorSpawnsVehiclesUI.onClickedAddTierButton);
            }
            sleekButton3.onClickedButton = EditorSpawnsVehiclesUI.< > f__mg$cacheA;
            EditorSpawnsVehiclesUI.spawnsScrollBox.add(EditorSpawnsVehiclesUI.addTierButton);
            EditorSpawnsVehiclesUI.removeTierButton = new SleekButtonIcon((Texture2D)bundle.load("Remove"));
            EditorSpawnsVehiclesUI.removeTierButton.positionOffset_X = 345;
            EditorSpawnsVehiclesUI.removeTierButton.sizeOffset_X     = 95;
            EditorSpawnsVehiclesUI.removeTierButton.sizeOffset_Y     = 30;
            EditorSpawnsVehiclesUI.removeTierButton.text             = local.format("RemoveTierButtonText");
            EditorSpawnsVehiclesUI.removeTierButton.tooltip          = local.format("RemoveTierButtonTooltip");
            SleekButton sleekButton4 = EditorSpawnsVehiclesUI.removeTierButton;

            if (EditorSpawnsVehiclesUI.< > f__mg$cacheB == null)
            {
                EditorSpawnsVehiclesUI.< > f__mg$cacheB = new ClickedButton(EditorSpawnsVehiclesUI.onClickedRemoveTierButton);
            }
            sleekButton4.onClickedButton = EditorSpawnsVehiclesUI.< > f__mg$cacheB;
            EditorSpawnsVehiclesUI.spawnsScrollBox.add(EditorSpawnsVehiclesUI.removeTierButton);
            EditorSpawnsVehiclesUI.vehicleIDField = new SleekUInt16Field();
            EditorSpawnsVehiclesUI.vehicleIDField.positionOffset_X = 240;
            EditorSpawnsVehiclesUI.vehicleIDField.sizeOffset_X     = 200;
            EditorSpawnsVehiclesUI.vehicleIDField.sizeOffset_Y     = 30;
            EditorSpawnsVehiclesUI.vehicleIDField.addLabel(local.format("VehicleIDFieldLabelText"), ESleekSide.LEFT);
            EditorSpawnsVehiclesUI.spawnsScrollBox.add(EditorSpawnsVehiclesUI.vehicleIDField);
            EditorSpawnsVehiclesUI.addVehicleButton = new SleekButtonIcon((Texture2D)bundle.load("Add"));
            EditorSpawnsVehiclesUI.addVehicleButton.positionOffset_X = 240;
            EditorSpawnsVehiclesUI.addVehicleButton.sizeOffset_X     = 95;
            EditorSpawnsVehiclesUI.addVehicleButton.sizeOffset_Y     = 30;
            EditorSpawnsVehiclesUI.addVehicleButton.text             = local.format("AddVehicleButtonText");
            EditorSpawnsVehiclesUI.addVehicleButton.tooltip          = local.format("AddVehicleButtonTooltip");
            SleekButton sleekButton5 = EditorSpawnsVehiclesUI.addVehicleButton;

            if (EditorSpawnsVehiclesUI.< > f__mg$cacheC == null)
            {
                EditorSpawnsVehiclesUI.< > f__mg$cacheC = new ClickedButton(EditorSpawnsVehiclesUI.onClickedAddVehicleButton);
            }
            sleekButton5.onClickedButton = EditorSpawnsVehiclesUI.< > f__mg$cacheC;
            EditorSpawnsVehiclesUI.spawnsScrollBox.add(EditorSpawnsVehiclesUI.addVehicleButton);
            EditorSpawnsVehiclesUI.removeVehicleButton = new SleekButtonIcon((Texture2D)bundle.load("Remove"));
            EditorSpawnsVehiclesUI.removeVehicleButton.positionOffset_X = 345;
            EditorSpawnsVehiclesUI.removeVehicleButton.sizeOffset_X     = 95;
            EditorSpawnsVehiclesUI.removeVehicleButton.sizeOffset_Y     = 30;
            EditorSpawnsVehiclesUI.removeVehicleButton.text             = local.format("RemoveVehicleButtonText");
            EditorSpawnsVehiclesUI.removeVehicleButton.tooltip          = local.format("RemoveVehicleButtonTooltip");
            SleekButton sleekButton6 = EditorSpawnsVehiclesUI.removeVehicleButton;

            if (EditorSpawnsVehiclesUI.< > f__mg$cacheD == null)
            {
                EditorSpawnsVehiclesUI.< > f__mg$cacheD = new ClickedButton(EditorSpawnsVehiclesUI.onClickedRemoveVehicleButton);
            }
            sleekButton6.onClickedButton = EditorSpawnsVehiclesUI.< > f__mg$cacheD;
            EditorSpawnsVehiclesUI.spawnsScrollBox.add(EditorSpawnsVehiclesUI.removeVehicleButton);
            EditorSpawnsVehiclesUI.selectedBox = new SleekBox();
            EditorSpawnsVehiclesUI.selectedBox.positionOffset_X = -230;
            EditorSpawnsVehiclesUI.selectedBox.positionOffset_Y = 80;
            EditorSpawnsVehiclesUI.selectedBox.positionScale_X  = 1f;
            EditorSpawnsVehiclesUI.selectedBox.sizeOffset_X     = 230;
            EditorSpawnsVehiclesUI.selectedBox.sizeOffset_Y     = 30;
            EditorSpawnsVehiclesUI.selectedBox.addLabel(local.format("SelectionBoxLabelText"), ESleekSide.LEFT);
            EditorSpawnsVehiclesUI.container.add(EditorSpawnsVehiclesUI.selectedBox);
            EditorSpawnsVehiclesUI.updateSelection();
            EditorSpawnsVehiclesUI.radiusSlider = new SleekSlider();
            EditorSpawnsVehiclesUI.radiusSlider.positionOffset_Y = -130;
            EditorSpawnsVehiclesUI.radiusSlider.positionScale_Y  = 1f;
            EditorSpawnsVehiclesUI.radiusSlider.sizeOffset_X     = 200;
            EditorSpawnsVehiclesUI.radiusSlider.sizeOffset_Y     = 20;
            EditorSpawnsVehiclesUI.radiusSlider.state            = (float)(EditorSpawns.radius - EditorSpawns.MIN_REMOVE_SIZE) / (float)EditorSpawns.MAX_REMOVE_SIZE;
            EditorSpawnsVehiclesUI.radiusSlider.orientation      = ESleekOrientation.HORIZONTAL;
            EditorSpawnsVehiclesUI.radiusSlider.addLabel(local.format("RadiusSliderLabelText"), ESleekSide.RIGHT);
            SleekSlider sleekSlider = EditorSpawnsVehiclesUI.radiusSlider;

            if (EditorSpawnsVehiclesUI.< > f__mg$cacheE == null)
            {
                EditorSpawnsVehiclesUI.< > f__mg$cacheE = new Dragged(EditorSpawnsVehiclesUI.onDraggedRadiusSlider);
            }
            sleekSlider.onDragged = EditorSpawnsVehiclesUI.< > f__mg$cacheE;
            EditorSpawnsVehiclesUI.container.add(EditorSpawnsVehiclesUI.radiusSlider);
            EditorSpawnsVehiclesUI.rotationSlider = new SleekSlider();
            EditorSpawnsVehiclesUI.rotationSlider.positionOffset_Y = -100;
            EditorSpawnsVehiclesUI.rotationSlider.positionScale_Y  = 1f;
            EditorSpawnsVehiclesUI.rotationSlider.sizeOffset_X     = 200;
            EditorSpawnsVehiclesUI.rotationSlider.sizeOffset_Y     = 20;
            EditorSpawnsVehiclesUI.rotationSlider.state            = EditorSpawns.rotation / 360f;
            EditorSpawnsVehiclesUI.rotationSlider.orientation      = ESleekOrientation.HORIZONTAL;
            EditorSpawnsVehiclesUI.rotationSlider.addLabel(local.format("RotationSliderLabelText"), ESleekSide.RIGHT);
            SleekSlider sleekSlider2 = EditorSpawnsVehiclesUI.rotationSlider;

            if (EditorSpawnsVehiclesUI.< > f__mg$cacheF == null)
            {
                EditorSpawnsVehiclesUI.< > f__mg$cacheF = new Dragged(EditorSpawnsVehiclesUI.onDraggedRotationSlider);
            }
            sleekSlider2.onDragged = EditorSpawnsVehiclesUI.< > f__mg$cacheF;
            EditorSpawnsVehiclesUI.container.add(EditorSpawnsVehiclesUI.rotationSlider);
            EditorSpawnsVehiclesUI.addButton = new SleekButtonIcon((Texture2D)bundle.load("Add"));
            EditorSpawnsVehiclesUI.addButton.positionOffset_Y = -70;
            EditorSpawnsVehiclesUI.addButton.positionScale_Y  = 1f;
            EditorSpawnsVehiclesUI.addButton.sizeOffset_X     = 200;
            EditorSpawnsVehiclesUI.addButton.sizeOffset_Y     = 30;
            EditorSpawnsVehiclesUI.addButton.text             = local.format("AddButtonText", new object[]
            {
                ControlsSettings.tool_0
            });
            EditorSpawnsVehiclesUI.addButton.tooltip = local.format("AddButtonTooltip");
            SleekButton sleekButton7 = EditorSpawnsVehiclesUI.addButton;

            if (EditorSpawnsVehiclesUI.< > f__mg$cache10 == null)
            {
                EditorSpawnsVehiclesUI.< > f__mg$cache10 = new ClickedButton(EditorSpawnsVehiclesUI.onClickedAddButton);
            }
            sleekButton7.onClickedButton = EditorSpawnsVehiclesUI.< > f__mg$cache10;
            EditorSpawnsVehiclesUI.container.add(EditorSpawnsVehiclesUI.addButton);
            EditorSpawnsVehiclesUI.removeButton = new SleekButtonIcon((Texture2D)bundle.load("Remove"));
            EditorSpawnsVehiclesUI.removeButton.positionOffset_Y = -30;
            EditorSpawnsVehiclesUI.removeButton.positionScale_Y  = 1f;
            EditorSpawnsVehiclesUI.removeButton.sizeOffset_X     = 200;
            EditorSpawnsVehiclesUI.removeButton.sizeOffset_Y     = 30;
            EditorSpawnsVehiclesUI.removeButton.text             = local.format("RemoveButtonText", new object[]
            {
                ControlsSettings.tool_1
            });
            EditorSpawnsVehiclesUI.removeButton.tooltip = local.format("RemoveButtonTooltip");
            SleekButton sleekButton8 = EditorSpawnsVehiclesUI.removeButton;

            if (EditorSpawnsVehiclesUI.< > f__mg$cache11 == null)
            {
                EditorSpawnsVehiclesUI.< > f__mg$cache11 = new ClickedButton(EditorSpawnsVehiclesUI.onClickedRemoveButton);
            }
            sleekButton8.onClickedButton = EditorSpawnsVehiclesUI.< > f__mg$cache11;
            EditorSpawnsVehiclesUI.container.add(EditorSpawnsVehiclesUI.removeButton);
            bundle.unload();
        }
示例#22
0
        public MenuPlayConnectUI()
        {
            MenuPlayConnectUI.localization = Localization.read("/Menu/Play/MenuPlayConnect.dat");
            Bundle bundle = Bundles.getBundle("/Bundles/Textures/Menu/Icons/Play/MenuPlayConnect/MenuPlayConnect.unity3d");

            MenuPlayConnectUI.container = new Sleek();
            MenuPlayConnectUI.container.positionOffset_X = 10;
            MenuPlayConnectUI.container.positionOffset_Y = 10;
            MenuPlayConnectUI.container.positionScale_Y  = 1f;
            MenuPlayConnectUI.container.sizeOffset_X     = -20;
            MenuPlayConnectUI.container.sizeOffset_Y     = -20;
            MenuPlayConnectUI.container.sizeScale_X      = 1f;
            MenuPlayConnectUI.container.sizeScale_Y      = 1f;
            MenuUI.container.add(MenuPlayConnectUI.container);
            MenuPlayConnectUI.active  = false;
            MenuPlayConnectUI.ipField = new SleekField();
            MenuPlayConnectUI.ipField.positionOffset_X = -100;
            MenuPlayConnectUI.ipField.positionOffset_Y = -75;
            MenuPlayConnectUI.ipField.positionScale_X  = 0.5f;
            MenuPlayConnectUI.ipField.positionScale_Y  = 0.5f;
            MenuPlayConnectUI.ipField.sizeOffset_X     = 200;
            MenuPlayConnectUI.ipField.sizeOffset_Y     = 30;
            MenuPlayConnectUI.ipField.maxLength        = 64;
            MenuPlayConnectUI.ipField.addLabel(MenuPlayConnectUI.localization.format("IP_Field_Label"), ESleekSide.RIGHT);
            MenuPlayConnectUI.ipField.text = PlaySettings.connectIP;
            SleekField sleekField = MenuPlayConnectUI.ipField;

            if (MenuPlayConnectUI.< > f__mg$cache0 == null)
            {
                MenuPlayConnectUI.< > f__mg$cache0 = new Typed(MenuPlayConnectUI.onTypedIPField);
            }
            sleekField.onTyped = MenuPlayConnectUI.< > f__mg$cache0;
            MenuPlayConnectUI.container.add(MenuPlayConnectUI.ipField);
            MenuPlayConnectUI.portField = new SleekUInt16Field();
            MenuPlayConnectUI.portField.positionOffset_X = -100;
            MenuPlayConnectUI.portField.positionOffset_Y = -35;
            MenuPlayConnectUI.portField.positionScale_X  = 0.5f;
            MenuPlayConnectUI.portField.positionScale_Y  = 0.5f;
            MenuPlayConnectUI.portField.sizeOffset_X     = 200;
            MenuPlayConnectUI.portField.sizeOffset_Y     = 30;
            MenuPlayConnectUI.portField.addLabel(MenuPlayConnectUI.localization.format("Port_Field_Label"), ESleekSide.RIGHT);
            MenuPlayConnectUI.portField.state = PlaySettings.connectPort;
            SleekUInt16Field sleekUInt16Field = MenuPlayConnectUI.portField;

            if (MenuPlayConnectUI.< > f__mg$cache1 == null)
            {
                MenuPlayConnectUI.< > f__mg$cache1 = new TypedUInt16(MenuPlayConnectUI.onTypedPortField);
            }
            sleekUInt16Field.onTypedUInt16 = MenuPlayConnectUI.< > f__mg$cache1;
            MenuPlayConnectUI.container.add(MenuPlayConnectUI.portField);
            MenuPlayConnectUI.passwordField = new SleekField();
            MenuPlayConnectUI.passwordField.positionOffset_X = -100;
            MenuPlayConnectUI.passwordField.positionOffset_Y = 5;
            MenuPlayConnectUI.passwordField.positionScale_X  = 0.5f;
            MenuPlayConnectUI.passwordField.positionScale_Y  = 0.5f;
            MenuPlayConnectUI.passwordField.sizeOffset_X     = 200;
            MenuPlayConnectUI.passwordField.sizeOffset_Y     = 30;
            MenuPlayConnectUI.passwordField.addLabel(MenuPlayConnectUI.localization.format("Password_Field_Label"), ESleekSide.RIGHT);
            MenuPlayConnectUI.passwordField.replace = MenuPlayConnectUI.localization.format("Password_Field_Replace").ToCharArray()[0];
            MenuPlayConnectUI.passwordField.text    = PlaySettings.connectPassword;
            SleekField sleekField2 = MenuPlayConnectUI.passwordField;

            if (MenuPlayConnectUI.< > f__mg$cache2 == null)
            {
                MenuPlayConnectUI.< > f__mg$cache2 = new Typed(MenuPlayConnectUI.onTypedPasswordField);
            }
            sleekField2.onTyped = MenuPlayConnectUI.< > f__mg$cache2;
            MenuPlayConnectUI.container.add(MenuPlayConnectUI.passwordField);
            MenuPlayConnectUI.connectButton = new SleekButtonIcon((Texture2D)bundle.load("Connect"));
            MenuPlayConnectUI.connectButton.positionOffset_X         = -100;
            MenuPlayConnectUI.connectButton.positionOffset_Y         = 45;
            MenuPlayConnectUI.connectButton.positionScale_X          = 0.5f;
            MenuPlayConnectUI.connectButton.positionScale_Y          = 0.5f;
            MenuPlayConnectUI.connectButton.sizeOffset_X             = 200;
            MenuPlayConnectUI.connectButton.sizeOffset_Y             = 30;
            MenuPlayConnectUI.connectButton.text                     = MenuPlayConnectUI.localization.format("Connect_Button");
            MenuPlayConnectUI.connectButton.tooltip                  = MenuPlayConnectUI.localization.format("Connect_Button_Tooltip");
            MenuPlayConnectUI.connectButton.iconImage.backgroundTint = ESleekTint.FOREGROUND;
            SleekButton sleekButton = MenuPlayConnectUI.connectButton;

            if (MenuPlayConnectUI.< > f__mg$cache3 == null)
            {
                MenuPlayConnectUI.< > f__mg$cache3 = new ClickedButton(MenuPlayConnectUI.onClickedConnectButton);
            }
            sleekButton.onClickedButton = MenuPlayConnectUI.< > f__mg$cache3;
            MenuPlayConnectUI.container.add(MenuPlayConnectUI.connectButton);
            TempSteamworksMatchmaking matchmakingService = Provider.provider.matchmakingService;

            if (MenuPlayConnectUI.< > f__mg$cache4 == null)
            {
                MenuPlayConnectUI.< > f__mg$cache4 = new TempSteamworksMatchmaking.AttemptUpdated(MenuPlayConnectUI.onAttemptUpdated);
            }
            matchmakingService.onAttemptUpdated = MenuPlayConnectUI.< > f__mg$cache4;
            TempSteamworksMatchmaking matchmakingService2 = Provider.provider.matchmakingService;

            if (MenuPlayConnectUI.< > f__mg$cache5 == null)
            {
                MenuPlayConnectUI.< > f__mg$cache5 = new TempSteamworksMatchmaking.TimedOut(MenuPlayConnectUI.onTimedOut);
            }
            matchmakingService2.onTimedOut = MenuPlayConnectUI.< > f__mg$cache5;
            if (!MenuPlayConnectUI.isLaunched)
            {
                MenuPlayConnectUI.isLaunched = true;
                uint   newIP;
                ushort newPort;
                string newPassword;
                ulong  num;
                if (CommandLine.tryGetConnect(Environment.CommandLine, out newIP, out newPort, out newPassword))
                {
                    SteamConnectionInfo steamConnectionInfo = new SteamConnectionInfo(newIP, newPort, newPassword);
                    Debug.Log(string.Concat(new object[]
                    {
                        steamConnectionInfo.ip,
                        " ",
                        Parser.getIPFromUInt32(steamConnectionInfo.ip),
                        " ",
                        steamConnectionInfo.port,
                        " ",
                        steamConnectionInfo.password
                    }));
                    Provider.provider.matchmakingService.connect(steamConnectionInfo);
                    MenuUI.openAlert(MenuPlayConnectUI.localization.format("Connecting"));
                }
                else if (CommandLine.tryGetLobby(Environment.CommandLine, out num))
                {
                    Debug.Log("Lobby: " + num);
                    Lobbies.joinLobby(new CSteamID(num));
                }
            }
            bundle.unload();
            MenuPlayConnectUI.backButton = new SleekButtonIcon((Texture2D)MenuDashboardUI.icons.load("Exit"));
            MenuPlayConnectUI.backButton.positionOffset_Y = -50;
            MenuPlayConnectUI.backButton.positionScale_Y  = 1f;
            MenuPlayConnectUI.backButton.sizeOffset_X     = 200;
            MenuPlayConnectUI.backButton.sizeOffset_Y     = 50;
            MenuPlayConnectUI.backButton.text             = MenuDashboardUI.localization.format("BackButtonText");
            MenuPlayConnectUI.backButton.tooltip          = MenuDashboardUI.localization.format("BackButtonTooltip");
            SleekButton sleekButton2 = MenuPlayConnectUI.backButton;

            if (MenuPlayConnectUI.< > f__mg$cache6 == null)
            {
                MenuPlayConnectUI.< > f__mg$cache6 = new ClickedButton(MenuPlayConnectUI.onClickedBackButton);
            }
            sleekButton2.onClickedButton          = MenuPlayConnectUI.< > f__mg$cache6;
            MenuPlayConnectUI.backButton.fontSize = 14;
            MenuPlayConnectUI.backButton.iconImage.backgroundTint = ESleekTint.FOREGROUND;
            MenuPlayConnectUI.container.add(MenuPlayConnectUI.backButton);
        }
示例#23
0
 private static void onTypedIPField(SleekField field, string text)
 {
     PlaySettings.connectIP = text;
 }
示例#24
0
 // Token: 0x06003757 RID: 14167 RVA: 0x00183A1F File Offset: 0x00181E1F
 private static void onEnteredSearchField(SleekField field)
 {
     MenuSurvivorsClothingUI.updateFilterAndPage();
 }