If there's no group selected, dim group selection legend.

This commit is contained in:
Bartosz Taudul 2018-09-03 20:36:40 +02:00
parent fc40c7bbf6
commit 9fb26b3622

View File

@ -4897,13 +4897,27 @@ void View::DrawFindZone()
ImGui::SameLine(); ImGui::SameLine();
ImGui::ColorButton( "c3", ImVec4( 0xFF/255.f, 0xAA/255.f, 0x44/255.f, 1.f ), ImGuiColorEditFlags_NoTooltip ); ImGui::ColorButton( "c3", ImVec4( 0xFF/255.f, 0xAA/255.f, 0x44/255.f, 1.f ), ImGuiColorEditFlags_NoTooltip );
ImGui::SameLine(); ImGui::SameLine();
if( m_findZone.selGroup != m_findZone.Unselected )
{
ImGui::Text( "Group average" ); ImGui::Text( "Group average" );
}
else
{
ImGui::TextDisabled( "Group average" );
}
ImGui::SameLine(); ImGui::SameLine();
ImGui::Spacing(); ImGui::Spacing();
ImGui::SameLine(); ImGui::SameLine();
ImGui::ColorButton( "c4", ImVec4( 0x44/255.f, 0xDD/255.f, 0x44/255.f, 1.f ), ImGuiColorEditFlags_NoTooltip ); ImGui::ColorButton( "c4", ImVec4( 0x44/255.f, 0xDD/255.f, 0x44/255.f, 1.f ), ImGuiColorEditFlags_NoTooltip );
ImGui::SameLine(); ImGui::SameLine();
if( m_findZone.selGroup != m_findZone.Unselected )
{
ImGui::Text( "Group median" ); ImGui::Text( "Group median" );
}
else
{
ImGui::TextDisabled( "Group median" );
}
const auto Height = 200 * ImGui::GetTextLineHeight() / 15.f; const auto Height = 200 * ImGui::GetTextLineHeight() / 15.f;
const auto wpos = ImGui::GetCursorScreenPos(); const auto wpos = ImGui::GetCursorScreenPos();