Skip to content

Commit b363942

Browse files
committed
Update message in HUD
1 parent c9d7c41 commit b363942

File tree

1 file changed

+4
-0
lines changed
  • src/main/kotlin/com/lambda/client/gui/hudgui/elements/client

1 file changed

+4
-0
lines changed

src/main/kotlin/com/lambda/client/gui/hudgui/elements/client/WaterMark.kt

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ package com.lambda.client.gui.hudgui.elements.client
33
import com.lambda.client.LambdaMod
44
import com.lambda.client.event.SafeClientEvent
55
import com.lambda.client.gui.hudgui.LabelHud
6+
import com.lambda.client.util.WebUtils.isLatestVersion
7+
import com.lambda.client.util.WebUtils.latestVersion
8+
import com.lambda.client.util.color.ColorHolder
69
import com.lambda.client.util.graphics.VertexHelper
710
import org.lwjgl.opengl.GL11.glScalef
811

@@ -19,6 +22,7 @@ internal object WaterMark : LabelHud(
1922
override fun SafeClientEvent.updateText() {
2023
displayText.add(LambdaMod.NAME, primaryColor)
2124
displayText.add(LambdaMod.VERSION, secondaryColor)
25+
if (!isLatestVersion) displayText.add(" Update Available! ($latestVersion)", ColorHolder(255, 0, 0))
2226
}
2327

2428
override fun renderHud(vertexHelper: VertexHelper) {

0 commit comments

Comments
 (0)