mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Highlight hovered zone on the find zone zones list.
This commit is contained in:
parent
b913c17f5b
commit
5111275770
@ -8605,6 +8605,7 @@ void View::DrawZoneList( const Vector<ZoneEvent*>& zones )
|
|||||||
}
|
}
|
||||||
|
|
||||||
ImGui::PushID( ev );
|
ImGui::PushID( ev );
|
||||||
|
if( m_zoneHover == ev ) ImGui::PushStyleColor( ImGuiCol_Text, ImVec4( 0, 1, 0, 1 ) );
|
||||||
if( ImGui::Selectable( TimeToString( ev->Start() ), m_zoneInfoWindow == ev, ImGuiSelectableFlags_SpanAllColumns ) )
|
if( ImGui::Selectable( TimeToString( ev->Start() ), m_zoneInfoWindow == ev, ImGuiSelectableFlags_SpanAllColumns ) )
|
||||||
{
|
{
|
||||||
ShowZoneInfo( *ev );
|
ShowZoneInfo( *ev );
|
||||||
@ -8627,7 +8628,7 @@ void View::DrawZoneList( const Vector<ZoneEvent*>& zones )
|
|||||||
ImGui::TextUnformatted( m_worker.GetString( ev->name ) );
|
ImGui::TextUnformatted( m_worker.GetString( ev->name ) );
|
||||||
}
|
}
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
|
if( m_zoneHover == ev ) ImGui::PopStyleColor();
|
||||||
ImGui::PopID();
|
ImGui::PopID();
|
||||||
}
|
}
|
||||||
ImGui::Columns( 1 );
|
ImGui::Columns( 1 );
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user