aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin
diff options
context:
space:
mode:
authorEthan <git@ethanlibs.co>2022-05-06 16:20:43 -0400
committerGitHub <noreply@github.com>2022-05-06 16:20:43 -0400
commit8dcd0270b25df0437fd583b8221f59943cfe4372 (patch)
tree24d497314405a8c3487db7d1fe0601530d9eacec /src/main/kotlin
parenta1498a9b8efe31841441a6f2152937dddf75a474 (diff)
parentb96de6230299c751d0d3953c6546992efccb1111 (diff)
downloadChatting-8dcd0270b25df0437fd583b8221f59943cfe4372.tar.gz
Chatting-8dcd0270b25df0437fd583b8221f59943cfe4372.tar.bz2
Chatting-8dcd0270b25df0437fd583b8221f59943cfe4372.zip
Merge pull request #7 from Moo2meenn/fix-buttons-height
Fix buttons height
Diffstat (limited to 'src/main/kotlin')
-rw-r--r--src/main/kotlin/cc/woverflow/chatting/gui/components/ScreenshotButton.kt2
-rw-r--r--src/main/kotlin/cc/woverflow/chatting/gui/components/SearchButton.kt4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/kotlin/cc/woverflow/chatting/gui/components/ScreenshotButton.kt b/src/main/kotlin/cc/woverflow/chatting/gui/components/ScreenshotButton.kt
index 9fc5e8d..b22673b 100644
--- a/src/main/kotlin/cc/woverflow/chatting/gui/components/ScreenshotButton.kt
+++ b/src/main/kotlin/cc/woverflow/chatting/gui/components/ScreenshotButton.kt
@@ -11,7 +11,7 @@ import net.minecraft.client.renderer.GlStateManager
import net.minecraft.util.ResourceLocation
class ScreenshotButton :
- CleanButton(448318, { UResolution.scaledWidth - 42 }, { UResolution.scaledHeight - 27 }, 12, 12, "",
+ CleanButton(448318, { UResolution.scaledWidth - 28 }, { UResolution.scaledHeight - 26 }, 12, 12, "",
{ RenderType.NONE }) {
override fun onMousePress() {
diff --git a/src/main/kotlin/cc/woverflow/chatting/gui/components/SearchButton.kt b/src/main/kotlin/cc/woverflow/chatting/gui/components/SearchButton.kt
index 71633a3..819eac0 100644
--- a/src/main/kotlin/cc/woverflow/chatting/gui/components/SearchButton.kt
+++ b/src/main/kotlin/cc/woverflow/chatting/gui/components/SearchButton.kt
@@ -47,7 +47,7 @@ class SearchButton :
69420,
Minecraft.getMinecraft().fontRendererObj,
UResolution.scaledWidth * 4 / 5 - 60,
- UResolution.scaledHeight - 27,
+ UResolution.scaledHeight - 26,
UResolution.scaledWidth / 5,
12
) {
@@ -67,4 +67,4 @@ class SearchButton :
}
}
}
-} \ No newline at end of file
+}