Skip to content

Commit

Permalink
cute lil tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
Akechi-kun committed Feb 24, 2025
1 parent 914ae86 commit a136b89
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion BossMod/Config/ModuleViewer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ private void DrawFilters()
ImGui.Text("Search:");
ImGui.SameLine();
ImGui.SetNextItemWidth(-1);
ImGui.InputTextWithHint("##search", "e.g. \"Ultimate\"", ref _searchText, 100, ImGuiInputTextFlags.CallbackCompletion);
DrawSearchBar();
ImGui.TableNextColumn();

ImGui.TableNextColumn();
Expand All @@ -159,6 +159,19 @@ private void DrawFilters()
DrawContentTypeFilters();
}

private void DrawSearchBar()
{
ImGui.InputTextWithHint("##search", "e.g. \"Ultimate\"", ref _searchText, 100, ImGuiInputTextFlags.CallbackCompletion);

if (ImGui.IsItemHovered() && !ImGui.IsItemFocused())
{
ImGui.BeginTooltip();
ImGui.Text("Type here to search for any specific instance by its respective title.");
ImGui.EndTooltip();
}
}


private void DrawExpansionFilters()
{
for (var e = BossModuleInfo.Expansion.RealmReborn; e < BossModuleInfo.Expansion.Count; ++e)
Expand Down

0 comments on commit a136b89

Please sign in to comment.