Song select fixes

- Searching diverge:yes returns songs with branches
- Fade out music slightly while search window is open
- When opening search box with a saved query, all the text gets selected
- Fix Ctrl+F not working during song select fade in
- Fix edge case highlighting only working on lowercase letters
- Fix right clicking selected text in the search box so it no longer gets unselected
- Fix Netplay option appearing when netplay is offline
- Use category id instead of name in the generated stylesheet
- Languages can choose to fallback to english instead of japanese with preferEn
This commit is contained in:
KatieFrogs
2022-03-03 23:38:29 +03:00
parent 6f10718bd2
commit 6c54c45a23
3 changed files with 49 additions and 21 deletions

View File

@@ -77,7 +77,7 @@ class Lyrics{
break
}
var lang = text.slice(index1 + 6, index2).toLowerCase()
if(strings.id === lang){
if(strings.preferEn && lang === "en" || strings.id === lang){
var index3 = text.indexOf("<lang ", index2 + 1)
if(index3 !== -1){
textLang = text.slice(index2 + 1, index3)