mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 06:44:35 +00:00
If there's no group selected, dim group selection legend.
This commit is contained in:
parent
fc40c7bbf6
commit
9fb26b3622
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user