Advertisement
BloodknightStudios

Untitled

Nov 15th, 2015
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. function JoinServerDlg::update(%this)
  2. {
  3. // Copy the servers into the server list.
  4. JS_queryStatus.setVisible(false);
  5. JS_serverList.clear();
  6. %sc = getServerCount();
  7. for( %i = 0; %i < %sc; %i ++ ) {
  8. setServerInfo(%i);
  9. JS_serverList.addRow( %i,
  10. $ServerInfo::Name TAB
  11. $ServerInfo::Ping TAB
  12. $ServerInfo::PlayerCount @ "/" @ $ServerInfo::MaxPlayers TAB
  13. $ServerInfo::Version TAB
  14. $ServerInfo::MissionName
  15. );
  16. }
  17. JS_serverList.sort(0);
  18. JS_serverList.setSelectedRow(0);
  19. JS_serverList.scrollVisible(0);
  20.  
  21. JS_joinServer.setActive(JS_serverList.rowCount() > 0);
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement