Added RightAlignText helper function

This commit is contained in:
Graham Pentheny
2025-08-05 13:35:38 -04:00
parent 708a7b68ac
commit 3a9c6ab3b3
4 changed files with 20 additions and 12 deletions

View File

@@ -25,6 +25,7 @@
#include "InputGeom.h"
#include "Recast.h"
#include "RecastDebugDraw.h"
#include "imguiHelpers.h"
#include <imgui.h>
@@ -217,7 +218,7 @@ void Sample::handleCommonSettings()
cellSize,
&gridWidth,
&gridHeight);
ImGui::Text("Voxels %d x %d", gridWidth, gridHeight);
DrawRightAlignedText("Voxels %d x %d", gridWidth, gridHeight);
}
ImGui::SeparatorText("Agent");