Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function JoinServerDlg::update(%this)
- {
- // Copy the servers into the server list.
- JS_queryStatus.setVisible(false);
- JS_serverList.clear();
- %sc = getServerCount();
- for( %i = 0; %i < %sc; %i ++ ) {
- setServerInfo(%i);
- JS_serverList.addRow( %i,
- $ServerInfo::Name TAB
- $ServerInfo::Ping TAB
- $ServerInfo::PlayerCount @ "/" @ $ServerInfo::MaxPlayers TAB
- $ServerInfo::Version TAB
- $ServerInfo::MissionName
- );
- }
- JS_serverList.sort(0);
- JS_serverList.setSelectedRow(0);
- JS_serverList.scrollVisible(0);
- JS_joinServer.setActive(JS_serverList.rowCount() > 0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement