Merge pull request #1139 from kalilistic/indent

feat: add imgui scaled indent
This commit is contained in:
goat 2023-02-25 21:29:34 +01:00 committed by GitHub
commit 644380815f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,6 +74,12 @@ public static class ImGuiHelpers
/// <param name="size">The size of the dummy.</param>
public static void ScaledDummy(Vector2 size) => ImGui.Dummy(size * GlobalScale);
/// <summary>
/// Create an indent scaled by the global Dalamud scale.
/// </summary>
/// <param name="size">The size of the indent.</param>
public static void ScaledIndent(float size) => ImGui.Indent(size * GlobalScale);
/// <summary>
/// Use a relative ImGui.SameLine() from your current cursor position, scaled by the Dalamud global scale.
/// </summary>