mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Indicate currently selected annotation.
This commit is contained in:
parent
4be2aa0682
commit
8483ef4310
@ -16180,6 +16180,12 @@ void View::DrawAnnotationList()
|
||||
ImGui::SameLine();
|
||||
ImGui::ColorButton( "c", ImGui::ColorConvertU32ToFloat4( ann->color ), ImGuiColorEditFlags_NoTooltip );
|
||||
ImGui::SameLine();
|
||||
if( m_selectedAnnotation == ann.get() )
|
||||
{
|
||||
bool t = true;
|
||||
ImGui::Selectable( "##annSelectable", &t );
|
||||
ImGui::SameLine( 0, 0 );
|
||||
}
|
||||
if( ann->text.empty() )
|
||||
{
|
||||
TextDisabledUnformatted( "Empty annotation" );
|
||||
|
Loading…
Reference in New Issue
Block a user