mirror of
https://github.com/wolfpld/tracy
synced 2026-01-19 04:52:09 +00:00
Add animated waiting dots in place of ellipsis in call stack window.
This commit is contained in:
@@ -14,6 +14,8 @@
|
|||||||
namespace tracy
|
namespace tracy
|
||||||
{
|
{
|
||||||
|
|
||||||
|
extern double s_time;
|
||||||
|
|
||||||
void View::DrawCallstackWindow()
|
void View::DrawCallstackWindow()
|
||||||
{
|
{
|
||||||
bool show = true;
|
bool show = true;
|
||||||
@@ -244,8 +246,14 @@ void View::DrawCallstackTable( uint32_t callstack, bool globalEntriesButton )
|
|||||||
if( it != m_callstackDesc.end() )
|
if( it != m_callstackDesc.end() )
|
||||||
{
|
{
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::TextUnformatted( it->second.c_str() );
|
if( strcmp( it->second.c_str(), "…" ) == 0 )
|
||||||
if( strcmp( it->second.c_str(), "…" ) == 0 ) m_wasActive = true;
|
{
|
||||||
|
DrawWaitingDots( s_time, true, true );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ImGui::TextUnformatted( it->second.c_str() );
|
||||||
|
}
|
||||||
if( clicked ) it->second = "…";
|
if( clicked ) it->second = "…";
|
||||||
}
|
}
|
||||||
else if( clicked )
|
else if( clicked )
|
||||||
|
|||||||
Reference in New Issue
Block a user