A little bit better number formatting

This commit is contained in:
Simon Lübeß
2024-06-27 20:50:26 +02:00
parent b96f195afb
commit c908f5a0e7
3 changed files with 36 additions and 5 deletions
@@ -353,7 +353,7 @@ namespace GlitchyEditor.EditWindows
}
ImGui.PropertyTableStartNewProperty("Rotation");
if (ImGui.Float3Editor("##Rotation", ref rotationEuler, resetValues: .Zero, dragSpeed: 0.1f, componentEnabled: componentEditable, format: .("%.3g°",)))
if (ImGui.Float3Editor("##Rotation", ref rotationEuler, resetValues: .Zero, dragSpeed: 0.1f, componentEnabled: componentEditable, format: .("0.#####°",)))
{
transform.EditorRotationEuler = MathHelper.ToRadians(rotationEuler);