xo-imgui: imgui_ex4: prep gc history bars for rich tooltips
This commit is contained in:
parent
b4a8ecd7d6
commit
51a1ce7d0f
5 changed files with 152 additions and 126 deletions
|
|
@ -18,7 +18,9 @@ ImRect::draw_filled_rect_with_label(const char * text,
|
|||
ImGui::SetCursorScreenPos(rect.top_left());
|
||||
ImGui::InvisibleButton("ttbutton", ImVec2(rect.width(), rect.height()));
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("%s", tooltip);
|
||||
ImGui::BeginTooltip();
|
||||
ImGui::Text("%s", tooltip);
|
||||
ImGui::EndTooltip();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue