mirror of
https://github.com/whoswhip/Spectrum.git
synced 2026-12-06 01:28:42 +00:00
feat: less obtrusive tooltips; Bounding box only tooltip
This commit is contained in:
@@ -229,6 +229,9 @@ namespace Spectrum
|
|||||||
bool RandomDelay = config.TriggerRandomDelay;
|
bool RandomDelay = config.TriggerRandomDelay;
|
||||||
if (ImGui.Checkbox(" Random Delay", ref RandomDelay))
|
if (ImGui.Checkbox(" Random Delay", ref RandomDelay))
|
||||||
config.TriggerRandomDelay = RandomDelay;
|
config.TriggerRandomDelay = RandomDelay;
|
||||||
|
|
||||||
|
ImGui.SameLine(ImGui.GetContentRegionAvail().X - 10);
|
||||||
|
ImGui.TextDisabled("(?)");
|
||||||
if (ImGui.IsItemHovered(ImGuiHoveredFlags.None))
|
if (ImGui.IsItemHovered(ImGuiHoveredFlags.None))
|
||||||
ImGui.SetTooltip("Randomizes the trigger delay between 10 and the set Trigger Delay.");
|
ImGui.SetTooltip("Randomizes the trigger delay between 10 and the set Trigger Delay.");
|
||||||
|
|
||||||
@@ -238,6 +241,9 @@ namespace Spectrum
|
|||||||
bool RandomDuration = config.TriggerRandomDuration;
|
bool RandomDuration = config.TriggerRandomDuration;
|
||||||
if (ImGui.Checkbox(" Random Duration", ref RandomDuration))
|
if (ImGui.Checkbox(" Random Duration", ref RandomDuration))
|
||||||
config.TriggerRandomDuration = RandomDuration;
|
config.TriggerRandomDuration = RandomDuration;
|
||||||
|
|
||||||
|
ImGui.SameLine(ImGui.GetContentRegionAvail().X - 10);
|
||||||
|
ImGui.TextDisabled("(?)");
|
||||||
if (ImGui.IsItemHovered(ImGuiHoveredFlags.None))
|
if (ImGui.IsItemHovered(ImGuiHoveredFlags.None))
|
||||||
ImGui.SetTooltip("Randomizes the trigger duration between 20 and the set Trigger Duration.");
|
ImGui.SetTooltip("Randomizes the trigger duration between 20 and the set Trigger Duration.");
|
||||||
|
|
||||||
@@ -248,6 +254,11 @@ namespace Spectrum
|
|||||||
config.TriggerSpray = TriggerSpray;
|
config.TriggerSpray = TriggerSpray;
|
||||||
if (ImGui.Checkbox(" Bounding Box Only", ref BoundingBoxOnly))
|
if (ImGui.Checkbox(" Bounding Box Only", ref BoundingBoxOnly))
|
||||||
config.TriggerInBoundsOnly = 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();
|
ImGuiExtensions.EndPane();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user