Clickable and Draggable now also return booleans for whether they handled the event
This commit is contained in:
@@ -394,7 +394,7 @@ public abstract class AbstractGuiTextArea<T extends AbstractGuiTextArea<T>>
|
||||
}
|
||||
|
||||
@Override
|
||||
public void mouseClick(ReadablePoint position, int button) {
|
||||
public boolean mouseClick(ReadablePoint position, int button) {
|
||||
if (getContainer() != null) {
|
||||
getContainer().convertFor(this, (Point) (position = new Point(position)));
|
||||
}
|
||||
@@ -414,6 +414,7 @@ public abstract class AbstractGuiTextArea<T extends AbstractGuiTextArea<T>>
|
||||
}
|
||||
|
||||
setFocused(hovering);
|
||||
return hovering;
|
||||
}
|
||||
|
||||
protected boolean isMouseHovering(ReadablePoint pos) {
|
||||
|
||||
Reference in New Issue
Block a user