add debug GUI render mode (F8)

This commit is contained in:
MihailRis
2025-03-11 00:39:59 +03:00
parent a74a4fcf53
commit 5af6b91b22
18 changed files with 93 additions and 29 deletions
+2 -1
View File
@@ -5,6 +5,7 @@
#include "graphics/core/DrawContext.hpp"
#include "assets/Assets.hpp"
#include "util/stringutil.hpp"
#include "constants.hpp"
using namespace gui;
@@ -37,7 +38,7 @@ void Plotter::draw(const DrawContext& pctx, const Assets& assets) {
}
int current_point = static_cast<int>(points[index % dmwidth]);
auto font = assets.get<Font>("normal");
auto font = assets.get<Font>(FONT_DEFAULT);
for (int y = 0; y < dmheight; y += labelsInterval) {
std::wstring string;
if (current_point/16 == y/labelsInterval) {