diff options
author | romangraef <roman.graef@gmail.com> | 2018-06-09 15:29:12 +0200 |
---|---|---|
committer | romangraef <roman.graef@gmail.com> | 2018-06-09 15:29:12 +0200 |
commit | b601ff558245bcc874f5ba481c3dd2df5f40a14d (patch) | |
tree | 8a43f78e0edb1c67d38c8ece69226346976f375d /src/main/kotlin/de/romjaki/pluggabledino/api | |
parent | e12e295df1c52735dce4147ac4ac317f6587a58a (diff) | |
download | pluggabledino-b601ff558245bcc874f5ba481c3dd2df5f40a14d.tar.gz pluggabledino-b601ff558245bcc874f5ba481c3dd2df5f40a14d.tar.bz2 pluggabledino-b601ff558245bcc874f5ba481c3dd2df5f40a14d.zip |
scale basics
Diffstat (limited to 'src/main/kotlin/de/romjaki/pluggabledino/api')
-rw-r--r-- | src/main/kotlin/de/romjaki/pluggabledino/api/Button.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/de/romjaki/pluggabledino/api/Button.kt b/src/main/kotlin/de/romjaki/pluggabledino/api/Button.kt index b21761c..0fc8ddb 100644 --- a/src/main/kotlin/de/romjaki/pluggabledino/api/Button.kt +++ b/src/main/kotlin/de/romjaki/pluggabledino/api/Button.kt @@ -59,7 +59,7 @@ class Button(private val text: String, val x: Float, val y: Float) { } fun isMouseOver(input: Input): Boolean = - rectangle.contains(input.mouseX, input.mouseY) + rectangle.contains(input.mouseX / 5 * 4, input.mouseY / 5 * 4) } |