Added ui labels for debugging and playability

This commit is contained in:
2026-04-22 17:18:15 +02:00
parent a324ff0d16
commit e1778fb446
8 changed files with 110 additions and 13 deletions

View File

@@ -77,7 +77,10 @@ public class GuiBatcher
);
DrawQuad(currentX, y, size, size, uv, color);
currentX += size * 0.8f; // Tighten horizontal spacing
float charWidthPixels = (CharWidth.GetWidth(c) + 1) / 8;
float charWidthWorldUnits = size * charWidthPixels;
currentX += charWidthWorldUnits;
}
}
}