From b14b7467c90f75fa2fbdf1891ebcbd8833448f2d Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sun, 23 Oct 2022 13:54:50 +0700 Subject: [PATCH] Don't eat mouse input in effect list panel this allows to click on effect list panel with item to drop it --- .../client/screen/panels/EffectListPanel.kt | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/EffectListPanel.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/EffectListPanel.kt index cb7f6de5c..97924708c 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/EffectListPanel.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/panels/EffectListPanel.kt @@ -216,6 +216,30 @@ open class EffectListPanel @JvmOverloads constructor( return true } + + override fun mouseClickedInner(x: Double, y: Double, button: Int): Boolean { + return false + } + + override fun mouseReleasedInner(x: Double, y: Double, button: Int): Boolean { + return false + } + + override fun mouseDraggedInner(x: Double, y: Double, button: Int, xDelta: Double, yDelta: Double): Boolean { + return false + } + } + + override fun mouseClickedInner(x: Double, y: Double, button: Int): Boolean { + return false + } + + override fun mouseReleasedInner(x: Double, y: Double, button: Int): Boolean { + return false + } + + override fun mouseDraggedInner(x: Double, y: Double, button: Int, xDelta: Double, yDelta: Double): Boolean { + return false } fun onSortedEffectPanels(sorted: List) {