mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2026-02-21 15:07:43 +01:00
Improve tooltips for tri-state toggles.
This commit is contained in:
parent
64ab57b2ef
commit
ee34f37446
4 changed files with 7 additions and 15 deletions
|
|
@ -66,7 +66,7 @@ public static class UiHelpers
|
|||
return ret;
|
||||
}
|
||||
|
||||
public static DataChange DrawMetaToggle(string label, string tooltip, bool currentValue, bool currentApply, out bool newValue,
|
||||
public static DataChange DrawMetaToggle(string label, bool currentValue, bool currentApply, out bool newValue,
|
||||
out bool newApply,
|
||||
bool locked)
|
||||
{
|
||||
|
|
@ -78,7 +78,7 @@ public static class UiHelpers
|
|||
ret = ImGui.CheckboxFlags("##" + label, ref flags, 3);
|
||||
}
|
||||
|
||||
ImGuiUtil.HoverTooltip(tooltip);
|
||||
ImGuiUtil.HoverTooltip($"This attribute will be {(currentApply ? currentValue ? "enabled." : "disabled." : "kept as is.")}");
|
||||
|
||||
ImGui.SameLine();
|
||||
ImGui.TextUnformatted(label);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue