mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 20:53:52 +00:00
Make accumulation combo consistent.
This commit is contained in:
parent
9e67491766
commit
f74818ece5
@ -12532,27 +12532,17 @@ void View::DrawStatistics()
|
|||||||
{
|
{
|
||||||
ImGui::Checkbox( ICON_FA_STOPWATCH " Show time", &m_statSampleTime );
|
ImGui::Checkbox( ICON_FA_STOPWATCH " Show time", &m_statSampleTime );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
ImGui::Spacing();
|
||||||
|
ImGui::SameLine();
|
||||||
if( m_statRange.active )
|
if( m_statRange.active )
|
||||||
{
|
{
|
||||||
ImGui::PushItemFlag( ImGuiItemFlags_Disabled, true );
|
ImGui::BeginDisabled();
|
||||||
ImGui::PushStyleVar( ImGuiStyleVar_Alpha, ImGui::GetStyle().Alpha * 0.5f );
|
|
||||||
m_statAccumulationMode = AccumulationMode::SelfOnly;
|
m_statAccumulationMode = AccumulationMode::SelfOnly;
|
||||||
bool val = true;
|
AccumulationModeComboBox();
|
||||||
ImGui::Checkbox( ICON_FA_CLOCK " Self time", &val );
|
ImGui::EndDisabled();
|
||||||
ImGui::PopItemFlag();
|
|
||||||
ImGui::PopStyleVar();
|
|
||||||
if( ImGui::IsItemHovered() )
|
|
||||||
{
|
|
||||||
ImGui::BeginTooltip();
|
|
||||||
ImGui::TextUnformatted( "Time range limits are only available for self time" );
|
|
||||||
ImGui::EndTooltip();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ImGui::SameLine();
|
|
||||||
ImGui::Spacing();
|
|
||||||
ImGui::SameLine();
|
|
||||||
AccumulationModeComboBox();
|
AccumulationModeComboBox();
|
||||||
}
|
}
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user