feat: add tooltips for element buttons

This commit is contained in:
Anna 2021-03-15 13:22:29 -04:00
parent 2483c5e4d5
commit c02ac42e9e
1 changed files with 4 additions and 0 deletions

View File

@ -580,11 +580,15 @@ namespace HUD_Manager {
} }
} }
HoverTooltip("Toggle a movable preview for this element");
ImGui.SameLine(ImGui.GetContentRegionAvail().X - ImGui.GetStyle().ItemSpacing.X * 3); ImGui.SameLine(ImGui.GetContentRegionAvail().X - ImGui.GetStyle().ItemSpacing.X * 3);
if (IconButton(FontAwesomeIcon.TrashAlt, $"uimanager-remove-element-{kind}")) { if (IconButton(FontAwesomeIcon.TrashAlt, $"uimanager-remove-element-{kind}")) {
toRemove.Add(kind); toRemove.Add(kind);
} }
HoverTooltip("Remove this element from this layout");
ImGui.Separator(); ImGui.Separator();
void DrawEnabledCheckbox(ElementKind kind, ElementComponent component) { void DrawEnabledCheckbox(ElementKind kind, ElementComponent component) {