Skip to content

Commit

Permalink
without nanovg
Browse files Browse the repository at this point in the history
  • Loading branch information
ImToggle committed Jul 25, 2024
1 parent 1f014d5 commit f0211a8
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions src/main/kotlin/org/polyfrost/chatting/chat/ChatWindow.kt
Original file line number Diff line number Diff line change
Expand Up @@ -158,17 +158,14 @@ class ChatWindow : BasicHud(true, 2f, 1080 - 27f - 45f - 12f,

override fun draw(matrices: UMatrixStack?, x: Float, y: Float, scale: Float, example: Boolean) {
if (!example) return
nanoVG(true){
GL.pushMatrix()
GL.translate(x, y + scale, 0f)
GL.scale(scale, scale, 1f)
for (chat in exampleList) {
ModCompatHooks.redirectDrawString(chat.chatComponent.formattedText, 0f, 0f, -1, chat, false)
GL.translate(0f, 9f, 0f)
}
GL.popMatrix()
GL.pushMatrix()
GL.translate(x, y + scale, 0f)
GL.scale(scale, scale, 1f)
for (chat in exampleList) {
ModCompatHooks.redirectDrawString(chat.chatComponent.formattedText, 0f, 0f, -1, chat, false)
GL.translate(0f, 9f, 0f)
}

GL.popMatrix()
}

override fun drawBackground(x: Float, y: Float, width: Float, height: Float, scale: Float) {
Expand Down

0 comments on commit f0211a8

Please sign in to comment.