add maker filter

This commit is contained in:
Bui 2022-02-26 01:22:36 +00:00
parent 10d360fd42
commit b63cd56b93
2 changed files with 10 additions and 2 deletions

View File

@ -2884,6 +2884,7 @@ class SongSelect{
case "lyrics":
case "creative":
case "played":
case "maker":
filters[parts[0]] = parts[1]
break
}
@ -2958,6 +2959,11 @@ class SongSelect{
passedFilters++
}
break
case "maker":
if(song.maker && song.maker.toLowerCase().includes(value.toLowerCase())){
passedFilters++
}
break
case "genre":
var cat = assets.categories.find(cat => cat.id === song.category_id)
var aliases = cat.aliases ? cat.aliases.concat([cat.title]) : [cat.title]

View File

@ -1361,7 +1361,8 @@ var translations = {
"Want to see your full combos? Try \"gold:any\", \"gold:oni\", etc.!",
"Only want to see creative songs? Use the \"creative:yes\" filter!",
"Find songs with lyrics enabled with the \"lyrics:yes\" filter!",
"Feel like trying something new? Use the \"played:no\" filter to only see songs you haven't played yet!"
"Feel like trying something new? Use the \"played:no\" filter to only see songs you haven't played yet!",
"Looking for creative courses from a specific creator? Use the \"maker:<name>\" filter!",
],
en: [
"Open the search window by pressing CTRL+F!",
@ -1373,7 +1374,8 @@ var translations = {
"Want to see your full combos? Try \"gold:any\", \"gold:oni\", etc.!",
"Only want to see creative songs? Use the \"creative:yes\" filter!",
"Find songs with lyrics enabled with the \"lyrics:yes\" filter!",
"Feel like trying something new? Use the \"played:no\" filter to only see songs you haven't played yet!"
"Feel like trying something new? Use the \"played:no\" filter to only see songs you haven't played yet!",
"Looking for creative courses from a specific creator? Use the \"maker:<name>\" filter!"
]
}
}