mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
Merge pull request #1139 from kalilistic/indent
feat: add imgui scaled indent
This commit is contained in:
commit
644380815f
1 changed files with 6 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue