Merge old and new search panels

This commit is contained in:
downthecrop 2025-10-12 19:33:25 -07:00
parent 2d1e2806ec
commit 8ac1bad46f
9 changed files with 352 additions and 336 deletions

View file

@ -406,10 +406,10 @@ class plugin : Plugin() {
private fun searchHiscore(username: String): Runnable {
return Runnable {
setActiveView(HiscoresView.VIEW_NAME)
val customSearchField = HiscoresView.hiScoreView?.let { HiscoresView.CustomSearchField(it) }
customSearchField?.searchPlayer(username) ?: run {
println("searchView is null or CustomSearchField creation failed.")
HiscoresView.hiScoreView?.let { hiscoresPanel ->
HiscoresView.searchPlayerForHiscores(username, hiscoresPanel)
} ?: run {
println("hiscoresPanel is null")
}
}
}