diff options
author | laundmo <laurinschmidt2001@gmail.com> | 2022-01-08 04:29:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-08 00:29:13 -0300 |
commit | bf6cb524007280ec9ae65ca5503393f53e81a224 (patch) | |
tree | 8a7eccd5f4f9d09c534246b271106ca79dd2c1be /Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut | |
parent | 4413f541063ae14efd54f873a43aeaf7c53dd983 (diff) | |
download | NorthstarMods-bf6cb524007280ec9ae65ca5503393f53e81a224.tar.gz NorthstarMods-bf6cb524007280ec9ae65ca5503393f53e81a224.zip |
Make map and gamemode searchable with searchbar. (#54)
* extend search term to include map and gamemode
Diffstat (limited to 'Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut')
-rw-r--r-- | Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut | 3 |
1 files changed, 2 insertions, 1 deletions
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 7254f199..507fc57b 100644 --- a/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut +++ b/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut @@ -684,7 +684,8 @@ void function FilterServerList() { if ( filterArguments.useSearch ) { - string sName = tempServer.serverName.tolower() + string sName = tempServer.serverName.tolower() + " " + Localize(GetMapDisplayName(tempServer.serverMap)).tolower() + " " + tempServer.serverMap.tolower() + " " + tempServer.serverGamemode.tolower() + " " + Localize(tempServer.serverGamemode).tolower() + string sTerm = filterArguments.searchTerm.tolower() if ( sName.find(sTerm) != null) |