diff --git a/changelog.md b/changelog.md index 55aab9a..ad2f1e2 100644 --- a/changelog.md +++ b/changelog.md @@ -1,9 +1,6 @@ -## Resourcify 1.5.1 +## Resourcify 1.5.2 -- Added support for 1.21.3 neoforge and forge! (Note: at the time of writing kotlin for forge does not have a version - marked as compatible for 1.21.3, but **kotlin for forge 5.6.0 seems to work for 1.21.3**) -- Fixed a crash when opening the changelog of a project in the update screen -- Fixed a crash caused by a project having an invalid image URL +- Add support for side mouse buttons to go back and forward between pages ---------------------------------------------------------------------------------------------------- diff --git a/gradle.properties b/gradle.properties index 9b6566b..6f457bd 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ mod_name = Resourcify mod_id = resourcify -mod_version = 1.5.1 +mod_version = 1.5.2 org.gradle.daemon=true org.gradle.parallel=true diff --git a/src/main/kotlin/dev/dediamondpro/resourcify/gui/PaginatedScreen.kt b/src/main/kotlin/dev/dediamondpro/resourcify/gui/PaginatedScreen.kt index 043a6b6..2590db5 100644 --- a/src/main/kotlin/dev/dediamondpro/resourcify/gui/PaginatedScreen.kt +++ b/src/main/kotlin/dev/dediamondpro/resourcify/gui/PaginatedScreen.kt @@ -87,6 +87,14 @@ abstract class PaginatedScreen(private val adaptScale: Boolean = true) : WindowS } } + override fun onMouseClicked(mouseX: Double, mouseY: Double, mouseButton: Int) { + when (mouseButton) { + 3 -> goBack() + 4 -> goForward() + else -> super.onMouseClicked(mouseX, mouseY, mouseButton) + } + } + open fun goBack() { val backScreen = backScreens.removeLastOrNull() if (backScreen is PaginatedScreen) forwardScreens.add(this)