diff --git a/public/src/js/songselect.js b/public/src/js/songselect.js index bcabd89..b857e81 100644 --- a/public/src/js/songselect.js +++ b/public/src/js/songselect.js @@ -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] diff --git a/public/src/js/strings.js b/public/src/js/strings.js index a53918b..1947609 100644 --- a/public/src/js/strings.js +++ b/public/src/js/strings.js @@ -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:\" 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:\" filter!" ] } }