示例#1
0
 public static void closeAll()
 {
     MenuPauseUI.close();
     MenuCreditsUI.close();
     MenuTitleUI.close();
     MenuDashboardUI.close();
     MenuPlayUI.close();
     MenuPlaySingleplayerUI.close();
     MenuPlayMatchmakingUI.close();
     MenuPlayLobbiesUI.close();
     MenuPlayConnectUI.close();
     MenuPlayServersUI.close();
     MenuPlayServerInfoUI.close();
     MenuPlayConfigUI.close();
     MenuSurvivorsUI.close();
     MenuSurvivorsCharacterUI.close();
     MenuSurvivorsAppearanceUI.close();
     MenuSurvivorsClothingUI.close();
     MenuSurvivorsGroupUI.close();
     MenuSurvivorsClothingBoxUI.close();
     MenuSurvivorsClothingDeleteUI.close();
     MenuSurvivorsClothingInspectUI.close();
     MenuSurvivorsClothingItemUI.close();
     MenuConfigurationUI.close();
     MenuConfigurationOptionsUI.close();
     MenuConfigurationDisplayUI.close();
     MenuConfigurationGraphicsUI.close();
     MenuConfigurationControlsUI.close();
     MenuWorkshopUI.close();
     MenuWorkshopEditorUI.close();
     MenuWorkshopSubmitUI.close();
 }
示例#2
0
 // Token: 0x060036F9 RID: 14073 RVA: 0x0017CD26 File Offset: 0x0017B126
 private static void onClickedLevel(SleekLevel level, byte index)
 {
     if ((int)index < MenuPlaySingleplayerUI.levels.Length && MenuPlaySingleplayerUI.levels[(int)index] != null)
     {
         PlaySettings.singleplayerMap = MenuPlaySingleplayerUI.levels[(int)index].name;
         MenuPlaySingleplayerUI.updateSelection();
     }
 }
示例#3
0
 // Token: 0x06003700 RID: 14080 RVA: 0x0017CDCD File Offset: 0x0017B1CD
 private static void onClickedConfigButton(SleekButton button)
 {
     if (PlaySettings.singleplayerMap == null || PlaySettings.singleplayerMap.Length == 0)
     {
         return;
     }
     MenuPlayConfigUI.open();
     MenuPlaySingleplayerUI.close();
 }
示例#4
0
        // Token: 0x06003703 RID: 14083 RVA: 0x0017CF58 File Offset: 0x0017B358
        private static void refreshLevels()
        {
            MenuPlaySingleplayerUI.levelScrollBox.remove();
            MenuPlaySingleplayerUI.levels = Level.getLevels(PlaySettings.singleplayerCategory);
            bool flag = false;

            MenuPlaySingleplayerUI.levelButtons = new SleekLevel[MenuPlaySingleplayerUI.levels.Length];
            for (int i = 0; i < MenuPlaySingleplayerUI.levels.Length; i++)
            {
                if (MenuPlaySingleplayerUI.levels[i] != null)
                {
                    SleekLevel sleekLevel = new SleekLevel(MenuPlaySingleplayerUI.levels[i], false);
                    sleekLevel.positionOffset_Y = i * 110;
                    SleekLevel sleekLevel2 = sleekLevel;
                    if (MenuPlaySingleplayerUI.< > f__mg$cache0 == null)
                    {
                        MenuPlaySingleplayerUI.< > f__mg$cache0 = new ClickedLevel(MenuPlaySingleplayerUI.onClickedLevel);
                    }
                    sleekLevel2.onClickedLevel = MenuPlaySingleplayerUI.< > f__mg$cache0;
                    MenuPlaySingleplayerUI.levelScrollBox.add(sleekLevel);
                    MenuPlaySingleplayerUI.levelButtons[i] = sleekLevel;
                    if (!flag && MenuPlaySingleplayerUI.levels[i].name == PlaySettings.singleplayerMap)
                    {
                        flag = true;
                    }
                }
            }
            if (MenuPlaySingleplayerUI.levels.Length == 0)
            {
                PlaySettings.singleplayerMap = string.Empty;
            }
            else if (!flag || PlaySettings.singleplayerMap == null || PlaySettings.singleplayerMap.Length == 0)
            {
                PlaySettings.singleplayerMap = MenuPlaySingleplayerUI.levels[0].name;
            }
            MenuPlaySingleplayerUI.updateSelection();
            MenuPlaySingleplayerUI.levelScrollBox.area = new Rect(0f, 0f, 5f, (float)(MenuPlaySingleplayerUI.levels.Length * 110 - 10));
        }
