aboutsummaryrefslogtreecommitdiff
path: root/Northstar.Client
diff options
context:
space:
mode:
Diffstat (limited to 'Northstar.Client')
-rw-r--r--Northstar.Client/mod/resource/northstar_client_localisation_english.txt2
-rw-r--r--Northstar.Client/mod/resource/northstar_client_localisation_french.txt2
-rw-r--r--Northstar.Client/mod/resource/northstar_client_localisation_german.txt2
-rw-r--r--Northstar.Client/mod/resource/northstar_client_localisation_italian.txt2
-rw-r--r--Northstar.Client/mod/resource/northstar_client_localisation_japanese.txt2
-rw-r--r--Northstar.Client/mod/resource/northstar_client_localisation_mspanish.txt2
-rw-r--r--Northstar.Client/mod/resource/northstar_client_localisation_portuguese.txt2
-rw-r--r--Northstar.Client/mod/resource/northstar_client_localisation_russian.txt2
-rw-r--r--Northstar.Client/mod/resource/northstar_client_localisation_spanish.txt2
-rw-r--r--Northstar.Client/mod/resource/northstar_client_localisation_tchinese.txt2
-rw-r--r--Northstar.Client/mod/resource/ui/menus/server_browser.menu70
-rw-r--r--Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut43
12 files changed, 67 insertions, 66 deletions
diff --git a/Northstar.Client/mod/resource/northstar_client_localisation_english.txt b/Northstar.Client/mod/resource/northstar_client_localisation_english.txt
index 3382e5b1..c25708a6 100644
--- a/Northstar.Client/mod/resource/northstar_client_localisation_english.txt
+++ b/Northstar.Client/mod/resource/northstar_client_localisation_english.txt
@@ -276,7 +276,7 @@ Press Yes if you agree to this. This choice can be changed in the mods menu at a
"PLAYERS_COLUMN" "Players"
"MAP_COLUMN" "Map"
"GAMEMODE_COLUMN" "Gamemode"
- "LATENCY_COLUMN" "Latency"
+ "REGION_COLUMN" "Region"
"SEARCHBAR_LABEL" "Search:"
"MAP_FILTER" "Map"
"GAMEMODE_FILTER" "Gamemode"
diff --git a/Northstar.Client/mod/resource/northstar_client_localisation_french.txt b/Northstar.Client/mod/resource/northstar_client_localisation_french.txt
index 276698a0..2a199186 100644
--- a/Northstar.Client/mod/resource/northstar_client_localisation_french.txt
+++ b/Northstar.Client/mod/resource/northstar_client_localisation_french.txt
@@ -276,7 +276,7 @@ Choisissez Oui si vous êtes d'accord. Ce choix peut être modifié à tout inst
"PLAYERS_COLUMN" "Joueurs"
"MAP_COLUMN" "Carte"
"GAMEMODE_COLUMN" "Mode de jeu"
- "LATENCY_COLUMN" "Latence"
+ "REGION_COLUMN" "Région"
"SEARCHBAR_LABEL" "Recherche :"
"MAP_FILTER" "Carte"
"GAMEMODE_FILTER" "Mode de jeu"
diff --git a/Northstar.Client/mod/resource/northstar_client_localisation_german.txt b/Northstar.Client/mod/resource/northstar_client_localisation_german.txt
index 9077fac0..0316bbcf 100644
--- a/Northstar.Client/mod/resource/northstar_client_localisation_german.txt
+++ b/Northstar.Client/mod/resource/northstar_client_localisation_german.txt
@@ -267,7 +267,7 @@ Drücke Ja, um zuzustimmen. Du kannst diese Entscheidung jederzeit im Modmenü
"PLAYERS_COLUMN" "Spieler"
"MAP_COLUMN" "Karte"
"GAMEMODE_COLUMN" "Modus"
- "LATENCY_COLUMN" "Ping"
+ "REGION_COLUMN" "Region"
"SEARCHBAR_LABEL" "Suche:"
"MAP_FILTER" "Karte"
"GAMEMODE_FILTER" "Modus"
diff --git a/Northstar.Client/mod/resource/northstar_client_localisation_italian.txt b/Northstar.Client/mod/resource/northstar_client_localisation_italian.txt
index b0bc348f..72bf7030 100644
--- a/Northstar.Client/mod/resource/northstar_client_localisation_italian.txt
+++ b/Northstar.Client/mod/resource/northstar_client_localisation_italian.txt
@@ -275,7 +275,7 @@ Premi Sì se sei d'accordo. Questa scelta può essere modificata in qualsiasi mo
"PLAYERS_COLUMN" "Players"
"MAP_COLUMN" "Mappa"
"GAMEMODE_COLUMN" "Modalità"
- "LATENCY_COLUMN" "Latenza"
+ "REGION_COLUMN" "Regione"
"SEARCHBAR_LABEL" "Cerca:"
"MAP_FILTER" "Mappa"
"GAMEMODE_FILTER" "Modalità"
diff --git a/Northstar.Client/mod/resource/northstar_client_localisation_japanese.txt b/Northstar.Client/mod/resource/northstar_client_localisation_japanese.txt
index b35c9fb8..b7fadeaf 100644
--- a/Northstar.Client/mod/resource/northstar_client_localisation_japanese.txt
+++ b/Northstar.Client/mod/resource/northstar_client_localisation_japanese.txt
@@ -303,7 +303,7 @@
"PLAYERS_COLUMN" "プレイヤー"
"MAP_COLUMN" "マップ"
"GAMEMODE_COLUMN" "ゲームモード"
- "LATENCY_COLUMN" "レイテンシー"
+ "REGION_COLUMN" "領域"
"SEARCHBAR_LABEL" "検索:"
"MAP_FILTER" "マップ"
"GAMEMODE_FILTER" "ゲームモード"
diff --git a/Northstar.Client/mod/resource/northstar_client_localisation_mspanish.txt b/Northstar.Client/mod/resource/northstar_client_localisation_mspanish.txt
index 208747f9..18634668 100644
--- a/Northstar.Client/mod/resource/northstar_client_localisation_mspanish.txt
+++ b/Northstar.Client/mod/resource/northstar_client_localisation_mspanish.txt
@@ -276,7 +276,7 @@ Si estas de acuerdo con esto, presiona SI. Esta decision puede ser cambiada en e
"PLAYERS_COLUMN" "Jugadores"
"MAP_COLUMN" "Mapa"
"GAMEMODE_COLUMN" "Modo de juego"
- "LATENCY_COLUMN" "Latencia"
+ "REGION_COLUMN" "Región"
"SEARCHBAR_LABEL" "Buscar:"
"MAP_FILTER" "Mapa"
"GAMEMODE_FILTER" "Modo de juego"
diff --git a/Northstar.Client/mod/resource/northstar_client_localisation_portuguese.txt b/Northstar.Client/mod/resource/northstar_client_localisation_portuguese.txt
index d398e557..51854726 100644
--- a/Northstar.Client/mod/resource/northstar_client_localisation_portuguese.txt
+++ b/Northstar.Client/mod/resource/northstar_client_localisation_portuguese.txt
@@ -274,7 +274,7 @@ Clique em Sim se você concorda. Esta escolha pode ser alterada a qualquer momen
"PLAYERS_COLUMN" "Jogadores"
"MAP_COLUMN" "Mapa"
"GAMEMODE_COLUMN" "Modo"
- "LATENCY_COLUMN" "Latência"
+ "REGION_COLUMN" "Região"
"SEARCHBAR_LABEL" "Buscar:"
"MAP_FILTER" "Mapa"
"GAMEMODE_FILTER" "Modo"
diff --git a/Northstar.Client/mod/resource/northstar_client_localisation_russian.txt b/Northstar.Client/mod/resource/northstar_client_localisation_russian.txt
index af9eb0ff..9ce0c2e3 100644
--- a/Northstar.Client/mod/resource/northstar_client_localisation_russian.txt
+++ b/Northstar.Client/mod/resource/northstar_client_localisation_russian.txt
@@ -219,7 +219,7 @@
"PLAYERS_COLUMN" "Игроки"
"MAP_COLUMN" "Карта"
"GAMEMODE_COLUMN" "Режим игры"
- "LATENCY_COLUMN" "Задержка"
+ "REGION_COLUMN" "Регион"
"SEARCHBAR_LABEL" "Поиск:"
"MAP_FILTER" "Карта"
"GAMEMODE_FILTER" "Режим игры"
diff --git a/Northstar.Client/mod/resource/northstar_client_localisation_spanish.txt b/Northstar.Client/mod/resource/northstar_client_localisation_spanish.txt
index fa732b63..0dc82570 100644
--- a/Northstar.Client/mod/resource/northstar_client_localisation_spanish.txt
+++ b/Northstar.Client/mod/resource/northstar_client_localisation_spanish.txt
@@ -276,7 +276,7 @@ Presiona Sí al estar de acuerdo. Esta opcion se puede cambiar en el menú de mo
"PLAYERS_COLUMN" "Jugadores"
"MAP_COLUMN" "Mapa"
"GAMEMODE_COLUMN" "Modo de juego"
- "LATENCY_COLUMN" "Latencia"
+ "REGION_COLUMN" "Región"
"SEARCHBAR_LABEL" "Buscar:"
"MAP_FILTER" "Mapa"
"GAMEMODE_FILTER" "Modo de juego"
diff --git a/Northstar.Client/mod/resource/northstar_client_localisation_tchinese.txt b/Northstar.Client/mod/resource/northstar_client_localisation_tchinese.txt
index 276a192d..12b6cad1 100644
--- a/Northstar.Client/mod/resource/northstar_client_localisation_tchinese.txt
+++ b/Northstar.Client/mod/resource/northstar_client_localisation_tchinese.txt
@@ -276,7 +276,7 @@
"PLAYERS_COLUMN" "玩家"
"MAP_COLUMN" "地圖"
"GAMEMODE_COLUMN" "遊戲模式"
- "LATENCY_COLUMN" "延遲"
+ "REGION_COLUMN" "地區"
"SEARCHBAR_LABEL" "搜尋:"
"MAP_FILTER" "地圖"
"GAMEMODE_FILTER" "遊戲模式"
diff --git a/Northstar.Client/mod/resource/ui/menus/server_browser.menu b/Northstar.Client/mod/resource/ui/menus/server_browser.menu
index d25d1219..b66fb8a6 100644
--- a/Northstar.Client/mod/resource/ui/menus/server_browser.menu
+++ b/Northstar.Client/mod/resource/ui/menus/server_browser.menu
@@ -1178,7 +1178,7 @@ resource/ui/menus/mods_browse.menu
pin_to_sibling_corner TOP_RIGHT
navDown BtnServer1
navLeft BtnServerMapTab
- navRight BtnServerLatencyTab
+ navRight BtnServerRegionTab
navUp BtnFiltersClear
}
@@ -1408,12 +1408,12 @@ resource/ui/menus/mods_browse.menu
pin_to_sibling_corner BOTTOM_LEFT
}
- // Latency
- BtnServerLatencyTab
+ // Region
+ BtnServerRegionTab
{
ControlName RuiButton
InheritProperties RuiSmallButton
- labelText "#LATENCY_COLUMN"
+ labelText "#REGION_COLUMN"
wide 110
xpos 4
@@ -1428,11 +1428,11 @@ resource/ui/menus/mods_browse.menu
navUp BtnFiltersClear
}
- BtnServerLatency1
+ BtnServerRegion1
{
ControlName Label
labelText ""
- classname Serverlatency
+ classname Serverregion
textAlignment center
wide 110
tall 44
@@ -1443,11 +1443,11 @@ resource/ui/menus/mods_browse.menu
pin_corner_to_sibling TOP_LEFT
pin_to_sibling_corner BOTTOM_LEFT
}
- BtnServerLatency2
+ BtnServerRegion2
{
ControlName Label
labelText ""
- classname Serverlatency
+ classname Serverregion
textAlignment center
wide 110
tall 44
@@ -1458,11 +1458,11 @@ resource/ui/menus/mods_browse.menu
pin_corner_to_sibling TOP_LEFT
pin_to_sibling_corner BOTTOM_LEFT
}
- BtnServerLatency3
+ BtnServerRegion3
{
ControlName Label
labelText ""
- classname Serverlatency
+ classname Serverregion
textAlignment center
wide 110
tall 44
@@ -1473,11 +1473,11 @@ resource/ui/menus/mods_browse.menu
pin_corner_to_sibling TOP_LEFT
pin_to_sibling_corner BOTTOM_LEFT
}
- BtnServerLatency4
+ BtnServerRegion4
{
ControlName Label
labelText ""
- classname Serverlatency
+ classname Serverregion
textAlignment center
wide 110
tall 44
@@ -1488,11 +1488,11 @@ resource/ui/menus/mods_browse.menu
pin_corner_to_sibling TOP_LEFT
pin_to_sibling_corner BOTTOM_LEFT
}
- BtnServerLatency5
+ BtnServerRegion5
{
ControlName Label
labelText ""
- classname Serverlatency
+ classname Serverregion
textAlignment center
wide 110
tall 44
@@ -1503,11 +1503,11 @@ resource/ui/menus/mods_browse.menu
pin_corner_to_sibling TOP_LEFT
pin_to_sibling_corner BOTTOM_LEFT
}
- BtnServerLatency6
+ BtnServerRegion6
{
ControlName Label
labelText ""
- classname Serverlatency
+ classname Serverregion
textAlignment center
wide 110
tall 44
@@ -1518,11 +1518,11 @@ resource/ui/menus/mods_browse.menu
pin_corner_to_sibling TOP_LEFT
pin_to_sibling_corner BOTTOM_LEFT
}
- BtnServerLatency7
+ BtnServerRegion7
{
ControlName Label
labelText ""
- classname Serverlatency
+ classname Serverregion
textAlignment center
wide 110
tall 44
@@ -1533,11 +1533,11 @@ resource/ui/menus/mods_browse.menu
pin_corner_to_sibling TOP_LEFT
pin_to_sibling_corner BOTTOM_LEFT
}
- BtnServerLatency8
+ BtnServerRegion8
{
ControlName Label
labelText ""
- classname Serverlatency
+ classname Serverregion
textAlignment center
wide 110
tall 44
@@ -1548,11 +1548,11 @@ resource/ui/menus/mods_browse.menu
pin_corner_to_sibling TOP_LEFT
pin_to_sibling_corner BOTTOM_LEFT
}
- BtnServerLatency9
+ BtnServerRegion9
{
ControlName Label
labelText ""
- classname Serverlatency
+ classname Serverregion
textAlignment center
wide 110
tall 44
@@ -1563,11 +1563,11 @@ resource/ui/menus/mods_browse.menu
pin_corner_to_sibling TOP_LEFT
pin_to_sibling_corner BOTTOM_LEFT
}
- BtnServerLatency10
+ BtnServerRegion10
{
ControlName Label
labelText ""
- classname Serverlatency
+ classname Serverregion
textAlignment center
wide 110
tall 44
@@ -1578,11 +1578,11 @@ resource/ui/menus/mods_browse.menu
pin_corner_to_sibling TOP_LEFT
pin_to_sibling_corner BOTTOM_LEFT
}
- BtnServerLatency11
+ BtnServerRegion11
{
ControlName Label
labelText ""
- classname Serverlatency
+ classname Serverregion
textAlignment center
wide 110
tall 44
@@ -1593,11 +1593,11 @@ resource/ui/menus/mods_browse.menu
pin_corner_to_sibling TOP_LEFT
pin_to_sibling_corner BOTTOM_LEFT
}
- BtnServerLatency12
+ BtnServerRegion12
{
ControlName Label
labelText ""
- classname Serverlatency
+ classname Serverregion
textAlignment center
wide 110
tall 44
@@ -1608,11 +1608,11 @@ resource/ui/menus/mods_browse.menu
pin_corner_to_sibling TOP_LEFT
pin_to_sibling_corner BOTTOM_LEFT
}
- BtnServerLatency13
+ BtnServerRegion13
{
ControlName Label
labelText ""
- classname Serverlatency
+ classname Serverregion
textAlignment center
wide 110
tall 44
@@ -1623,11 +1623,11 @@ resource/ui/menus/mods_browse.menu
pin_corner_to_sibling TOP_LEFT
pin_to_sibling_corner BOTTOM_LEFT
}
- BtnServerLatency14
+ BtnServerRegion14
{
ControlName Label
labelText ""
- classname Serverlatency
+ classname Serverregion
textAlignment center
wide 110
tall 44
@@ -1638,11 +1638,11 @@ resource/ui/menus/mods_browse.menu
pin_corner_to_sibling TOP_LEFT
pin_to_sibling_corner BOTTOM_LEFT
}
- BtnServerLatency15
+ BtnServerRegion15
{
ControlName Label
labelText ""
- classname Serverlatency
+ classname Serverregion
textAlignment center
wide 110
tall 44
@@ -1737,7 +1737,7 @@ resource/ui/menus/mods_browse.menu
xpos 3
ypos -1
- pin_to_sibling BtnServerLatencyTab
+ pin_to_sibling BtnServerRegionTab
pin_corner_to_sibling TOP_LEFT
pin_to_sibling_corner TOP_LEFT
}
diff --git a/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut b/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut
index d9b11ccc..03028255 100644
--- a/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut
+++ b/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut
@@ -38,7 +38,7 @@ enum sortingBy
PLAYERS,
MAP,
GAMEMODE,
- LATENCY
+ REGION
}
// Column sort direction, only one of these can be aplied at once
@@ -48,8 +48,8 @@ struct {
bool serverPlayers = true
bool serverMap = true
bool serverGamemode = true
- bool serverLatency = true
- // 0 = none; 1 = default; 2 = name; 3 = players; 4 = map; 5 = gamemode; 6 = latency
+ bool serverRegion = true
+ // 0 = none; 1 = default; 2 = name; 3 = players; 4 = map; 5 = gamemode; 6 = region
int sortingBy = 1
} filterDirection
@@ -61,7 +61,7 @@ struct serverStruct {
int serverPlayersMax
string serverMap
string serverGamemode
- int serverLatency
+ string serverRegion
}
struct {
@@ -87,7 +87,7 @@ struct {
array<var> serversProtected
array<var> serversMap
array<var> serversGamemode
- array<var> serversLatency
+ array<var> serversRegion
} file
@@ -151,7 +151,7 @@ void function InitServerBrowserMenu()
file.serversProtected = GetElementsByClassname( file.menu, "ServerLock" )
file.serversMap = GetElementsByClassname( file.menu, "ServerMap" )
file.serversGamemode = GetElementsByClassname( file.menu, "ServerGamemode" )
- file.serversLatency = GetElementsByClassname( file.menu, "ServerLatency" )
+ file.serversRegion = GetElementsByClassname( file.menu, "Serverregion" )
filterArguments.filterMaps = [ "SWITCH_ANY" ]
Hud_DialogList_AddListItem( Hud_GetChild( file.menu, "SwtBtnSelectMap" ), "SWITCH_ANY", "0" )
@@ -194,7 +194,7 @@ void function InitServerBrowserMenu()
AddButtonEventHandler( Hud_GetChild( file.menu, "BtnServerPlayersTab"), UIE_CLICK, SortServerListByPlayers_Activate )
AddButtonEventHandler( Hud_GetChild( file.menu, "BtnServerMapTab"), UIE_CLICK, SortServerListByMap_Activate )
AddButtonEventHandler( Hud_GetChild( file.menu, "BtnServerGamemodeTab"), UIE_CLICK, SortServerListByGamemode_Activate )
- AddButtonEventHandler( Hud_GetChild( file.menu, "BtnServerLatencyTab"), UIE_CLICK, SortServerListByLatency_Activate )
+ AddButtonEventHandler( Hud_GetChild( file.menu, "BtnServerRegionTab"), UIE_CLICK, SortServerListByRegion_Activate )
AddButtonEventHandler( Hud_GetChild( file.menu, "SwtBtnSelectMap"), UIE_CHANGE, FilterAndUpdateList )
@@ -218,8 +218,6 @@ void function InitServerBrowserMenu()
Hud_SetText( Hud_GetChild( file.menu, "BtnServerDescription"), "" )
Hud_SetText( Hud_GetChild( file.menu, "BtnServerMods"), "" )
- // Unfinished features
- Hud_SetLocked( Hud_GetChild( file.menu, "BtnServerLatencyTab" ), true )
// Rui is a pain
RuiSetString( Hud_GetRui( Hud_GetChild( file.menu, "SwtBtnHideFull") ), "buttonText", "" )
@@ -675,9 +673,9 @@ void function FilterAndUpdateList( var n )
filterDirection.serverGamemode = !filterDirection.serverGamemode
SortServerListByGamemode_Activate(0)
break
- case sortingBy.LATENCY:
- filterDirection.serverLatency = !filterDirection.serverLatency
- SortServerListByLatency_Activate(0)
+ case sortingBy.REGION:
+ filterDirection.serverRegion = !filterDirection.serverRegion
+ SortServerListByRegion_Activate(0)
break
default:
printt( "How the f did you get here" )
@@ -715,7 +713,7 @@ void function WaitForServerListRequest()
Hud_SetText( file.playerCountLabels[ i ], "" )
Hud_SetText( file.serversMap[ i ], "" )
Hud_SetText( file.serversGamemode[ i ], "" )
- Hud_SetText( file.serversLatency[ i ], "" )
+ Hud_SetText( file.serversRegion[ i ], "" )
}
HideServerInfo()
@@ -756,6 +754,7 @@ void function FilterServerList()
tempServer.serverPlayersMax = NSGetServerMaxPlayerCount( i )
tempServer.serverMap = NSGetServerMap( i )
tempServer.serverGamemode = GetGameModeDisplayName( NSGetServerPlaylist ( i ) )
+ tempServer.serverRegion = NSGetServerRegion( i )
totalPlayers += tempServer.serverPlayers
@@ -786,6 +785,7 @@ void function FilterServerList()
sName.append( tempServer.serverGamemode.tolower() )
sName.append( Localize( tempServer.serverGamemode ).tolower() )
sName.append( NSGetServerDescription( i ).tolower() )
+ sName.append( NSGetServerRegion( i ).tolower() )
string sTerm = filterArguments.searchTerm.tolower()
@@ -821,7 +821,7 @@ void function UpdateShownPage()
Hud_SetText( file.playerCountLabels[ i ], "" )
Hud_SetText( file.serversMap[ i ], "" )
Hud_SetText( file.serversGamemode[ i ], "" )
- Hud_SetText( file.serversLatency[ i ], "" )
+ Hud_SetText( file.serversRegion[ i ], "" )
}
int j = file.serversArrayFiltered.len() > BUTTONS_PER_PAGE ? BUTTONS_PER_PAGE : file.serversArrayFiltered.len()
@@ -840,6 +840,7 @@ void function UpdateShownPage()
Hud_SetText( file.playerCountLabels[ i ], format( "%i/%i", file.serversArrayFiltered[ buttonIndex ].serverPlayers, file.serversArrayFiltered[ buttonIndex ].serverPlayersMax ) )
Hud_SetText( file.serversMap[ i ], GetMapDisplayName( file.serversArrayFiltered[ buttonIndex ].serverMap ) )
Hud_SetText( file.serversGamemode[ i ], file.serversArrayFiltered[ buttonIndex ].serverGamemode )
+ Hud_SetText( file.serversRegion[ i ], file.serversArrayFiltered[ buttonIndex ].serverRegion )
}
@@ -1161,10 +1162,10 @@ int function ServerSortLogic ( serverStruct a, serverStruct b )
bTemp = Localize( b.serverGamemode ).tolower()
direction = filterDirection.serverGamemode
break;
- case sortingBy.LATENCY:
- aTemp = a.serverLatency
- bTemp = b.serverLatency
- direction = filterDirection.serverLatency
+ case sortingBy.REGION:
+ aTemp = a.serverRegion
+ bTemp = b.serverRegion
+ direction = filterDirection.serverRegion
break;
default:
return 0
@@ -1238,13 +1239,13 @@ void function SortServerListByGamemode_Activate( var button )
UpdateShownPage()
}
-void function SortServerListByLatency_Activate( var button )
+void function SortServerListByRegion_Activate( var button )
{
- filterDirection.sortingBy = sortingBy.LATENCY
+ filterDirection.sortingBy = sortingBy.REGION
file.serversArrayFiltered.sort( ServerSortLogic )
- filterDirection.serverLatency = !filterDirection.serverLatency
+ filterDirection.serverRegion = !filterDirection.serverRegion
UpdateShownPage()
}