DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ LoadEntries() [1/2]

void ServerBrowserTab::LoadEntries ( int cur_page_index,
GetServersResultRowArray page )
inlineprotected

См. определение в файле ServerBrowserTabConsole.c строка 127

128 {
129 if ( !m_Menu || m_Menu.GetServersLoadingTab() != m_TabType )
130 {
131 return;
132 }
133
134 int index = cur_page_index * SERVER_BROWSER_PAGE_SIZE;
135 GetServersResultRowArray page_entries = page;
136 if ( page_entries )
137 {
138 foreach ( GetServersResultRow result : page_entries )
139 {
141
142 if ( PassFilter( result ) )
143 {
144 ServerBrowserEntry entry = new ServerBrowserEntry( m_ServerList, index, this );
145 string ipPort = result.GetIpPort();
146 entry.FillInfo( result );
147 entry.SetFavorite( m_Menu.IsFavorited(ipPort));
148 entry.UpdateEntry();
149
150 m_EntryWidgets.Insert(ipPort, entry);
151 index++;
152 m_EntriesSorted[m_SortType].Insert( result );
153
154 if ( m_EntryWidgets.Count() > 0 )
155 {
157 }
158 }
159
160 if ( !m_Menu || m_Menu.GetServersLoadingTab() != m_TabType )
161 return;
162 }
163
164 m_ServerList.Update();
165 }
166 /*
167 if ( cur_page_index == 1 && m_EntryWidgets.Count() > 0 )
168 {
169 SetFocusServers();
170 }
171 else
172 {
173 m_LoadingText.SetText( "#server_browser_unable_with_filter" );
174 SetFocusFilters();
175 }
176 */
177
178 if ( m_EntriesSorted[m_SortType].Count() > 0 )
179 {
180 /*
181
182 */
183 }
184 else
185 {
186 //m_LoadingText.SetText( "#server_browser_unable_with_filter" );
187
188 }
189
190 if ( !m_Menu )
191 return;
192
194 {
195 //m_LoadingText.SetText( "#server_browser_tab_loaded" + " " + m_EntryWidgets.Count() + "/" + m_EntryWidgets.Count() + " " + "#server_browser_servers_desc" );
196 m_Menu.SetServersLoadingTab( TabType.NONE );
197 }
198 }
array< ref GetServersResultRow > GetServersResultRowArray
Определения BiosLobbyService.c:305
@ Count
Определения RandomGeneratorSyncManager.c:8
const int SERVER_BROWSER_PAGE_SIZE
Определения ServerBrowserMenuNew.c:6
ref map< ESortType, ref array< ref GetServersResultRow > > m_EntriesSorted
Определения ServerBrowserTab.c:75
TabType m_TabType
Определения ServerBrowserTab.c:40
ref map< string, ref ServerBrowserEntry > m_EntryWidgets
Определения ServerBrowserTab.c:32
int m_TotalPages
Определения ServerBrowserTab.c:51
TabType
Определения ServerBrowserTab.c:2
int m_TotalLoadedServers
Определения ServerBrowserTab.c:49
ServerBrowserMenuNew m_Menu
Определения ServerBrowserTab.c:37
int m_LastLoadedPage
Определения ServerBrowserTab.c:50
ESortType m_SortType
Определения ServerBrowserTab.c:41
SpacerBaseWidget m_ServerList
Определения ServerBrowserTab.c:28
void SetFocusServers()
Определения ServerBrowserTabConsole.c:349
override bool PassFilter(GetServersResultRow result)
Определения ServerBrowserTabConsolePages.c:269

Перекрестные ссылки Count, m_EntriesSorted, m_EntryWidgets, m_LastLoadedPage, m_Menu, m_ServerList, m_SortType, m_TabType, m_TotalLoadedServers, m_TotalPages, PassFilter(), SERVER_BROWSER_PAGE_SIZE и SetFocusServers().

Используется в OnLoadServersAsyncConsole().