Add zone color boxes to child zone list.

This commit is contained in:
Bartosz Taudul 2019-11-02 23:11:37 +01:00
parent 1a6f04f6ce
commit c294e62f5e

View File

@ -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 ) )
{