示例#5
0
 private void Update()
 {
     if (MenuUI.window == null)
     {
         return;
     }
     MenuConfigurationControlsUI.bindUpdate();
     if (MenuConfigurationControlsUI.binding == 255)
     {
         if (Input.GetKeyDown(27))
         {
             if (Provider.provider.matchmakingService.isAttemptingServerQuery)
             {
                 Provider.provider.matchmakingService.cancel();
             }
             else if (MenuUI.isAlerting)
             {
                 MenuUI.closeAlert();
                 MenuUI.isAlerting = false;
             }
             else if (MenuPauseUI.active)
             {
                 MenuPauseUI.close();
                 MenuDashboardUI.open();
                 MenuTitleUI.open();
             }
             else if (MenuCreditsUI.active)
             {
                 MenuCreditsUI.close();
                 MenuPauseUI.open();
             }
             else if (MenuTitleUI.active)
             {
                 MenuPauseUI.open();
                 MenuDashboardUI.close();
                 MenuTitleUI.close();
             }
             else if (MenuPlayConfigUI.active)
             {
                 MenuPlayConfigUI.close();
                 MenuPlaySingleplayerUI.open();
             }
             else if (MenuPlayServerInfoUI.active)
             {
                 MenuPlayServerInfoUI.close();
                 MenuPlayServerInfoUI.EServerInfoOpenContext openContext = MenuPlayServerInfoUI.openContext;
                 if (openContext != MenuPlayServerInfoUI.EServerInfoOpenContext.CONNECT)
                 {
                     if (openContext != MenuPlayServerInfoUI.EServerInfoOpenContext.SERVERS)
                     {
                         if (openContext == MenuPlayServerInfoUI.EServerInfoOpenContext.MATCHMAKING)
                         {
                             MenuPlayMatchmakingUI.open();
                         }
                     }
                     else
                     {
                         MenuPlayServersUI.open();
                     }
                 }
                 else
                 {
                     MenuPlayConnectUI.open();
                 }
             }
             else if (MenuPlayConnectUI.active || MenuPlayServersUI.active || MenuPlaySingleplayerUI.active || MenuPlayMatchmakingUI.active || MenuPlayLobbiesUI.active)
             {
                 MenuPlayConnectUI.close();
                 MenuPlayServersUI.close();
                 MenuPlaySingleplayerUI.close();
                 MenuPlayMatchmakingUI.close();
                 MenuPlayLobbiesUI.close();
                 MenuPlayUI.open();
             }
             else if (MenuSurvivorsClothingItemUI.active)
             {
                 MenuSurvivorsClothingItemUI.close();
                 MenuSurvivorsClothingUI.open();
             }
             else if (MenuSurvivorsClothingBoxUI.active)
             {
                 if (!MenuSurvivorsClothingBoxUI.isUnboxing)
                 {
                     MenuSurvivorsClothingBoxUI.close();
                     MenuSurvivorsClothingItemUI.open();
                 }
             }
             else if (MenuSurvivorsClothingInspectUI.active || MenuSurvivorsClothingDeleteUI.active)
             {
                 MenuSurvivorsClothingInspectUI.close();
                 MenuSurvivorsClothingDeleteUI.close();
                 MenuSurvivorsClothingItemUI.open();
             }
             else if (MenuSurvivorsCharacterUI.active || MenuSurvivorsAppearanceUI.active || MenuSurvivorsGroupUI.active || MenuSurvivorsClothingUI.active)
             {
                 MenuSurvivorsCharacterUI.close();
                 MenuSurvivorsAppearanceUI.close();
                 MenuSurvivorsGroupUI.close();
                 MenuSurvivorsClothingUI.close();
                 MenuSurvivorsUI.open();
             }
             else if (MenuConfigurationOptionsUI.active || MenuConfigurationControlsUI.active || MenuConfigurationGraphicsUI.active || MenuConfigurationDisplayUI.active)
             {
                 MenuConfigurationOptionsUI.close();
                 MenuConfigurationControlsUI.close();
                 MenuConfigurationGraphicsUI.close();
                 MenuConfigurationDisplayUI.close();
                 MenuConfigurationUI.open();
             }
             else if (MenuWorkshopSubmitUI.active || MenuWorkshopEditorUI.active || MenuWorkshopErrorUI.active || MenuWorkshopLocalizationUI.active || MenuWorkshopSpawnsUI.active || MenuWorkshopModulesUI.active)
             {
                 MenuWorkshopSubmitUI.close();
                 MenuWorkshopEditorUI.close();
                 MenuWorkshopErrorUI.close();
                 MenuWorkshopLocalizationUI.close();
                 MenuWorkshopSpawnsUI.close();
                 MenuWorkshopModulesUI.close();
                 MenuWorkshopUI.open();
             }
             else
             {
                 MenuPlayUI.close();
                 MenuSurvivorsUI.close();
                 MenuConfigurationUI.close();
                 MenuWorkshopUI.close();
                 MenuDashboardUI.open();
                 MenuTitleUI.open();
             }
         }
         if (MenuUI.window != null)
         {
             if (Input.GetKeyDown(ControlsSettings.screenshot))
             {
                 Provider.takeScreenshot();
             }
             if (Input.GetKeyDown(ControlsSettings.hud))
             {
                 DevkitWindowManager.isActive          = false;
                 MenuUI.window.isEnabled               = !MenuUI.window.isEnabled;
                 MenuUI.window.drawCursorWhileDisabled = false;
             }
             if (Input.GetKeyDown(ControlsSettings.terminal))
             {
                 DevkitWindowManager.isActive          = !DevkitWindowManager.isActive;
                 MenuUI.window.isEnabled               = !DevkitWindowManager.isActive;
                 MenuUI.window.drawCursorWhileDisabled = DevkitWindowManager.isActive;
             }
         }
     }
     if (Input.GetKeyDown(ControlsSettings.refreshAssets))
     {
         Assets.refresh();
     }
     if (Input.GetKeyDown(ControlsSettings.clipboardDebug) && MenuSurvivorsAppearanceUI.active)
     {
         string text = string.Empty;
         text = text + "Face " + Characters.active.face;
         text = text + "\nHair " + Characters.active.hair;
         text = text + "\nBeard " + Characters.active.beard;
         text = text + "\nColor_Skin " + Palette.hex(Characters.active.skin);
         text = text + "\nColor_Hair " + Palette.hex(Characters.active.color);
         if (Characters.active.hand)
         {
             text += "\nBackward";
         }
         GUIUtility.systemCopyBuffer = text;
     }
     if (MenuUI.isAlerting && Time.realtimeSinceStartup - MenuUI.lastAlert > MenuUI.alertTime)
     {
         MenuUI.closeAlert();
         MenuUI.isAlerting = false;
     }
     MenuUI.window.showCursor = true;
     MenuUI.window.updateDebug();
     if (MenuPlayUI.active || MenuPlayConnectUI.active || MenuPlayServersUI.active || MenuPlayServerInfoUI.active || MenuPlaySingleplayerUI.active || MenuPlayMatchmakingUI.active || MenuPlayLobbiesUI.active || MenuPlayConfigUI.active)
     {
         this.target = this.play;
     }
     else if (MenuSurvivorsUI.active || MenuSurvivorsCharacterUI.active || MenuSurvivorsAppearanceUI.active || MenuSurvivorsGroupUI.active || MenuSurvivorsClothingUI.active || MenuSurvivorsClothingItemUI.active || MenuSurvivorsClothingInspectUI.active || MenuSurvivorsClothingDeleteUI.active || MenuSurvivorsClothingBoxUI.active)
     {
         this.target = this.survivors;
     }
     else if (MenuConfigurationUI.active || MenuConfigurationOptionsUI.active || MenuConfigurationControlsUI.active || MenuConfigurationGraphicsUI.active || MenuConfigurationDisplayUI.active)
     {
         this.target = this.configuration;
     }
     else if (MenuWorkshopUI.active || MenuWorkshopSubmitUI.active || MenuWorkshopEditorUI.active || MenuWorkshopErrorUI.active || MenuWorkshopLocalizationUI.active || MenuWorkshopSpawnsUI.active || MenuWorkshopModulesUI.active)
     {
         this.target = this.workshop;
     }
     else
     {
         this.target = this.title;
     }
     if (this.target == this.title)
     {
         if (MenuUI.hasTitled)
         {
             base.transform.position = Vector3.Lerp(base.transform.position, this.target.position, Time.deltaTime * 4f);
             base.transform.rotation = Quaternion.Lerp(base.transform.rotation, this.target.rotation, Time.deltaTime * 4f);
         }
         else
         {
             base.transform.position = Vector3.Lerp(base.transform.position, this.target.position, Time.deltaTime);
             base.transform.rotation = Quaternion.Lerp(base.transform.rotation, this.target.rotation, Time.deltaTime);
         }
     }
     else
     {
         MenuUI.hasTitled        = true;
         base.transform.position = Vector3.Lerp(base.transform.position, this.target.position, Time.deltaTime * 4f);
         base.transform.rotation = Quaternion.Lerp(base.transform.rotation, this.target.rotation, Time.deltaTime * 4f);
     }
 }
