Skip to content

Commit

Permalink
add tooltip for property value
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl0922 committed Feb 10, 2023
1 parent 70b3a95 commit 0fec7cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/views/debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ void Debug::drawPropNode(const char* name, mpv_node& node, int depth) {
ImGui::BulletText("%s", title);
ImGui::SameLine(ImGui::GetContentRegionAvail().x * 0.5f);
ImGui::TextColored(color, "%s", value.c_str());
if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayNormal)) ImGui::SetTooltip("%s", value.c_str());
ImGui::PopStyleVar();
ImGui::PopID();
};
Expand Down

0 comments on commit 0fec7cd

Please sign in to comment.