mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-12-23 01:36:14 +08:00
add maker filter
This commit is contained in:
parent
10d360fd42
commit
b63cd56b93
@ -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]
|
||||
|
@ -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!"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user