mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 04:43:53 +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::SameLine();
|
||||||
ImGui::ColorButton( "c", ImGui::ColorConvertU32ToFloat4( ann->color ), ImGuiColorEditFlags_NoTooltip );
|
ImGui::ColorButton( "c", ImGui::ColorConvertU32ToFloat4( ann->color ), ImGuiColorEditFlags_NoTooltip );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
if( m_selectedAnnotation == ann.get() )
|
||||||
|
{
|
||||||
|
bool t = true;
|
||||||
|
ImGui::Selectable( "##annSelectable", &t );
|
||||||
|
ImGui::SameLine( 0, 0 );
|
||||||
|
}
|
||||||
if( ann->text.empty() )
|
if( ann->text.empty() )
|
||||||
{
|
{
|
||||||
TextDisabledUnformatted( "Empty annotation" );
|
TextDisabledUnformatted( "Empty annotation" );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user