From 4c51e78c445889720476576b8fa472ab49b9b35f Mon Sep 17 00:00:00 2001 From: StavWasPlayZ Date: Sun, 14 May 2023 21:50:32 +0300 Subject: [PATCH] Bumped version to v2.5 Also fixed focus (& texture) staying on buttons after mouse click --- build.gradle | 2 +- public/updates.json | 9 +++++++-- .../screens/instrument/partial/note/NoteButton.java | 12 +++--------- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/build.gradle b/build.gradle index 1c9109cd..56f2199b 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ plugins { id 'org.parchmentmc.librarian.forgegradle' version '1.+' } -version = '2.4.1' +version = '2.5' group = 'com.cstav.genshinstrument' // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = 'genshinstrument-1.19.4' diff --git a/public/updates.json b/public/updates.json index 00f29b56..e66ad1a0 100644 --- a/public/updates.json +++ b/public/updates.json @@ -13,11 +13,16 @@ "2.3": "- More texture fixes\n- Better API implementation", "2.4": "- Minor techincal fixes", - "2.4.1": "- Fixed instrument screen being present after item removal\n- API tweaks & fixes" + "2.4.1": "- Fixed instrument screen being present after item removal\n- API tweaks & fixes", + + "2.5": "- Update to version 1.19.4\n- GUI keyboard navigation" }, "promos": { "1.19.3-latest": "2.4.1", - "1.19.3-recommended": "2.4.1" + "1.19.3-recommended": "2.4.1", + + "1.19.4-latest": "2.5", + "1.19.4-recommended": "2.5" } } \ No newline at end of file diff --git a/src/main/java/com/cstav/genshinstrument/client/gui/screens/instrument/partial/note/NoteButton.java b/src/main/java/com/cstav/genshinstrument/client/gui/screens/instrument/partial/note/NoteButton.java index b2543ef7..fedc6c12 100644 --- a/src/main/java/com/cstav/genshinstrument/client/gui/screens/instrument/partial/note/NoteButton.java +++ b/src/main/java/com/cstav/genshinstrument/client/gui/screens/instrument/partial/note/NoteButton.java @@ -267,16 +267,10 @@ public void onPress() { play(); } - // TODO delete the below section @Override - public boolean mouseClicked(double pMouseX, double pMouseY, int pButton) { - // locked = false; - return super.mouseClicked(pMouseX, pMouseY, pButton); - } - @Override - public boolean keyReleased(int pKeyCode, int pScanCode, int pModifiers) { - // locked = false; - return super.keyReleased(pKeyCode, pScanCode, pModifiers); + public boolean mouseReleased(double pMouseX, double pMouseY, int pButton) { + setFocused(false); + return super.mouseReleased(pMouseX, pMouseY, pButton); }