From db712a54f92ef45b48c1e3b75090ab719e3eecd1 Mon Sep 17 00:00:00 2001 From: whoswhip Date: Fri, 16 Jan 2026 14:05:28 -0500 Subject: [PATCH] feat: less obtrusive tooltips; Bounding box only tooltip --- Spectrum/Renderer/Renderer.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Spectrum/Renderer/Renderer.cs b/Spectrum/Renderer/Renderer.cs index 08b0126..684c905 100644 --- a/Spectrum/Renderer/Renderer.cs +++ b/Spectrum/Renderer/Renderer.cs @@ -229,6 +229,9 @@ namespace Spectrum bool RandomDelay = config.TriggerRandomDelay; if (ImGui.Checkbox(" Random Delay", ref RandomDelay)) config.TriggerRandomDelay = RandomDelay; + + ImGui.SameLine(ImGui.GetContentRegionAvail().X - 10); + ImGui.TextDisabled("(?)"); if (ImGui.IsItemHovered(ImGuiHoveredFlags.None)) ImGui.SetTooltip("Randomizes the trigger delay between 10 and the set Trigger Delay."); @@ -238,6 +241,9 @@ namespace Spectrum bool RandomDuration = config.TriggerRandomDuration; if (ImGui.Checkbox(" Random Duration", ref RandomDuration)) config.TriggerRandomDuration = RandomDuration; + + ImGui.SameLine(ImGui.GetContentRegionAvail().X - 10); + ImGui.TextDisabled("(?)"); if (ImGui.IsItemHovered(ImGuiHoveredFlags.None)) ImGui.SetTooltip("Randomizes the trigger duration between 20 and the set Trigger Duration."); @@ -248,6 +254,11 @@ namespace Spectrum config.TriggerSpray = TriggerSpray; if (ImGui.Checkbox(" Bounding Box Only", ref BoundingBoxOnly)) config.TriggerInBoundsOnly = BoundingBoxOnly; + + ImGui.SameLine(ImGui.GetContentRegionAvail().X - 10); + ImGui.TextDisabled("(?)"); + if (ImGui.IsItemHovered(ImGuiHoveredFlags.None)) + ImGui.SetTooltip("Only triggers when the detected object is within the bounding box."); } ImGuiExtensions.EndPane(); }