28#ifdef PLATFORM_CONSOLE
29 layoutRoot =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/new_ui/server_browser/xbox/server_browser.layout");
34 layoutRoot =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/new_ui/server_browser/pc/server_browser.layout");
41 layoutRoot.FindAnyWidget(
"Tabber").GetScript(m_Tabber);
43 m_Play = layoutRoot.FindAnyWidget(
"play");
44 m_Back = layoutRoot.FindAnyWidget(
"back_button");
45 m_CustomizeCharacter = layoutRoot.FindAnyWidget(
"customize_character");
46 m_PlayerName =
TextWidget.Cast(layoutRoot.FindAnyWidget(
"character_name_text"));
49#ifndef PLATFORM_CONSOLE
50 layoutRoot.FindAnyWidget(
"customize_character").Show(
false);
51 layoutRoot.FindAnyWidget(
"character").Show(
false);
59#ifdef PLATFORM_CONSOLE
60 version =
"#main_menu_version" +
" " + version +
" (" +
g_Game.GetDatabaseID() +
")";
63 layoutRoot.FindAnyWidget(
"play_panel_root").Show(
true);
64 layoutRoot.FindAnyWidget(
"MouseAndKeyboardWarning").Show(
true);
65 layoutRoot.FindAnyWidget(
"toolbar_bg").Show(
false);
68 version =
"#main_menu_version" +
" " + version;
73 LoadFavoriteServers();
75 m_Tabber.m_OnTabSwitch.Insert(OnTabSwitch);
77 m_FavoritesTab.RefreshList();
79#ifdef PLATFORM_CONSOLE
83 sort_text.SetText(
"#str_serverbrowserroot_toolbar_bg_consoletoolbar_sort_sorttext0");
389 m_Tabber.PreviousTab();
395 GetSelectedTab().PressSholderLeft();
398 GetSelectedTab().PressSholderRight();
401 GetSelectedTab().PressA();
404 GetSelectedTab().PressX();
407 GetSelectedTab().PressY();
410 GetSelectedTab().Left();
414 GetSelectedTab().LeftHold();
418 GetSelectedTab().LeftRelease();
421 GetSelectedTab().Right();
425 GetSelectedTab().RightHold();
429 GetSelectedTab().RightRelease();
432 GetSelectedTab().Up();
435 GetSelectedTab().Down();