Describe incompatible protocol in the tooltip.

This commit is contained in:
Bartosz Taudul 2020-06-04 02:15:21 +02:00
parent f227bb4d9c
commit 0891245b49

View File

@ -740,6 +740,12 @@ static void DrawContents()
char portstr[32]; char portstr[32];
sprintf( portstr, "%" PRIu32, v.second.port ); sprintf( portstr, "%" PRIu32, v.second.port );
ImGui::BeginTooltip(); ImGui::BeginTooltip();
if( badProto )
{
tracy::TextColoredUnformatted( 0xFF0000FF, "Incompatible protocol!" );
ImGui::SameLine();
ImGui::TextDisabled( "(used: %i, required: %i)", v.second.protocolVersion, tracy::ProtocolVersion );
}
tracy::TextFocused( "IP:", v.second.address.c_str() ); tracy::TextFocused( "IP:", v.second.address.c_str() );
tracy::TextFocused( "Port:", portstr ); tracy::TextFocused( "Port:", portstr );
ImGui::EndTooltip(); ImGui::EndTooltip();