Merge pull request #357 from daemitus/patch-1

Apparent typos in ImGuiHelpers
This commit is contained in:
goaaats 2021-05-21 01:19:04 +02:00 committed by GitHub
commit 8cb70f38c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,8 +41,8 @@ namespace Dalamud.Interface
/// </summary>
/// <param name="offset">The offset from your current cursor position.</param>
/// <param name="spacing">The spacing to use.</param>
public static void ScaledRelativeSameLine(float offset, float spacing = -1.0f) =>
ImGui.SameLine(ImGui.GetCursorPosX() + (offset * GlobalScale));
public static void ScaledRelativeSameLine(float offset, float spacing = -1.0f)
=> ImGui.SameLine(ImGui.GetCursorPosX() + (offset * GlobalScale), spacing);
/// <summary>
/// Set the position of the next window relative to the main viewport.
@ -60,9 +60,8 @@ namespace Dalamud.Interface
/// <param name="name">The name/ID of the window.</param>
/// <param name="position">The position of the window.</param>
/// <param name="condition">When to set the position.</param>
public static void SetWindowPosRelativeMainViewport(
string name, Vector2 position, ImGuiCond condition = ImGuiCond.None)
=> ImGui.SetWindowPos(position + MainViewport.Pos, condition);
public static void SetWindowPosRelativeMainViewport(string name, Vector2 position, ImGuiCond condition = ImGuiCond.None)
=> ImGui.SetWindowPos(name, position + MainViewport.Pos, condition);
/// <summary>
/// Creates default color palette for use with color pickers.