示例#6
0
 private static void onClickedSingleplayerButton(SleekButton button)
 {
     MenuPlaySingleplayerUI.open();
     MenuPlayUI.close();
 }
示例#7
0
 // Token: 0x06003704 RID: 14084 RVA: 0x0017D0A2 File Offset: 0x0017B4A2
 private static void onLevelsRefreshed()
 {
     MenuPlaySingleplayerUI.refreshLevels();
 }
示例#8
0
 // Token: 0x060036FE RID: 14078 RVA: 0x0017CDB8 File Offset: 0x0017B1B8
 private static void onClickedMiscMapsButton(SleekButton button)
 {
     PlaySettings.singleplayerCategory = ESingleplayerMapCategory.MISC;
     MenuPlaySingleplayerUI.refreshLevels();
 }
示例#9
0
 // Token: 0x060036FD RID: 14077 RVA: 0x0017CDAB File Offset: 0x0017B1AB
 private static void onClickedWorkshopMapsButton(SleekButton button)
 {
     PlaySettings.singleplayerCategory = ESingleplayerMapCategory.WORKSHOP;
     MenuPlaySingleplayerUI.refreshLevels();
 }
示例#10
0
 // Token: 0x060036FB RID: 14075 RVA: 0x0017CD91 File Offset: 0x0017B191
 private static void onClickedOfficialMapsButton(SleekButton button)
 {
     PlaySettings.singleplayerCategory = ESingleplayerMapCategory.OFFICIAL;
     MenuPlaySingleplayerUI.refreshLevels();
 }
