mirror of
https://github.com/wolfpld/tracy
synced 2025-05-02 13:43:52 +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()];
|
auto& cev = *children[cgr.v.front()];
|
||||||
const auto txt = m_worker.GetZoneName( cev );
|
const auto txt = m_worker.GetZoneName( cev );
|
||||||
bool b = false;
|
bool b = false;
|
||||||
|
SmallColorBox( GetSrcLocColor( srcloc, 0 ) );
|
||||||
|
ImGui::SameLine();
|
||||||
ImGui::PushID( (int)cgr.v.front() );
|
ImGui::PushID( (int)cgr.v.front() );
|
||||||
if( ImGui::Selectable( txt, &b, ImGuiSelectableFlags_SpanAllColumns ) )
|
if( ImGui::Selectable( txt, &b, ImGuiSelectableFlags_SpanAllColumns ) )
|
||||||
{
|
{
|
||||||
@ -6147,6 +6149,8 @@ void View::DrawZoneInfoWindow()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
SmallColorBox( GetSrcLocColor( srcloc, 0 ) );
|
||||||
|
ImGui::SameLine();
|
||||||
ImGui::PushID( cgr.srcloc );
|
ImGui::PushID( cgr.srcloc );
|
||||||
expandGroup = ImGui::TreeNode( txt );
|
expandGroup = ImGui::TreeNode( txt );
|
||||||
ImGui::PopID();
|
ImGui::PopID();
|
||||||
@ -6249,6 +6253,8 @@ void View::DrawZoneInfoWindow()
|
|||||||
auto& cev = *children[cti[i]];
|
auto& cev = *children[cti[i]];
|
||||||
const auto txt = m_worker.GetZoneName( cev );
|
const auto txt = m_worker.GetZoneName( cev );
|
||||||
bool b = false;
|
bool b = false;
|
||||||
|
SmallColorBox( GetSrcLocColor( m_worker.GetSourceLocation( cev.SrcLoc() ), 0 ) );
|
||||||
|
ImGui::SameLine();
|
||||||
ImGui::PushID( (int)i );
|
ImGui::PushID( (int)i );
|
||||||
if( ImGui::Selectable( txt, &b, ImGuiSelectableFlags_SpanAllColumns ) )
|
if( ImGui::Selectable( txt, &b, ImGuiSelectableFlags_SpanAllColumns ) )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user