mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Mark activity on buzz anim in zone trace.
This commit is contained in:
parent
29c7b5f259
commit
64dbaf9d84
@ -199,6 +199,7 @@ void DrawZoneTrace( T zone, const std::vector<T>& trace, const Worker& worker, B
|
|||||||
const auto time = anim.Time();
|
const auto time = anim.Time();
|
||||||
const auto indentVal = sin( time * 60.f ) * 10.f * time;
|
const auto indentVal = sin( time * 60.f ) * 10.f * time;
|
||||||
ImGui::SameLine( 0, ImGui::GetStyle().ItemSpacing.x + indentVal );
|
ImGui::SameLine( 0, ImGui::GetStyle().ItemSpacing.x + indentVal );
|
||||||
|
s_wasActive = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -253,6 +254,7 @@ void DrawZoneTrace( T zone, const std::vector<T>& trace, const Worker& worker, B
|
|||||||
const auto time = anim.Time();
|
const auto time = anim.Time();
|
||||||
const auto indentVal = sin( time * 60.f ) * 10.f * time;
|
const auto indentVal = sin( time * 60.f ) * 10.f * time;
|
||||||
ImGui::SameLine( 0, ImGui::GetStyle().ItemSpacing.x + indentVal );
|
ImGui::SameLine( 0, ImGui::GetStyle().ItemSpacing.x + indentVal );
|
||||||
|
s_wasActive = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user