Highlight hovered zone on the find zone zones list.

This commit is contained in:
Bartosz Taudul 2019-10-04 13:02:26 +02:00
parent b913c17f5b
commit 5111275770

View File

@ -8605,6 +8605,7 @@ void View::DrawZoneList( const Vector<ZoneEvent*>& zones )
}
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 ) )
{
ShowZoneInfo( *ev );
@ -8627,7 +8628,7 @@ void View::DrawZoneList( const Vector<ZoneEvent*>& zones )
ImGui::TextUnformatted( m_worker.GetString( ev->name ) );
}
ImGui::NextColumn();
if( m_zoneHover == ev ) ImGui::PopStyleColor();
ImGui::PopID();
}
ImGui::Columns( 1 );