From d765527766f5e0f0ea0b1d66fb742b77223964f9 Mon Sep 17 00:00:00 2001 From: kalilistic <35899782+kalilistic@users.noreply.github.com> Date: Sat, 25 Feb 2023 15:03:25 -0500 Subject: [PATCH] feat: add imgui scaled indent --- Dalamud/Interface/ImGuiHelpers.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dalamud/Interface/ImGuiHelpers.cs b/Dalamud/Interface/ImGuiHelpers.cs index 1e3e8bf5b..bb17c4423 100644 --- a/Dalamud/Interface/ImGuiHelpers.cs +++ b/Dalamud/Interface/ImGuiHelpers.cs @@ -74,6 +74,12 @@ public static class ImGuiHelpers /// The size of the dummy. public static void ScaledDummy(Vector2 size) => ImGui.Dummy(size * GlobalScale); + /// + /// Create an indent scaled by the global Dalamud scale. + /// + /// The size of the indent. + public static void ScaledIndent(float size) => ImGui.Indent(size * GlobalScale); + /// /// Use a relative ImGui.SameLine() from your current cursor position, scaled by the Dalamud global scale. ///