예제 #1
0
        private void OnEnable()
        {
            MpModeSelection.SetTitle("Server Browser");

            HostedGameBrowser.OnUpdate        += OnBrowserUpdate;
            _tableView.joinButtonPressedEvent += OnJoinPressed;

            DoFullRefresh();
        }
예제 #2
0
        private void SetInitialUiState()
        {
            MpModeSelection.SetTitle("Server Browser");

            StatusText.text  = "Loading...";
            StatusText.color = Color.gray;

            RefreshButton.interactable = false;
            SearchButton.interactable  = false;
            ConnectButton.interactable = false;

            PageUpButton.interactable   = false;
            PageDownButton.interactable = false;

            ClearSelection();
            CancelImageLoading();
        }
        private void SetInitialUiState()
        {
            MpModeSelection.SetTitle("Server Browser");

            StatusText.text  = "Loading...";
            StatusText.color = Color.gray;

            // sometimes the non-primary buttons become disabled if the server browser
            //  isn't opened until after level selection, so let's ensure they're active
            RefreshButton.gameObject.SetActive(true);
            SearchButton.gameObject.SetActive(true);
            CreateButton.gameObject.SetActive(true);

            RefreshButton.interactable = false;
            SearchButton.interactable  = false;
            ConnectButton.interactable = false;

            PageUpButton.interactable   = false;
            PageDownButton.interactable = false;

            ClearSelection();
            CancelImageLoading();
        }