mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Add zone color boxes to child zone list.
This commit is contained in:
parent
1a6f04f6ce
commit
c294e62f5e
@ -6129,6 +6129,8 @@ void View::DrawZoneInfoWindow()
|
||||
auto& cev = *children[cgr.v.front()];
|
||||
const auto txt = m_worker.GetZoneName( cev );
|
||||
bool b = false;
|
||||
SmallColorBox( GetSrcLocColor( srcloc, 0 ) );
|
||||
ImGui::SameLine();
|
||||
ImGui::PushID( (int)cgr.v.front() );
|
||||
if( ImGui::Selectable( txt, &b, ImGuiSelectableFlags_SpanAllColumns ) )
|
||||
{
|
||||
@ -6147,6 +6149,8 @@ void View::DrawZoneInfoWindow()
|
||||
}
|
||||
else
|
||||
{
|
||||
SmallColorBox( GetSrcLocColor( srcloc, 0 ) );
|
||||
ImGui::SameLine();
|
||||
ImGui::PushID( cgr.srcloc );
|
||||
expandGroup = ImGui::TreeNode( txt );
|
||||
ImGui::PopID();
|
||||
@ -6249,6 +6253,8 @@ void View::DrawZoneInfoWindow()
|
||||
auto& cev = *children[cti[i]];
|
||||
const auto txt = m_worker.GetZoneName( cev );
|
||||
bool b = false;
|
||||
SmallColorBox( GetSrcLocColor( m_worker.GetSourceLocation( cev.SrcLoc() ), 0 ) );
|
||||
ImGui::SameLine();
|
||||
ImGui::PushID( (int)i );
|
||||
if( ImGui::Selectable( txt, &b, ImGuiSelectableFlags_SpanAllColumns ) )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user