示例#11
0
        // Token: 0x060036F5 RID: 14069 RVA: 0x0017B8D8 File Offset: 0x00179CD8
        public MenuPlaySingleplayerUI()
        {
            MenuPlaySingleplayerUI.localization = Localization.read("/Menu/Play/MenuPlaySingleplayer.dat");
            Bundle bundle = Bundles.getBundle("/Bundles/Textures/Menu/Icons/Play/MenuPlaySingleplayer/MenuPlaySingleplayer.unity3d");

            MenuPlaySingleplayerUI.container = new Sleek();
            MenuPlaySingleplayerUI.container.positionOffset_X = 10;
            MenuPlaySingleplayerUI.container.positionOffset_Y = 10;
            MenuPlaySingleplayerUI.container.positionScale_Y  = 1f;
            MenuPlaySingleplayerUI.container.sizeOffset_X     = -20;
            MenuPlaySingleplayerUI.container.sizeOffset_Y     = -20;
            MenuPlaySingleplayerUI.container.sizeScale_X      = 1f;
            MenuPlaySingleplayerUI.container.sizeScale_Y      = 1f;
            MenuUI.container.add(MenuPlaySingleplayerUI.container);
            MenuPlaySingleplayerUI.active     = false;
            MenuPlaySingleplayerUI.previewBox = new SleekBox();
            MenuPlaySingleplayerUI.previewBox.positionOffset_X = -450;
            MenuPlaySingleplayerUI.previewBox.positionOffset_Y = 100;
            MenuPlaySingleplayerUI.previewBox.positionScale_X  = 0.5f;
            MenuPlaySingleplayerUI.previewBox.sizeOffset_X     = 355;
            MenuPlaySingleplayerUI.previewBox.sizeOffset_Y     = 180;
            MenuPlaySingleplayerUI.container.add(MenuPlaySingleplayerUI.previewBox);
            MenuPlaySingleplayerUI.previewImage = new SleekImageTexture();
            MenuPlaySingleplayerUI.previewImage.positionOffset_X     = 10;
            MenuPlaySingleplayerUI.previewImage.positionOffset_Y     = 10;
            MenuPlaySingleplayerUI.previewImage.sizeOffset_X         = -20;
            MenuPlaySingleplayerUI.previewImage.sizeOffset_Y         = -20;
            MenuPlaySingleplayerUI.previewImage.sizeScale_X          = 1f;
            MenuPlaySingleplayerUI.previewImage.sizeScale_Y          = 1f;
            MenuPlaySingleplayerUI.previewImage.shouldDestroyTexture = true;
            MenuPlaySingleplayerUI.previewBox.add(MenuPlaySingleplayerUI.previewImage);
            MenuPlaySingleplayerUI.levelScrollBox = new SleekScrollBox();
            MenuPlaySingleplayerUI.levelScrollBox.positionOffset_X = -240;
            MenuPlaySingleplayerUI.levelScrollBox.positionOffset_Y = 340;
            MenuPlaySingleplayerUI.levelScrollBox.positionScale_X  = 0.5f;
            MenuPlaySingleplayerUI.levelScrollBox.sizeOffset_X     = 430;
            MenuPlaySingleplayerUI.levelScrollBox.sizeOffset_Y     = -440;
            MenuPlaySingleplayerUI.levelScrollBox.sizeScale_Y      = 1f;
            MenuPlaySingleplayerUI.levelScrollBox.area             = new Rect(0f, 0f, 5f, 0f);
            MenuPlaySingleplayerUI.container.add(MenuPlaySingleplayerUI.levelScrollBox);
            MenuPlaySingleplayerUI.officalMapsButton = new SleekButton();
            MenuPlaySingleplayerUI.officalMapsButton.positionOffset_X = -240;
            MenuPlaySingleplayerUI.officalMapsButton.positionOffset_Y = 290;
            MenuPlaySingleplayerUI.officalMapsButton.positionScale_X  = 0.5f;
            MenuPlaySingleplayerUI.officalMapsButton.sizeOffset_X     = 100;
            MenuPlaySingleplayerUI.officalMapsButton.sizeOffset_Y     = 50;
            MenuPlaySingleplayerUI.officalMapsButton.text             = MenuPlaySingleplayerUI.localization.format("Maps_Official");
            MenuPlaySingleplayerUI.officalMapsButton.tooltip          = MenuPlaySingleplayerUI.localization.format("Maps_Official_Tooltip");
            SleekButton sleekButton = MenuPlaySingleplayerUI.officalMapsButton;

            if (MenuPlaySingleplayerUI.< > f__mg$cache1 == null)
            {
                MenuPlaySingleplayerUI.< > f__mg$cache1 = new ClickedButton(MenuPlaySingleplayerUI.onClickedOfficialMapsButton);
            }
            sleekButton.onClickedButton = MenuPlaySingleplayerUI.< > f__mg$cache1;
            MenuPlaySingleplayerUI.officalMapsButton.fontSize = 14;
            MenuPlaySingleplayerUI.container.add(MenuPlaySingleplayerUI.officalMapsButton);
            if (Provider.statusData.Maps.Official != EMapStatus.NONE)
            {
                SleekNew sleek = new SleekNew(Provider.statusData.Maps.Official == EMapStatus.UPDATED);
                MenuPlaySingleplayerUI.officalMapsButton.add(sleek);
            }
            MenuPlaySingleplayerUI.curatedMapsButton = new SleekButton();
            MenuPlaySingleplayerUI.curatedMapsButton.positionOffset_X = -140;
            MenuPlaySingleplayerUI.curatedMapsButton.positionOffset_Y = 290;
            MenuPlaySingleplayerUI.curatedMapsButton.positionScale_X  = 0.5f;
            MenuPlaySingleplayerUI.curatedMapsButton.sizeOffset_X     = 100;
            MenuPlaySingleplayerUI.curatedMapsButton.sizeOffset_Y     = 50;
            MenuPlaySingleplayerUI.curatedMapsButton.text             = MenuPlaySingleplayerUI.localization.format("Maps_Curated");
            MenuPlaySingleplayerUI.curatedMapsButton.tooltip          = MenuPlaySingleplayerUI.localization.format("Maps_Curated_Tooltip");
            SleekButton sleekButton2 = MenuPlaySingleplayerUI.curatedMapsButton;

            if (MenuPlaySingleplayerUI.< > f__mg$cache2 == null)
            {
                MenuPlaySingleplayerUI.< > f__mg$cache2 = new ClickedButton(MenuPlaySingleplayerUI.onClickedCuratedMapsButton);
            }
            sleekButton2.onClickedButton = MenuPlaySingleplayerUI.< > f__mg$cache2;
            MenuPlaySingleplayerUI.curatedMapsButton.fontSize = 14;
            MenuPlaySingleplayerUI.container.add(MenuPlaySingleplayerUI.curatedMapsButton);
            if (Provider.statusData.Maps.Curated != EMapStatus.NONE)
            {
                SleekNew sleek2 = new SleekNew(Provider.statusData.Maps.Curated == EMapStatus.UPDATED);
                MenuPlaySingleplayerUI.curatedMapsButton.add(sleek2);
            }
            MenuPlaySingleplayerUI.workshopMapsButton = new SleekButton();
            MenuPlaySingleplayerUI.workshopMapsButton.positionOffset_X = -40;
            MenuPlaySingleplayerUI.workshopMapsButton.positionOffset_Y = 290;
            MenuPlaySingleplayerUI.workshopMapsButton.positionScale_X  = 0.5f;
            MenuPlaySingleplayerUI.workshopMapsButton.sizeOffset_X     = 100;
            MenuPlaySingleplayerUI.workshopMapsButton.sizeOffset_Y     = 50;
            MenuPlaySingleplayerUI.workshopMapsButton.text             = MenuPlaySingleplayerUI.localization.format("Maps_Workshop");
            MenuPlaySingleplayerUI.workshopMapsButton.tooltip          = MenuPlaySingleplayerUI.localization.format("Maps_Workshop_Tooltip");
            SleekButton sleekButton3 = MenuPlaySingleplayerUI.workshopMapsButton;

            if (MenuPlaySingleplayerUI.< > f__mg$cache3 == null)
            {
                MenuPlaySingleplayerUI.< > f__mg$cache3 = new ClickedButton(MenuPlaySingleplayerUI.onClickedWorkshopMapsButton);
            }
            sleekButton3.onClickedButton = MenuPlaySingleplayerUI.< > f__mg$cache3;
            MenuPlaySingleplayerUI.workshopMapsButton.fontSize = 14;
            MenuPlaySingleplayerUI.container.add(MenuPlaySingleplayerUI.workshopMapsButton);
            MenuPlaySingleplayerUI.miscMapsButton = new SleekButton();
            MenuPlaySingleplayerUI.miscMapsButton.positionOffset_X = 60;
            MenuPlaySingleplayerUI.miscMapsButton.positionOffset_Y = 290;
            MenuPlaySingleplayerUI.miscMapsButton.positionScale_X  = 0.5f;
            MenuPlaySingleplayerUI.miscMapsButton.sizeOffset_X     = 100;
            MenuPlaySingleplayerUI.miscMapsButton.sizeOffset_Y     = 50;
            MenuPlaySingleplayerUI.miscMapsButton.text             = MenuPlaySingleplayerUI.localization.format("Maps_Misc");
            MenuPlaySingleplayerUI.miscMapsButton.tooltip          = MenuPlaySingleplayerUI.localization.format("Maps_Misc_Tooltip");
            SleekButton sleekButton4 = MenuPlaySingleplayerUI.miscMapsButton;

            if (MenuPlaySingleplayerUI.< > f__mg$cache4 == null)
            {
                MenuPlaySingleplayerUI.< > f__mg$cache4 = new ClickedButton(MenuPlaySingleplayerUI.onClickedMiscMapsButton);
            }
            sleekButton4.onClickedButton = MenuPlaySingleplayerUI.< > f__mg$cache4;
            MenuPlaySingleplayerUI.miscMapsButton.fontSize = 14;
            MenuPlaySingleplayerUI.container.add(MenuPlaySingleplayerUI.miscMapsButton);
            if (Provider.statusData.Maps.Misc != EMapStatus.NONE)
            {
                SleekNew sleek3 = new SleekNew(Provider.statusData.Maps.Misc == EMapStatus.UPDATED);
                MenuPlaySingleplayerUI.miscMapsButton.add(sleek3);
            }
            MenuPlaySingleplayerUI.selectedBox = new SleekBox();
            MenuPlaySingleplayerUI.selectedBox.positionOffset_X = -85;
            MenuPlaySingleplayerUI.selectedBox.positionOffset_Y = 100;
            MenuPlaySingleplayerUI.selectedBox.positionScale_X  = 0.5f;
            MenuPlaySingleplayerUI.selectedBox.sizeOffset_X     = 275;
            MenuPlaySingleplayerUI.selectedBox.sizeOffset_Y     = 30;
            MenuPlaySingleplayerUI.container.add(MenuPlaySingleplayerUI.selectedBox);
            MenuPlaySingleplayerUI.descriptionBox = new SleekBox();
            MenuPlaySingleplayerUI.descriptionBox.positionOffset_X = -85;
            MenuPlaySingleplayerUI.descriptionBox.positionOffset_Y = 140;
            MenuPlaySingleplayerUI.descriptionBox.positionScale_X  = 0.5f;
            MenuPlaySingleplayerUI.descriptionBox.sizeOffset_X     = 275;
            MenuPlaySingleplayerUI.descriptionBox.sizeOffset_Y     = 140;
            MenuPlaySingleplayerUI.descriptionBox.fontAlignment    = TextAnchor.UpperCenter;
            MenuPlaySingleplayerUI.container.add(MenuPlaySingleplayerUI.descriptionBox);
            MenuPlaySingleplayerUI.creditsBox = new SleekBox();
            MenuPlaySingleplayerUI.creditsBox.positionOffset_X = 200;
            MenuPlaySingleplayerUI.creditsBox.positionOffset_Y = 100;
            MenuPlaySingleplayerUI.creditsBox.positionScale_X  = 0.5f;
            MenuPlaySingleplayerUI.creditsBox.sizeOffset_X     = 250;
            MenuPlaySingleplayerUI.creditsBox.foregroundTint   = ESleekTint.NONE;
            MenuPlaySingleplayerUI.container.add(MenuPlaySingleplayerUI.creditsBox);
            MenuPlaySingleplayerUI.creditsBox.isVisible      = false;
            MenuPlaySingleplayerUI.timedBox                  = new SleekBox();
            MenuPlaySingleplayerUI.timedBox.isRich           = true;
            MenuPlaySingleplayerUI.timedBox.positionOffset_X = 200;
            MenuPlaySingleplayerUI.timedBox.positionOffset_Y = 100;
            MenuPlaySingleplayerUI.timedBox.positionScale_X  = 0.5f;
            MenuPlaySingleplayerUI.timedBox.sizeOffset_X     = 250;
            MenuPlaySingleplayerUI.timedBox.sizeOffset_Y     = 70;
            MenuPlaySingleplayerUI.timedBox.foregroundTint   = ESleekTint.NONE;
            MenuPlaySingleplayerUI.container.add(MenuPlaySingleplayerUI.timedBox);
            MenuPlaySingleplayerUI.timedBox.isVisible          = false;
            MenuPlaySingleplayerUI.itemButton                  = new SleekButton();
            MenuPlaySingleplayerUI.itemButton.isRich           = true;
            MenuPlaySingleplayerUI.itemButton.positionOffset_X = 200;
            MenuPlaySingleplayerUI.itemButton.positionOffset_Y = 100;
            MenuPlaySingleplayerUI.itemButton.positionScale_X  = 0.5f;
            MenuPlaySingleplayerUI.itemButton.sizeOffset_X     = 250;
            MenuPlaySingleplayerUI.itemButton.sizeOffset_Y     = 100;
            MenuPlaySingleplayerUI.itemButton.foregroundTint   = ESleekTint.NONE;
            SleekButton sleekButton5 = MenuPlaySingleplayerUI.itemButton;

            if (MenuPlaySingleplayerUI.< > f__mg$cache5 == null)
            {
                MenuPlaySingleplayerUI.< > f__mg$cache5 = new ClickedButton(MenuPlaySingleplayerUI.onClickedCreditsButton);
            }
            sleekButton5.onClickedButton = MenuPlaySingleplayerUI.< > f__mg$cache5;
            MenuPlaySingleplayerUI.container.add(MenuPlaySingleplayerUI.itemButton);
            MenuPlaySingleplayerUI.itemButton.isVisible            = false;
            MenuPlaySingleplayerUI.feedbackButton                  = new SleekButton();
            MenuPlaySingleplayerUI.feedbackButton.positionOffset_X = 200;
            MenuPlaySingleplayerUI.feedbackButton.positionOffset_Y = 100;
            MenuPlaySingleplayerUI.feedbackButton.positionScale_X  = 0.5f;
            MenuPlaySingleplayerUI.feedbackButton.sizeOffset_X     = 250;
            MenuPlaySingleplayerUI.feedbackButton.sizeOffset_Y     = 30;
            MenuPlaySingleplayerUI.feedbackButton.text             = MenuPlaySingleplayerUI.localization.format("Feedback_Button");
            MenuPlaySingleplayerUI.feedbackButton.tooltip          = MenuPlaySingleplayerUI.localization.format("Feedback_Button_Tooltip");
            SleekButton sleekButton6 = MenuPlaySingleplayerUI.feedbackButton;

            if (MenuPlaySingleplayerUI.< > f__mg$cache6 == null)
            {
                MenuPlaySingleplayerUI.< > f__mg$cache6 = new ClickedButton(MenuPlaySingleplayerUI.onClickedFeedbackButton);
            }
            sleekButton6.onClickedButton = MenuPlaySingleplayerUI.< > f__mg$cache6;
            MenuPlaySingleplayerUI.container.add(MenuPlaySingleplayerUI.feedbackButton);
            MenuPlaySingleplayerUI.feedbackButton.isVisible = false;
            MenuPlaySingleplayerUI.playButton = new SleekButtonIcon((Texture2D)bundle.load("Play"));
            MenuPlaySingleplayerUI.playButton.positionOffset_X         = -450;
            MenuPlaySingleplayerUI.playButton.positionOffset_Y         = 290;
            MenuPlaySingleplayerUI.playButton.positionScale_X          = 0.5f;
            MenuPlaySingleplayerUI.playButton.sizeOffset_X             = 200;
            MenuPlaySingleplayerUI.playButton.sizeOffset_Y             = 30;
            MenuPlaySingleplayerUI.playButton.text                     = MenuPlaySingleplayerUI.localization.format("Play_Button");
            MenuPlaySingleplayerUI.playButton.tooltip                  = MenuPlaySingleplayerUI.localization.format("Play_Button_Tooltip");
            MenuPlaySingleplayerUI.playButton.iconImage.backgroundTint = ESleekTint.FOREGROUND;
            SleekButton sleekButton7 = MenuPlaySingleplayerUI.playButton;

            if (MenuPlaySingleplayerUI.< > f__mg$cache7 == null)
            {
                MenuPlaySingleplayerUI.< > f__mg$cache7 = new ClickedButton(MenuPlaySingleplayerUI.onClickedPlayButton);
            }
            sleekButton7.onClickedButton = MenuPlaySingleplayerUI.< > f__mg$cache7;
            MenuPlaySingleplayerUI.container.add(MenuPlaySingleplayerUI.playButton);
            MenuPlaySingleplayerUI.modeButtonState = new SleekButtonState(new GUIContent[]
            {
                new GUIContent(MenuPlaySingleplayerUI.localization.format("Easy_Button"), (Texture)bundle.load("Easy")),
                new GUIContent(MenuPlaySingleplayerUI.localization.format("Normal_Button"), (Texture)bundle.load("Normal")),
                new GUIContent(MenuPlaySingleplayerUI.localization.format("Hard_Button"), (Texture)bundle.load("Hard"))
            });
            MenuPlaySingleplayerUI.modeButtonState.positionOffset_X = -450;
            MenuPlaySingleplayerUI.modeButtonState.positionOffset_Y = 330;
            MenuPlaySingleplayerUI.modeButtonState.positionScale_X  = 0.5f;
            MenuPlaySingleplayerUI.modeButtonState.sizeOffset_X     = 200;
            MenuPlaySingleplayerUI.modeButtonState.sizeOffset_Y     = 30;
            MenuPlaySingleplayerUI.modeButtonState.state            = (int)PlaySettings.singleplayerMode;
            SleekButtonState sleekButtonState = MenuPlaySingleplayerUI.modeButtonState;

            if (MenuPlaySingleplayerUI.< > f__mg$cache8 == null)
            {
                MenuPlaySingleplayerUI.< > f__mg$cache8 = new SwappedState(MenuPlaySingleplayerUI.onSwappedModeState);
            }
            sleekButtonState.onSwappedState = MenuPlaySingleplayerUI.< > f__mg$cache8;
            MenuPlaySingleplayerUI.container.add(MenuPlaySingleplayerUI.modeButtonState);
            MenuPlaySingleplayerUI.configButton = new SleekButton();
            MenuPlaySingleplayerUI.configButton.positionOffset_X = -450;
            MenuPlaySingleplayerUI.configButton.positionOffset_Y = 370;
            MenuPlaySingleplayerUI.configButton.positionScale_X  = 0.5f;
            MenuPlaySingleplayerUI.configButton.sizeOffset_X     = 200;
            MenuPlaySingleplayerUI.configButton.sizeOffset_Y     = 30;
            MenuPlaySingleplayerUI.configButton.text             = MenuPlaySingleplayerUI.localization.format("Config_Button");
            MenuPlaySingleplayerUI.configButton.tooltip          = MenuPlaySingleplayerUI.localization.format("Config_Button_Tooltip");
            SleekButton sleekButton8 = MenuPlaySingleplayerUI.configButton;

            if (MenuPlaySingleplayerUI.< > f__mg$cache9 == null)
            {
                MenuPlaySingleplayerUI.< > f__mg$cache9 = new ClickedButton(MenuPlaySingleplayerUI.onClickedConfigButton);
            }
            sleekButton8.onClickedButton = MenuPlaySingleplayerUI.< > f__mg$cache9;
            MenuPlaySingleplayerUI.container.add(MenuPlaySingleplayerUI.configButton);
            MenuPlaySingleplayerUI.cheatsToggle = new SleekToggle();
            MenuPlaySingleplayerUI.cheatsToggle.positionOffset_X = -450;
            MenuPlaySingleplayerUI.cheatsToggle.positionOffset_Y = 410;
            MenuPlaySingleplayerUI.cheatsToggle.positionScale_X  = 0.5f;
            MenuPlaySingleplayerUI.cheatsToggle.sizeOffset_X     = 40;
            MenuPlaySingleplayerUI.cheatsToggle.sizeOffset_Y     = 40;
            MenuPlaySingleplayerUI.cheatsToggle.addLabel(MenuPlaySingleplayerUI.localization.format("Cheats_Label"), ESleekSide.RIGHT);
            MenuPlaySingleplayerUI.cheatsToggle.state = PlaySettings.singleplayerCheats;
            SleekToggle sleekToggle = MenuPlaySingleplayerUI.cheatsToggle;

            if (MenuPlaySingleplayerUI.< > f__mg$cacheA == null)
            {
                MenuPlaySingleplayerUI.< > f__mg$cacheA = new Toggled(MenuPlaySingleplayerUI.onToggledCheatsToggle);
            }
            sleekToggle.onToggled = MenuPlaySingleplayerUI.< > f__mg$cacheA;
            MenuPlaySingleplayerUI.container.add(MenuPlaySingleplayerUI.cheatsToggle);
            MenuPlaySingleplayerUI.resetButton = new SleekButtonIconConfirm(null, MenuPlaySingleplayerUI.localization.format("Reset_Button_Confirm"), MenuPlaySingleplayerUI.localization.format("Reset_Button_Confirm_Tooltip"), MenuPlaySingleplayerUI.localization.format("Reset_Button_Deny"), MenuPlaySingleplayerUI.localization.format("Reset_Button_Deny_Tooltip"));
            MenuPlaySingleplayerUI.resetButton.positionOffset_X = -450;
            MenuPlaySingleplayerUI.resetButton.positionOffset_Y = 470;
            MenuPlaySingleplayerUI.resetButton.positionScale_X  = 0.5f;
            MenuPlaySingleplayerUI.resetButton.sizeOffset_X     = 200;
            MenuPlaySingleplayerUI.resetButton.sizeOffset_Y     = 30;
            MenuPlaySingleplayerUI.resetButton.text             = MenuPlaySingleplayerUI.localization.format("Reset_Button");
            MenuPlaySingleplayerUI.resetButton.tooltip          = MenuPlaySingleplayerUI.localization.format("Reset_Button_Tooltip");
            SleekButtonIconConfirm sleekButtonIconConfirm = MenuPlaySingleplayerUI.resetButton;

            if (MenuPlaySingleplayerUI.< > f__mg$cacheB == null)
            {
                MenuPlaySingleplayerUI.< > f__mg$cacheB = new Confirm(MenuPlaySingleplayerUI.onClickedResetButton);
            }
            sleekButtonIconConfirm.onConfirmed = MenuPlaySingleplayerUI.< > f__mg$cacheB;
            MenuPlaySingleplayerUI.container.add(MenuPlaySingleplayerUI.resetButton);
            bundle.unload();
            MenuPlaySingleplayerUI.refreshLevels();
            Delegate onLevelsRefreshed = Level.onLevelsRefreshed;

            if (MenuPlaySingleplayerUI.< > f__mg$cacheC == null)
            {
                MenuPlaySingleplayerUI.< > f__mg$cacheC = new LevelsRefreshed(MenuPlaySingleplayerUI.onLevelsRefreshed);
            }
            Level.onLevelsRefreshed           = (LevelsRefreshed)Delegate.Combine(onLevelsRefreshed, MenuPlaySingleplayerUI.< > f__mg$cacheC);
            MenuPlaySingleplayerUI.backButton = new SleekButtonIcon((Texture2D)MenuDashboardUI.icons.load("Exit"));
            MenuPlaySingleplayerUI.backButton.positionOffset_Y = -50;
            MenuPlaySingleplayerUI.backButton.positionScale_Y  = 1f;
            MenuPlaySingleplayerUI.backButton.sizeOffset_X     = 200;
            MenuPlaySingleplayerUI.backButton.sizeOffset_Y     = 50;
            MenuPlaySingleplayerUI.backButton.text             = MenuDashboardUI.localization.format("BackButtonText");
            MenuPlaySingleplayerUI.backButton.tooltip          = MenuDashboardUI.localization.format("BackButtonTooltip");
            SleekButton sleekButton9 = MenuPlaySingleplayerUI.backButton;

            if (MenuPlaySingleplayerUI.< > f__mg$cacheD == null)
            {
                MenuPlaySingleplayerUI.< > f__mg$cacheD = new ClickedButton(MenuPlaySingleplayerUI.onClickedBackButton);
            }
            sleekButton9.onClickedButton = MenuPlaySingleplayerUI.< > f__mg$cacheD;
            MenuPlaySingleplayerUI.backButton.fontSize = 14;
            MenuPlaySingleplayerUI.backButton.iconImage.backgroundTint = ESleekTint.FOREGROUND;
            MenuPlaySingleplayerUI.container.add(MenuPlaySingleplayerUI.backButton);
            new MenuPlayConfigUI();
        }