From 9846a3babca16aa68380ac3943aaa95744bb83cd Mon Sep 17 00:00:00 2001 From: ThisIsFineCopium Date: Wed, 7 Aug 2024 16:08:44 +0100 Subject: [PATCH] Padding adjustment --- Main/MapNotify.cs | 9 ++++++--- Settings/DrawSettings.cs | 2 ++ Settings/MapNotifySettings.cs | 1 + 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Main/MapNotify.cs b/Main/MapNotify.cs index e5e2884..cc9dacf 100644 --- a/Main/MapNotify.cs +++ b/Main/MapNotify.cs @@ -165,14 +165,17 @@ public void RenderItem(NormalInventoryItem Item, Entity Entity, bool isInventory classID.Contains("HeistBlueprint")) && ItemDetails.ActiveWarnings.Count == 0) return; // Get mouse position - var boxOrigin = new nuVector2(MouseLite.GetCursorPositionVector().X + 24, MouseLite.GetCursorPositionVector().Y); + var boxOrigin = new nuVector2(MouseLite.GetCursorPositionVector().X + 25, MouseLite.GetCursorPositionVector().Y); // Pad vertically as well if using ninja pricer tooltip if (Settings.PadForNinjaPricer && ItemDetails.NeedsPadding) - boxOrigin = new nuVector2(MouseLite.GetCursorPositionVector().X + 24, MouseLite.GetCursorPositionVector().Y + 56); + boxOrigin = new nuVector2(MouseLite.GetCursorPositionVector().X + 25, MouseLite.GetCursorPositionVector().Y + 56); + // Pad vertically as well if using ninja pricer tooltip 2nd padding + if (Settings.PadForNinjaPricer2 && ItemDetails.NeedsPadding) + boxOrigin = new nuVector2(MouseLite.GetCursorPositionVector().X + 25, MouseLite.GetCursorPositionVector().Y + 114); // Personal pricer if (Settings.PadForAltPricer && ItemDetails.NeedsPadding) - boxOrigin = new nuVector2(MouseLite.GetCursorPositionVector().X + 24, MouseLite.GetCursorPositionVector().Y + 30); + boxOrigin = new nuVector2(MouseLite.GetCursorPositionVector().X + 25, MouseLite.GetCursorPositionVector().Y + 30); // Parsing inventory, don't use boxOrigin if (isInventory) diff --git a/Settings/DrawSettings.cs b/Settings/DrawSettings.cs index 2780d43..7dcc026 100644 --- a/Settings/DrawSettings.cs +++ b/Settings/DrawSettings.cs @@ -232,6 +232,8 @@ public override void DrawSettings() ImGui.SameLine(); HelpMarker("This will irreversibly delete all your existing warnings config files!"); Settings.PadForNinjaPricer.Value = Checkbox("Pad for Ninja Pricer", Settings.PadForNinjaPricer); ImGui.SameLine(); HelpMarker("This will move the tooltip down vertically to allow room for the Ninja Pricer tooltip to be rendered. Only needed with that plugin active."); + Settings.PadForNinjaPricer2.Value = Checkbox("More Pad for Ninja Pricer", Settings.PadForNinjaPricer2); + ImGui.SameLine(); HelpMarker("This will move the tooltip down vertically to allow room for the Ninja Pricer tooltip to be rendered. Only needed with that plugin active."); Settings.PadForAltPricer.Value = Checkbox("Pad for Personal Pricer", Settings.PadForAltPricer); ImGui.SameLine(); HelpMarker("It's unlikely you'll need this."); ImGui.Spacing(); diff --git a/Settings/MapNotifySettings.cs b/Settings/MapNotifySettings.cs index af6309b..89c195f 100644 --- a/Settings/MapNotifySettings.cs +++ b/Settings/MapNotifySettings.cs @@ -37,6 +37,7 @@ public class MapNotifySettings : ISettings public ToggleNode ShowCompletion { get; set; } = new(true); public ToggleNode HorizontalLines { get; set; } = new(true); public ToggleNode PadForNinjaPricer { get; set; } = new(false); + public ToggleNode PadForNinjaPricer2 { get; set; } = new(false); public ToggleNode PadForAltPricer { get; set; } = new(false); public ToggleNode AlwaysShowTooltip { get; set; } = new(true); public ToggleNode AlwaysShowCompletionBorder { get; set; } = new(true);