5 super.Construct(parent, menu, type);
8 m_Root.FindAnyWidget(
"filters_content").Show(
false);
9 m_Root.FindAnyWidget(
"reset_filter_button").Show(
false);
12 override void OnLoadServersAsyncFinished()
17 super.OnLoadServersAsyncFinished();
22 if (cur_page_index == 1)
27 super.LoadEntries(cur_page_index, page_entries);
45 foreach (
string ipPort : favIds)
49 offlineFavIds.Insert(ipPort);
56 for (
int i = startingIndex; i < offlineFavIds.Count(); ++i)
58 string favServerId = offlineFavIds[i];
72 favServerId.Split(
":", parts);
75 if (parts.Count() != 2)
80 GetServersResultRow offlineRow =
new GetServersResultRow();
81 offlineRow.m_Name = favServerId;
82 offlineRow.m_Id = favServerId;
83 offlineRow.m_HostIp = parts[0];
84 offlineRow.m_HostPort = parts[1].ToInt();
85 offlineRow.m_SteamQueryPort = offlineRow.m_HostPort;
86 offlineRow.m_Favorite =
true;
88 ServerBrowserEntry entry = GetServerEntryByIndex( index );
89 entry.SetIsOnline(
false);
90 entry.FillInfo(offlineRow);
103 #ifdef PLATFORM_WINDOWS
110 override bool PassFilter(GetServersResultRow result)
114 if (!
m_Menu.IsFavorited(result.GetIpPort()))
120 return super.PassFilter(result);
128 case SelectedPanel.FILTERS:
149 override void SetFocusFilters()
151 super.SetFocusFilters();
153 m_Menu.ShowYButton(
false);
154 m_Menu.ShowAButton(
false);