コード例 #1
0
ファイル: MenuUI.cs プロジェクト: sky-xk-nge/Unturned
 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: 0x060036B3 RID: 14003 RVA: 0x00177325 File Offset: 0x00175725
 private static void onClickedLevel(SleekLevel level, byte index)
 {
     if ((int)index < MenuPlayMatchmakingUI.levels.Length && MenuPlayMatchmakingUI.levels[(int)index] != null)
     {
         PlaySettings.matchmakingMap = MenuPlayMatchmakingUI.levels[(int)index].name;
         MenuPlayMatchmakingUI.updateSelection();
     }
 }
コード例 #3
0
 // Token: 0x060036B4 RID: 14004 RVA: 0x00177358 File Offset: 0x00175758
 private static void onClickedSearchButton(SleekButton button)
 {
     if (PlaySettings.matchmakingMap == null || PlaySettings.matchmakingMap.Length == 0)
     {
         return;
     }
     MenuSettings.save();
     Provider.provider.matchmakingService.initializeMatchmaking();
     Provider.provider.matchmakingService.refreshMasterServer(ESteamServerList.INTERNET, PlaySettings.matchmakingMap, EPassword.NO, EWorkshop.NO, EPlugins.ANY, EAttendance.SPACE, EVACProtectionFilter.Secure, EBattlEyeProtectionFilter.Secure, false, ECombat.PVP, ECheats.NO, PlaySettings.matchmakingMode, ECameraMode.BOTH);
     Provider.provider.matchmakingService.sortMasterServer(new SteamServerInfoMatchmakingComparator());
     MenuPlayMatchmakingUI.updateProgressDisplay();
     MenuPlayMatchmakingUI.updateMatchDisplay();
 }
コード例 #4
0
        // Token: 0x060036B8 RID: 14008 RVA: 0x0017741C File Offset: 0x0017581C
        private static void refreshLevels()
        {
            MenuPlayMatchmakingUI.levelScrollBox.remove();
            MenuPlayMatchmakingUI.levels = Level.getLevels((!OptionsSettings.matchmakingShowAllMaps) ? ESingleplayerMapCategory.MATCHMAKING : ESingleplayerMapCategory.ALL);
            bool flag = false;

            MenuPlayMatchmakingUI.levelButtons = new SleekLevel[MenuPlayMatchmakingUI.levels.Length];
            for (int i = 0; i < MenuPlayMatchmakingUI.levels.Length; i++)
            {
                if (MenuPlayMatchmakingUI.levels[i] != null)
                {
                    SleekLevel sleekLevel = new SleekLevel(MenuPlayMatchmakingUI.levels[i], false);
                    sleekLevel.positionOffset_Y = i * 110;
                    SleekLevel sleekLevel2 = sleekLevel;
                    if (MenuPlayMatchmakingUI.< > f__mg$cache0 == null)
                    {
                        MenuPlayMatchmakingUI.< > f__mg$cache0 = new ClickedLevel(MenuPlayMatchmakingUI.onClickedLevel);
                    }
                    sleekLevel2.onClickedLevel = MenuPlayMatchmakingUI.< > f__mg$cache0;
                    MenuPlayMatchmakingUI.levelScrollBox.add(sleekLevel);
                    MenuPlayMatchmakingUI.levelButtons[i] = sleekLevel;
                    if (!flag && MenuPlayMatchmakingUI.levels[i].name == PlaySettings.matchmakingMap)
                    {
                        flag = true;
                    }
                }
            }
            if (MenuPlayMatchmakingUI.levels.Length == 0)
            {
                PlaySettings.matchmakingMap = string.Empty;
            }
            else if (!flag || PlaySettings.matchmakingMap == null || PlaySettings.matchmakingMap.Length == 0)
            {
                PlaySettings.matchmakingMap = MenuPlayMatchmakingUI.levels[0].name;
            }
            MenuPlayMatchmakingUI.updateSelection();
            MenuPlayMatchmakingUI.levelScrollBox.area = new Rect(0f, 0f, 5f, (float)(MenuPlayMatchmakingUI.levels.Length * 110 - 10));
        }
コード例 #5
0
ファイル: MenuUI.cs プロジェクト: sky-xk-nge/Unturned
 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 onClickedMatchmakingButton(SleekButton button)
 {
     MenuPlayMatchmakingUI.open();
     MenuPlayUI.close();
 }
