Implement detection for resetting points and add remaining skillpoints in tree screen

This commit is contained in:
2025-11-25 22:23:14 +01:00
parent ec49eb4385
commit dd15eb9327
9 changed files with 116 additions and 8 deletions
@@ -98,6 +98,11 @@ public class SkilltreeScreen extends Screen {
@Override
public void render(GuiGraphics gfx, int mouseX, int mouseY, float partialTicks) {
this.renderBackground(gfx);
int remaining = SkilltreeClientState.getCurrentSkillPoints();
Component pointsText = Component.literal(remaining + " skillpoints remaining")
.withStyle(ChatFormatting.YELLOW);
gfx.drawString(font, pointsText, 10, 10, 0xFFFFFF);
hoveredNode = findNodeAt(mouseX, mouseY);
drawGraph(gfx);
if (hoveredNode != null && selectedNode == null) {