mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 15:31:51 +08:00
add maker filter
This commit is contained in:
parent
10d360fd42
commit
b63cd56b93
@ -2884,6 +2884,7 @@ class SongSelect{
|
|||||||
case "lyrics":
|
case "lyrics":
|
||||||
case "creative":
|
case "creative":
|
||||||
case "played":
|
case "played":
|
||||||
|
case "maker":
|
||||||
filters[parts[0]] = parts[1]
|
filters[parts[0]] = parts[1]
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
@ -2958,6 +2959,11 @@ class SongSelect{
|
|||||||
passedFilters++
|
passedFilters++
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
|
case "maker":
|
||||||
|
if(song.maker && song.maker.toLowerCase().includes(value.toLowerCase())){
|
||||||
|
passedFilters++
|
||||||
|
}
|
||||||
|
break
|
||||||
case "genre":
|
case "genre":
|
||||||
var cat = assets.categories.find(cat => cat.id === song.category_id)
|
var cat = assets.categories.find(cat => cat.id === song.category_id)
|
||||||
var aliases = cat.aliases ? cat.aliases.concat([cat.title]) : [cat.title]
|
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.!",
|
"Want to see your full combos? Try \"gold:any\", \"gold:oni\", etc.!",
|
||||||
"Only want to see creative songs? Use the \"creative:yes\" filter!",
|
"Only want to see creative songs? Use the \"creative:yes\" filter!",
|
||||||
"Find songs with lyrics enabled with the \"lyrics: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: [
|
en: [
|
||||||
"Open the search window by pressing CTRL+F!",
|
"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.!",
|
"Want to see your full combos? Try \"gold:any\", \"gold:oni\", etc.!",
|
||||||
"Only want to see creative songs? Use the \"creative:yes\" filter!",
|
"Only want to see creative songs? Use the \"creative:yes\" filter!",
|
||||||
"Find songs with lyrics enabled with the \"lyrics: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