コード例 #7
0
 // Token: 0x060036BD RID: 14013 RVA: 0x00177757 File Offset: 0x00175B57
 private static void handleMatchmakingFinished()
 {
     MenuPlayMatchmakingUI.updateMatchDisplay();
 }
コード例 #8
0
 // Token: 0x060036BC RID: 14012 RVA: 0x00177750 File Offset: 0x00175B50
 private static void handleMatchmakingProgressed()
 {
     MenuPlayMatchmakingUI.updateProgressDisplay();
 }
コード例 #9
0
 // Token: 0x060036B9 RID: 14009 RVA: 0x00177572 File Offset: 0x00175972
 private static void onLevelsRefreshed()
 {
     MenuPlayMatchmakingUI.refreshLevels();
 }
コード例 #10
0
 // Token: 0x060036B5 RID: 14005 RVA: 0x001773D5 File Offset: 0x001757D5
 private static void onClickedInfoButton(SleekButton button)
 {
     MenuPlayServerInfoUI.open(Provider.provider.matchmakingService.matchmakingBestServer, string.Empty, MenuPlayServerInfoUI.EServerInfoOpenContext.MATCHMAKING);
     MenuPlayMatchmakingUI.close();
 }
コード例 #11
0
        // Token: 0x060036AF RID: 13999 RVA: 0x00176B30 File Offset: 0x00174F30
        public MenuPlayMatchmakingUI()
        {
            MenuPlayMatchmakingUI.localization = Localization.read("/Menu/Play/MenuPlayMatchmaking.dat");
            Bundle bundle = Bundles.getBundle("/Bundles/Textures/Menu/Icons/Play/MenuPlayMatchmaking/MenuPlayMatchmaking.unity3d");

            MenuPlayMatchmakingUI.container = new Sleek();
            MenuPlayMatchmakingUI.container.positionOffset_X = 10;
            MenuPlayMatchmakingUI.container.positionOffset_Y = 10;
            MenuPlayMatchmakingUI.container.positionScale_Y  = 1f;
            MenuPlayMatchmakingUI.container.sizeOffset_X     = -20;
            MenuPlayMatchmakingUI.container.sizeOffset_Y     = -20;
            MenuPlayMatchmakingUI.container.sizeScale_X      = 1f;
            MenuPlayMatchmakingUI.container.sizeScale_Y      = 1f;
            MenuUI.container.add(MenuPlayMatchmakingUI.container);
            MenuPlayMatchmakingUI.active         = false;
            MenuPlayMatchmakingUI.levelScrollBox = new SleekScrollBox();
            MenuPlayMatchmakingUI.levelScrollBox.positionOffset_X = -200;
            MenuPlayMatchmakingUI.levelScrollBox.positionOffset_Y = 280;
            MenuPlayMatchmakingUI.levelScrollBox.positionScale_X  = 0.5f;
            MenuPlayMatchmakingUI.levelScrollBox.sizeOffset_X     = 430;
            MenuPlayMatchmakingUI.levelScrollBox.sizeOffset_Y     = -380;
            MenuPlayMatchmakingUI.levelScrollBox.sizeScale_Y      = 1f;
            MenuPlayMatchmakingUI.levelScrollBox.area             = new Rect(0f, 0f, 5f, 0f);
            MenuPlayMatchmakingUI.container.add(MenuPlayMatchmakingUI.levelScrollBox);
            MenuPlayMatchmakingUI.searchButton = new SleekButtonIcon((Texture2D)bundle.load("Search"));
            MenuPlayMatchmakingUI.searchButton.positionOffset_X         = -200;
            MenuPlayMatchmakingUI.searchButton.positionOffset_Y         = 100;
            MenuPlayMatchmakingUI.searchButton.positionScale_X          = 0.5f;
            MenuPlayMatchmakingUI.searchButton.sizeOffset_X             = 400;
            MenuPlayMatchmakingUI.searchButton.sizeOffset_Y             = 30;
            MenuPlayMatchmakingUI.searchButton.text                     = MenuPlayMatchmakingUI.localization.format("Search_Button");
            MenuPlayMatchmakingUI.searchButton.tooltip                  = MenuPlayMatchmakingUI.localization.format("Search_Button_Tooltip");
            MenuPlayMatchmakingUI.searchButton.iconImage.backgroundTint = ESleekTint.FOREGROUND;
            SleekButton sleekButton = MenuPlayMatchmakingUI.searchButton;

            if (MenuPlayMatchmakingUI.< > f__mg$cache1 == null)
            {
                MenuPlayMatchmakingUI.< > f__mg$cache1 = new ClickedButton(MenuPlayMatchmakingUI.onClickedSearchButton);
            }
            sleekButton.onClickedButton = MenuPlayMatchmakingUI.< > f__mg$cache1;
            MenuPlayMatchmakingUI.container.add(MenuPlayMatchmakingUI.searchButton);
            MenuPlayMatchmakingUI.selectedBox = new SleekBox();
            MenuPlayMatchmakingUI.selectedBox.positionOffset_X = -200;
            MenuPlayMatchmakingUI.selectedBox.positionOffset_Y = 250;
            MenuPlayMatchmakingUI.selectedBox.positionScale_X  = 0.5f;
            MenuPlayMatchmakingUI.selectedBox.sizeOffset_X     = 400;
            MenuPlayMatchmakingUI.selectedBox.sizeOffset_Y     = 30;
            MenuPlayMatchmakingUI.container.add(MenuPlayMatchmakingUI.selectedBox);
            MenuPlayMatchmakingUI.progressBox = new SleekBox();
            MenuPlayMatchmakingUI.progressBox.positionOffset_X = -200;
            MenuPlayMatchmakingUI.progressBox.positionOffset_Y = 130;
            MenuPlayMatchmakingUI.progressBox.positionScale_X  = 0.5f;
            MenuPlayMatchmakingUI.progressBox.sizeOffset_X     = 400;
            MenuPlayMatchmakingUI.progressBox.sizeOffset_Y     = 50;
            MenuPlayMatchmakingUI.container.add(MenuPlayMatchmakingUI.progressBox);
            MenuPlayMatchmakingUI.infoButton = new SleekButtonIcon((Texture2D)bundle.load("Info"));
            MenuPlayMatchmakingUI.infoButton.positionOffset_X         = -200;
            MenuPlayMatchmakingUI.infoButton.positionOffset_Y         = 180;
            MenuPlayMatchmakingUI.infoButton.positionScale_X          = 0.5f;
            MenuPlayMatchmakingUI.infoButton.sizeOffset_X             = 195;
            MenuPlayMatchmakingUI.infoButton.sizeOffset_Y             = 30;
            MenuPlayMatchmakingUI.infoButton.text                     = MenuPlayMatchmakingUI.localization.format("Info_Button");
            MenuPlayMatchmakingUI.infoButton.tooltip                  = MenuPlayMatchmakingUI.localization.format("Info_Button_Tooltip");
            MenuPlayMatchmakingUI.infoButton.iconImage.backgroundTint = ESleekTint.FOREGROUND;
            SleekButton sleekButton2 = MenuPlayMatchmakingUI.infoButton;

            if (MenuPlayMatchmakingUI.< > f__mg$cache2 == null)
            {
                MenuPlayMatchmakingUI.< > f__mg$cache2 = new ClickedButton(MenuPlayMatchmakingUI.onClickedInfoButton);
            }
            sleekButton2.onClickedButton = MenuPlayMatchmakingUI.< > f__mg$cache2;
            MenuPlayMatchmakingUI.container.add(MenuPlayMatchmakingUI.infoButton);
            MenuPlayMatchmakingUI.luckyButton = new SleekButtonIcon((Texture2D)bundle.load("Lucky"));
            MenuPlayMatchmakingUI.luckyButton.positionOffset_X         = 5;
            MenuPlayMatchmakingUI.luckyButton.positionOffset_Y         = 180;
            MenuPlayMatchmakingUI.luckyButton.positionScale_X          = 0.5f;
            MenuPlayMatchmakingUI.luckyButton.sizeOffset_X             = 195;
            MenuPlayMatchmakingUI.luckyButton.sizeOffset_Y             = 30;
            MenuPlayMatchmakingUI.luckyButton.text                     = MenuPlayMatchmakingUI.localization.format("Lucky_Button");
            MenuPlayMatchmakingUI.luckyButton.tooltip                  = MenuPlayMatchmakingUI.localization.format("Lucky_Button_Tooltip");
            MenuPlayMatchmakingUI.luckyButton.iconImage.backgroundTint = ESleekTint.FOREGROUND;
            SleekButton sleekButton3 = MenuPlayMatchmakingUI.luckyButton;

            if (MenuPlayMatchmakingUI.< > f__mg$cache3 == null)
            {
                MenuPlayMatchmakingUI.< > f__mg$cache3 = new ClickedButton(MenuPlayMatchmakingUI.onClickedLuckyButton);
            }
            sleekButton3.onClickedButton = MenuPlayMatchmakingUI.< > f__mg$cache3;
            MenuPlayMatchmakingUI.container.add(MenuPlayMatchmakingUI.luckyButton);
            MenuPlayMatchmakingUI.updateProgressDisplay();
            MenuPlayMatchmakingUI.updateMatchDisplay();
            MenuPlayMatchmakingUI.modeButtonState = new SleekButtonState(new GUIContent[]
            {
                new GUIContent(MenuPlayMatchmakingUI.localization.format("Easy_Button"), (Texture)bundle.load("Easy")),
                new GUIContent(MenuPlayMatchmakingUI.localization.format("Normal_Button"), (Texture)bundle.load("Normal")),
                new GUIContent(MenuPlayMatchmakingUI.localization.format("Hard_Button"), (Texture)bundle.load("Hard"))
            });
            MenuPlayMatchmakingUI.modeButtonState.positionOffset_X = -200;
            MenuPlayMatchmakingUI.modeButtonState.positionOffset_Y = 220;
            MenuPlayMatchmakingUI.modeButtonState.positionScale_X  = 0.5f;
            MenuPlayMatchmakingUI.modeButtonState.sizeOffset_X     = 400;
            MenuPlayMatchmakingUI.modeButtonState.sizeOffset_Y     = 30;
            MenuPlayMatchmakingUI.modeButtonState.state            = (int)PlaySettings.matchmakingMode;
            SleekButtonState sleekButtonState = MenuPlayMatchmakingUI.modeButtonState;

            if (MenuPlayMatchmakingUI.< > f__mg$cache4 == null)
            {
                MenuPlayMatchmakingUI.< > f__mg$cache4 = new SwappedState(MenuPlayMatchmakingUI.onSwappedModeState);
            }
            sleekButtonState.onSwappedState = MenuPlayMatchmakingUI.< > f__mg$cache4;
            MenuPlayMatchmakingUI.container.add(MenuPlayMatchmakingUI.modeButtonState);
            bundle.unload();
            MenuPlayMatchmakingUI.refreshLevels();
            Delegate onLevelsRefreshed = Level.onLevelsRefreshed;

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

            if (MenuPlayMatchmakingUI.< > f__mg$cache6 == null)
            {
                MenuPlayMatchmakingUI.< > f__mg$cache6 = new ClickedButton(MenuPlayMatchmakingUI.onClickedBackButton);
            }
            sleekButton4.onClickedButton = MenuPlayMatchmakingUI.< > f__mg$cache6;
            MenuPlayMatchmakingUI.backButton.fontSize = 14;
            MenuPlayMatchmakingUI.backButton.iconImage.backgroundTint = ESleekTint.FOREGROUND;
            MenuPlayMatchmakingUI.container.add(MenuPlayMatchmakingUI.backButton);
            TempSteamworksMatchmaking matchmakingService = Provider.provider.matchmakingService;

            if (MenuPlayMatchmakingUI.< > f__mg$cache7 == null)
            {
                MenuPlayMatchmakingUI.< > f__mg$cache7 = new TempSteamworksMatchmaking.MatchmakingProgressedHandler(MenuPlayMatchmakingUI.handleMatchmakingProgressed);
            }
            matchmakingService.matchmakingProgressed = MenuPlayMatchmakingUI.< > f__mg$cache7;
            TempSteamworksMatchmaking matchmakingService2 = Provider.provider.matchmakingService;

            if (MenuPlayMatchmakingUI.< > f__mg$cache8 == null)
            {
                MenuPlayMatchmakingUI.< > f__mg$cache8 = new TempSteamworksMatchmaking.MatchmakingFinishedHandler(MenuPlayMatchmakingUI.handleMatchmakingFinished);
            }
            matchmakingService2.matchmakingFinished = MenuPlayMatchmakingUI.< > f__mg$cache8;
        }