Move to first page when searching

This commit is contained in:
2024-08-21 14:40:48 +02:00
parent 07bb98c363
commit a5dfcd4635
5 changed files with 5 additions and 1 deletions

View File

@@ -46,6 +46,7 @@ public class AuctionBrowserScreen extends PagedGui implements SearchableInterfac
public void doSearch(String query) {
searchQuery = query;
page = 0;
updateDisplay();
}

View File

@@ -50,6 +50,7 @@ public class BalanceScreen extends PagedGui implements SearchableInterface {
public void doSearch(String query) {
searchQuery = query;
page = 0;
updateDisplay();
}

View File

@@ -59,6 +59,7 @@ public class ShopEditorScreen extends PagedGui implements SearchableInterface {
public void doSearch(String query) {
searchQuery = query;
page = 0;
updateDisplay();
}

View File

@@ -48,6 +48,7 @@ public class ShopScreen extends PagedGui implements SearchableInterface {
public void doSearch(String query) {
searchQuery = query;
page = 0;
updateDisplay();
}