mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[glass] Plot: Show full source name as tooltip and in popup (#3255)
This commit is contained in:
@@ -374,9 +374,15 @@ PlotSeries::Action PlotSeries::EmitPlot(PlotView& view, double now, size_t i,
|
||||
ImPlot::EndLegendDragDropSource();
|
||||
}
|
||||
|
||||
// Show full source name tooltip
|
||||
if (!m_name.empty() && ImPlot::IsLegendEntryHovered(label)) {
|
||||
ImGui::SetTooltip("%s", m_id.c_str());
|
||||
}
|
||||
|
||||
// Edit settings via popup
|
||||
Action rv = kNone;
|
||||
if (ImPlot::BeginLegendPopup(label)) {
|
||||
ImGui::TextUnformatted(m_id.c_str());
|
||||
if (ImGui::Button("Close")) {
|
||||
ImGui::CloseCurrentPopup();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user