Add IP/port tooltip to discovered clients list.

This commit is contained in:
Bartosz Taudul 2020-03-08 16:19:58 +01:00
parent c6bb08355c
commit e30161c34e

View File

@ -639,6 +639,15 @@ static void DrawContents()
ImGuiSelectableFlags flags = ImGuiSelectableFlags_SpanAllColumns;
if( badProto ) flags |= ImGuiSelectableFlags_Disabled;
const bool selected = ImGui::Selectable( name->second.c_str(), &sel, flags );
if( ImGui::IsItemHovered() )
{
char portstr[32];
sprintf( portstr, "%" PRIu32, v.second.port );
ImGui::BeginTooltip();
tracy::TextFocused( "IP:", v.second.address.c_str() );
tracy::TextFocused( "Port:", portstr );
ImGui::EndTooltip();
}
if( v.second.port != port )
{
ImGui::SameLine();