Beispiel #1
0
        // Token: 0x06002EDB RID: 11995 RVA: 0x00132228 File Offset: 0x00130628
        private static void triggerLobbiesEntered()
        {
            LobbiesEnteredHandler lobbiesEnteredHandler = Lobbies.lobbiesEntered;

            if (lobbiesEnteredHandler != null)
            {
                lobbiesEnteredHandler();
            }
        }
        public MenuPlayLobbiesUI()
        {
            MenuPlayLobbiesUI.localization = Localization.read("/Menu/Play/MenuPlayLobbies.dat");
            Bundle bundle = Bundles.getBundle("/Bundles/Textures/Menu/Icons/Play/MenuPlayLobbies/MenuPlayLobbies.unity3d");

            MenuPlayLobbiesUI.container = new Sleek();
            MenuPlayLobbiesUI.container.positionOffset_X = 10;
            MenuPlayLobbiesUI.container.positionOffset_Y = 10;
            MenuPlayLobbiesUI.container.positionScale_Y  = 1f;
            MenuPlayLobbiesUI.container.sizeOffset_X     = -20;
            MenuPlayLobbiesUI.container.sizeOffset_Y     = -20;
            MenuPlayLobbiesUI.container.sizeScale_X      = 1f;
            MenuPlayLobbiesUI.container.sizeScale_Y      = 1f;
            MenuUI.container.add(MenuPlayLobbiesUI.container);
            MenuPlayLobbiesUI.active = false;
            bundle.unload();
            MenuPlayLobbiesUI.membersLabel = new SleekLabel();
            MenuPlayLobbiesUI.membersLabel.positionOffset_X = -200;
            MenuPlayLobbiesUI.membersLabel.positionOffset_Y = 100;
            MenuPlayLobbiesUI.membersLabel.positionScale_X  = 0.5f;
            MenuPlayLobbiesUI.membersLabel.sizeOffset_X     = 400;
            MenuPlayLobbiesUI.membersLabel.sizeOffset_Y     = 50;
            MenuPlayLobbiesUI.membersLabel.text             = MenuPlayLobbiesUI.localization.format("Members");
            MenuPlayLobbiesUI.membersLabel.fontSize         = 14;
            MenuPlayLobbiesUI.container.add(MenuPlayLobbiesUI.membersLabel);
            MenuPlayLobbiesUI.membersBox = new SleekScrollBox();
            MenuPlayLobbiesUI.membersBox.positionOffset_X = -200;
            MenuPlayLobbiesUI.membersBox.positionOffset_Y = 150;
            MenuPlayLobbiesUI.membersBox.positionScale_X  = 0.5f;
            MenuPlayLobbiesUI.membersBox.sizeOffset_X     = 430;
            MenuPlayLobbiesUI.membersBox.sizeOffset_Y     = -300;
            MenuPlayLobbiesUI.membersBox.sizeScale_Y      = 1f;
            MenuPlayLobbiesUI.container.add(MenuPlayLobbiesUI.membersBox);
            MenuPlayLobbiesUI.inviteButton = new SleekButtonIcon((Texture2D)MenuDashboardUI.icons.load("Invite"));
            MenuPlayLobbiesUI.inviteButton.positionOffset_X = -200;
            MenuPlayLobbiesUI.inviteButton.positionOffset_Y = -150;
            MenuPlayLobbiesUI.inviteButton.positionScale_X  = 0.5f;
            MenuPlayLobbiesUI.inviteButton.positionScale_Y  = 1f;
            MenuPlayLobbiesUI.inviteButton.sizeOffset_X     = 400;
            MenuPlayLobbiesUI.inviteButton.sizeOffset_Y     = 50;
            MenuPlayLobbiesUI.inviteButton.text             = MenuPlayLobbiesUI.localization.format("Invite_Button");
            MenuPlayLobbiesUI.inviteButton.tooltip          = MenuPlayLobbiesUI.localization.format("Invite_Button_Tooltip");
            SleekButton sleekButton = MenuPlayLobbiesUI.inviteButton;

            if (MenuPlayLobbiesUI.< > f__mg$cache0 == null)
            {
                MenuPlayLobbiesUI.< > f__mg$cache0 = new ClickedButton(MenuPlayLobbiesUI.onClickedInviteButton);
            }
            sleekButton.onClickedButton             = MenuPlayLobbiesUI.< > f__mg$cache0;
            MenuPlayLobbiesUI.inviteButton.fontSize = 14;
            MenuPlayLobbiesUI.inviteButton.iconImage.backgroundTint = ESleekTint.FOREGROUND;
            MenuPlayLobbiesUI.container.add(MenuPlayLobbiesUI.inviteButton);
            MenuPlayLobbiesUI.backButton = new SleekButtonIcon((Texture2D)MenuDashboardUI.icons.load("Exit"));
            MenuPlayLobbiesUI.backButton.positionOffset_Y = -50;
            MenuPlayLobbiesUI.backButton.positionScale_Y  = 1f;
            MenuPlayLobbiesUI.backButton.sizeOffset_X     = 200;
            MenuPlayLobbiesUI.backButton.sizeOffset_Y     = 50;
            MenuPlayLobbiesUI.backButton.text             = MenuDashboardUI.localization.format("BackButtonText");
            MenuPlayLobbiesUI.backButton.tooltip          = MenuDashboardUI.localization.format("BackButtonTooltip");
            SleekButton sleekButton2 = MenuPlayLobbiesUI.backButton;

            if (MenuPlayLobbiesUI.< > f__mg$cache1 == null)
            {
                MenuPlayLobbiesUI.< > f__mg$cache1 = new ClickedButton(MenuPlayLobbiesUI.onClickedBackButton);
            }
            sleekButton2.onClickedButton          = MenuPlayLobbiesUI.< > f__mg$cache1;
            MenuPlayLobbiesUI.backButton.fontSize = 14;
            MenuPlayLobbiesUI.backButton.iconImage.backgroundTint = ESleekTint.FOREGROUND;
            MenuPlayLobbiesUI.container.add(MenuPlayLobbiesUI.backButton);
            if (MenuPlayLobbiesUI.< > f__mg$cache2 == null)
            {
                MenuPlayLobbiesUI.< > f__mg$cache2 = new LobbiesRefreshedHandler(MenuPlayLobbiesUI.handleLobbiesRefreshed);
            }
            Lobbies.lobbiesRefreshed = MenuPlayLobbiesUI.< > f__mg$cache2;
            if (MenuPlayLobbiesUI.< > f__mg$cache3 == null)
            {
                MenuPlayLobbiesUI.< > f__mg$cache3 = new LobbiesEnteredHandler(MenuPlayLobbiesUI.handleLobbiesEntered);
            }
            Lobbies.lobbiesEntered = MenuPlayLobbiesUI.< > f__mg$cache3;
        }