mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Merge pull request #357 from daemitus/patch-1
Apparent typos in ImGuiHelpers
This commit is contained in:
commit
8cb70f38c7
1 changed files with 4 additions and 5 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue