diff options
author | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2021-12-25 14:13:27 +0700 |
---|---|---|
committer | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2021-12-25 14:13:27 +0700 |
commit | 4927d585ec72cb045a70718423228fa2cf55d071 (patch) | |
tree | 32714efb0c1a3a3aa3a01cadfc7a8ba5a9c784f1 /src/main/kotlin/com/raeids/stratus/Stratus.kt | |
parent | f720ca0a074411be7cbbdc1b9629b14d06e3b26c (diff) | |
download | Chatting-4927d585ec72cb045a70718423228fa2cf55d071.tar.gz Chatting-4927d585ec72cb045a70718423228fa2cf55d071.tar.bz2 Chatting-4927d585ec72cb045a70718423228fa2cf55d071.zip |
new: rewrite chat searching
fix: fix chat tabs / shortcuts not initializing when turning on
Diffstat (limited to 'src/main/kotlin/com/raeids/stratus/Stratus.kt')
-rw-r--r-- | src/main/kotlin/com/raeids/stratus/Stratus.kt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/kotlin/com/raeids/stratus/Stratus.kt b/src/main/kotlin/com/raeids/stratus/Stratus.kt index eafff31..d771915 100644 --- a/src/main/kotlin/com/raeids/stratus/Stratus.kt +++ b/src/main/kotlin/com/raeids/stratus/Stratus.kt @@ -12,6 +12,7 @@ import gg.essential.universal.UDesktop import net.minecraft.client.Minecraft import net.minecraft.client.gui.FontRenderer import net.minecraft.client.gui.GuiChat +import net.minecraft.client.renderer.GlStateManager import net.minecraft.client.settings.KeyBinding import net.minecraft.client.shader.Framebuffer import net.minecraftforge.common.MinecraftForge.EVENT_BUS @@ -108,6 +109,8 @@ object Stratus { w = fr.getStringWidth(chatLines.stream().max(Comparator.comparingInt { obj: String -> obj.length }).get()) } val fb: Framebuffer = RenderHelper.createBindFramebuffer(w, h) + GlStateManager.translate(-2f, (160 - (180 - h)).toFloat(), 0f) + chat.drawChat(hud.updateCounter) val file = File(Minecraft.getMinecraft().mcDataDir, "screenshots/chat/" + fileFormatter.format(Date())) RenderHelper.screenshotFramebuffer(fb, file) Minecraft.getMinecraft().entityRenderer.setupOverlayRendering() |