Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.87 KB | None | 0 0
  1. local MENU = gui.Reference( "MENU" );
  2. local MSC_GENERAL_MAIN_REF = gui.Reference( "MISC", "GENERAL", "Main" );
  3.  
  4. local MMServerPicker_Text = gui.Text( MSC_GENERAL_MAIN_REF, "Matchmaking Server Picker" );
  5. local MMServerPicker_Editbox = gui.Editbox( MSC_GENERAL_MAIN_REF, "lua_matchmaking_picker", "" );
  6.  
  7. callbacks.Register( 'Draw', function()
  8.  
  9. if MMServerPicker_Editbox:GetValue() == "" then
  10. client.Command( "sdr SDRClient_ForceRelayCluster " .. "\"\"", true );
  11. elseif MMServerPicker_Editbox:GetValue() ~= "" then
  12. client.Command( "sdr SDRClient_ForceRelayCluster " .. MMServerPicker_Editbox:GetValue(), true );
  13. end
  14.  
  15. end)
  16.  
  17. -- Matchmaking Server List
  18.  
  19. local MM_ServerList_WindowCheckbox = gui.Checkbox( MSC_GENERAL_MAIN_REF, "lua_matchmaking_serverlist", "Matchmaking Server List", 0 );
  20.  
  21. local MMServerList_WND = gui.Window( "lua_wnd_matchmaking_serverlist", "Matchmaking Server List", 0, 0, 271, 670 );
  22.  
  23. -- Africa
  24. local MMServerList_Africa = gui.Groupbox( MMServerList_WND, "Africa", 18, 16, 235, 54 );
  25. local MMServerList_Africa_ServerList = gui.Text( MMServerList_Africa, "Johannesburg (Africa South) -> jnb" );
  26.  
  27. -- Asia
  28. local MMServerList_Asia = gui.Groupbox( MMServerList_WND, "Asia", 18, 88, 235, 100 );
  29. local MMServerList_Asia_ServerList = gui.Text( MMServerList_Asia, "Beijing (Asia North-East) -> tsnt" );
  30. local MMServerList_Asia_ServerList = gui.Text( MMServerList_Asia, "Bombay (India West) -> bom" );
  31. local MMServerList_Asia_ServerList = gui.Text( MMServerList_Asia, "Cangzhou (Asia North-East) -> pwj" );
  32. local MMServerList_Asia_ServerList = gui.Text( MMServerList_Asia, "Chennai (India South-East) -> maa" );
  33. local MMServerList_Asia_ServerList = gui.Text( MMServerList_Asia, "Dongcheng Qu (Asia Central) -> pwu" );
  34. local MMServerList_Asia_ServerList = gui.Text( MMServerList_Asia, "Dubai (Middle-East) -> dxb" );
  35. local MMServerList_Asia_ServerList = gui.Text( MMServerList_Asia, "Guangzhou 1 (Asia East) -> canm" );
  36. local MMServerList_Asia_ServerList = gui.Text( MMServerList_Asia, "Guangzhou 2 (Asia East) -> cant" );
  37. local MMServerList_Asia_ServerList = gui.Text( MMServerList_Asia, "Guangzhou 3 (Asia East) -> canu" );
  38. local MMServerList_Asia_ServerList = gui.Text( MMServerList_Asia, "Guangzhou 4 (Asua East) -> pwg" );
  39. local MMServerList_Asia_ServerList = gui.Text( MMServerList_Asia, "Hong Kong (Asia East) -> hkg" );
  40. local MMServerList_Asia_ServerList = gui.Text( MMServerList_Asia, "Hongshan Qu (Asia South-East) -> pww" );
  41. local MMServerList_Asia_ServerList = gui.Text( MMServerList_Asia, "Huangpu Qu (Asia East) -> pwt" );
  42. local MMServerList_Asia_ServerList = gui.Text( MMServerList_Asia, "Manilla (Asia South-East) -> man" );
  43. local MMServerList_Asia_ServerList = gui.Text( MMServerList_Asia, "Qingcheng (Asia East) -> can" );
  44. local MMServerList_Asia_ServerList = gui.Text( MMServerList_Asia, "Shanghai 1 (Asia East) -> sha" );
  45. local MMServerList_Asia_ServerList = gui.Text( MMServerList_Asia, "Shanghai 2 (Asia East) -> shau" );
  46. local MMServerList_Asia_ServerList = gui.Text( MMServerList_Asia, "Singapore (Asia South-East) -> sgp" );
  47. local MMServerList_Asia_ServerList = gui.Text( MMServerList_Asia, "Tianjin 1 (Asia North-East) -> tsnm" );
  48. local MMServerList_Asia_ServerList = gui.Text( MMServerList_Asia, "Tianjin 2 (Asia North-East) -> tsnu" );
  49. local MMServerList_Asia_ServerList = gui.Text( MMServerList_Asia, "Tokyo 1 (Asia East) -> tyo" );
  50. local MMServerList_Asia_ServerList = gui.Text( MMServerList_Asia, "Tokyo 2 (Asia East) -> tyo1" );
  51. local MMServerList_Asia_ServerList = gui.Text( MMServerList_Asia, "Xianghe Xian (Asia North-East) -> tsn" );
  52.  
  53. -- Australia
  54. local MMServerList_Australia = gui.Groupbox( MMServerList_WND, "Australia", 18, 208, 235, 54 );
  55. local MMServerList_Australia_ServerList = gui.Text( MMServerList_Australia, "Sydney (Australia South-East) -> syd" );
  56.  
  57. -- Europe
  58. local MMServerList_Europe = gui.Groupbox( MMServerList_WND, "Europe", 18, 280, 235, 100 );
  59. local MMServerList_Europe_ServerList = gui.Text( MMServerList_Europe, "Amsterdam (EU West) -> ams" );
  60. local MMServerList_Europe_ServerList = gui.Text( MMServerList_Europe, "Frankfurt (EU West) -> fra" );
  61. local MMServerList_Europe_ServerList = gui.Text( MMServerList_Europe, "Hamina (EU North) -> ghel" );
  62. local MMServerList_Europe_ServerList = gui.Text( MMServerList_Europe, "London (EU North) -> lhr" );
  63. local MMServerList_Europe_ServerList = gui.Text( MMServerList_Europe, "Luxembourg (EU West) -> lux" );
  64. local MMServerList_Europe_ServerList = gui.Text( MMServerList_Europe, "Madrid (EU South) -> mad" );
  65. local MMServerList_Europe_ServerList = gui.Text( MMServerList_Europe, "Paris (EU West) -> par" );
  66. local MMServerList_Europe_ServerList = gui.Text( MMServerList_Europe, "Stockholm (Bromma) (EU North) -> sto2" );
  67. local MMServerList_Europe_ServerList = gui.Text( MMServerList_Europe, "Stockholm (Kista) (EU North) -> sto" );
  68. local MMServerList_Europe_ServerList = gui.Text( MMServerList_Europe, "Vienna (EU Central) -> vie" );
  69. local MMServerList_Europe_ServerList = gui.Text( MMServerList_Europe, "Warsaw (EU Central) -> waw" );
  70.  
  71. -- North America
  72. local MMServerList_NorthAmerica = gui.Groupbox( MMServerList_WND, "North America", 18, 398, 235, 100 );
  73. local MMServerList_NorthAmerica_ServerList = gui.Text( MMServerList_NorthAmerica, "Atlanta (US East) -> atl" );
  74. local MMServerList_NorthAmerica_ServerList = gui.Text( MMServerList_NorthAmerica, "Chicago (US Central) -> ord" );
  75. local MMServerList_NorthAmerica_ServerList = gui.Text( MMServerList_NorthAmerica, "Los Angeles (US West) -> lax" );
  76. local MMServerList_NorthAmerica_ServerList = gui.Text( MMServerList_NorthAmerica, "Moses Lake 1 (US Central) -> eat" );
  77. local MMServerList_NorthAmerica_ServerList = gui.Text( MMServerList_NorthAmerica, "Moses Lake 2 (US Central) -> mwh" );
  78. local MMServerList_NorthAmerica_ServerList = gui.Text( MMServerList_NorthAmerica, "Oklahoma City (US Central) -> okc" );
  79. local MMServerList_NorthAmerica_ServerList = gui.Text( MMServerList_NorthAmerica, "Seattle (US North-West) -> sea" );
  80. local MMServerList_NorthAmerica_ServerList = gui.Text( MMServerList_NorthAmerica, "Sterling (US East) -> iad" );
  81.  
  82. -- South America
  83. local MMServerList_SouthAmerica = gui.Groupbox( MMServerList_WND, "South America", 18, 516, 235, 100 );
  84. local MMServerList_SouthAmerica_ServerList = gui.Text( MMServerList_SouthAmerica, "Lima (SA West) -> lim" );
  85. local MMServerList_SouthAmerica_ServerList = gui.Text( MMServerList_SouthAmerica, "Sao Paulo 1 (SA East) -> gru" );
  86. local MMServerList_SouthAmerica_ServerList = gui.Text( MMServerList_SouthAmerica, "Sao Paulo 2 (SA East) -> ggru" );
  87. local MMServerList_SouthAmerica_ServerList = gui.Text( MMServerList_SouthAmerica, "Santiago (SA South-West) -> scl" );
  88.  
  89. local function MMServerList()
  90.  
  91. if MM_ServerList_WindowCheckbox:GetValue() and MENU:IsActive() then
  92. MMServerList_WND:SetActive(1)
  93. else
  94. MMServerList_WND:SetActive(0)
  95. end
  96.  
  97. end
  98.  
  99. callbacks.Register( 'Draw', MMServerList )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement