mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 20:33:52 +00:00
Add IP/port tooltip to discovered clients list.
This commit is contained in:
parent
c6bb08355c
commit
e30161c34e
@ -639,6 +639,15 @@ static void DrawContents()
|
|||||||
ImGuiSelectableFlags flags = ImGuiSelectableFlags_SpanAllColumns;
|
ImGuiSelectableFlags flags = ImGuiSelectableFlags_SpanAllColumns;
|
||||||
if( badProto ) flags |= ImGuiSelectableFlags_Disabled;
|
if( badProto ) flags |= ImGuiSelectableFlags_Disabled;
|
||||||
const bool selected = ImGui::Selectable( name->second.c_str(), &sel, flags );
|
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 )
|
if( v.second.port != port )
|
||||||
{
|
{
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user