From e9b07f283d6ae9ae884aba7b3afbcba0ae04a78a Mon Sep 17 00:00:00 2001 From: Bui Date: Sat, 26 Feb 2022 00:09:14 +0000 Subject: [PATCH] fix genre filter for custom song list --- public/src/js/songselect.js | 2 +- public/src/js/strings.js | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/public/src/js/songselect.js b/public/src/js/songselect.js index d6e18a9..b22e995 100644 --- a/public/src/js/songselect.js +++ b/public/src/js/songselect.js @@ -2954,7 +2954,7 @@ class SongSelect{ break case "genre": var cat = assets.categories.find(cat => cat.id === song.category_id) - var aliases = cat.aliases ? cat.aliases.concat([song.category]) : [song.category] + var aliases = cat.aliases ? cat.aliases.concat([cat.title]) : [cat.title] if(aliases.find(alias => alias.toLowerCase() === value.toLowerCase())){ passedFilters++ diff --git a/public/src/js/strings.js b/public/src/js/strings.js index f672b58..a53918b 100644 --- a/public/src/js/strings.js +++ b/public/src/js/strings.js @@ -1352,7 +1352,16 @@ var translations = { }, tips: { ja: [ - "CTRL+Fで検索窓を開く!" + "CTRL+Fで検索窓を開く!", + "検索フィルタの組み合わせは自由自在です!", + "最も関連性の高い100件のみを表示します。", + "キーワードでジャンルを絞り込めます!(例: \"genre:variety\", \"genre:namco\")", + "「oni:10」などのフィルターを使用して、特定の難易度の曲を検索して!", + "Difficulty filters support ranges, too! Try \"ura:1-5\"!", + "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!" ], en: [ "Open the search window by pressing CTRL+F!",