feat: less obtrusive tooltips; Bounding box only tooltip

This commit is contained in:
2026-01-16 14:05:28 -05:00
parent 23a28d56ff
commit db712a54f9
+11
View File
@@ -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();
}