Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

now you are able to determine from outside if mouse is hovered over a b… #20

Open
wants to merge 1 commit into
base: components
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ protected void playClickSound(SoundHandler handler)
handler.playSound(PositionedSoundRecord.getMasterRecord(SoundEvents.UI_BUTTON_CLICK, 1.0F));
}

protected boolean isInside(int mouseX, int mouseY)
public boolean isInside(int mouseX, int mouseY)
{
return mouseX >= this.xPosition && mouseY >= this.yPosition && mouseX < this.xPosition + this.width && mouseY < this.yPosition + this.height;
}
Expand Down