From 7df614412ab87d4e67e088c0be6f24a806f1b340 Mon Sep 17 00:00:00 2001 From: Raymond Lynch Date: Thu, 20 May 2021 10:50:21 -0400 Subject: [PATCH] Apparent typos in ImGuiHelpers --- Dalamud/Interface/ImGuiHelpers.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Dalamud/Interface/ImGuiHelpers.cs b/Dalamud/Interface/ImGuiHelpers.cs index 2ce4d6112..bfe90b712 100644 --- a/Dalamud/Interface/ImGuiHelpers.cs +++ b/Dalamud/Interface/ImGuiHelpers.cs @@ -41,8 +41,8 @@ namespace Dalamud.Interface /// /// The offset from your current cursor position. /// The spacing to use. - 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); /// /// Set the position of the next window relative to the main viewport. @@ -60,9 +60,8 @@ namespace Dalamud.Interface /// The name/ID of the window. /// The position of the window. /// When to set the position. - 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); /// /// Creates default color palette for use with color pickers.