mirror of
https://github.com/wolfpld/tracy.git
synced 2024-12-02 09:44:35 +00:00
Add ghost zone label to ghost zone tooltips.
This commit is contained in:
parent
ad3cac8578
commit
f6663b187a
@ -3528,6 +3528,8 @@ int View::DrawGhostLevel( const Vector<GhostZone>& vec, bool hover, double pxns,
|
|||||||
if( hover && ImGui::IsMouseHoveringRect( wpos + ImVec2( px0, offset ), wpos + ImVec2( px1, offset + tsz.y ) ) )
|
if( hover && ImGui::IsMouseHoveringRect( wpos + ImVec2( px0, offset ), wpos + ImVec2( px1, offset + tsz.y ) ) )
|
||||||
{
|
{
|
||||||
ImGui::BeginTooltip();
|
ImGui::BeginTooltip();
|
||||||
|
TextDisabledUnformatted( ICON_FA_GHOST " Ghost zone" );
|
||||||
|
ImGui::Separator();
|
||||||
TextFocused( "Unknown frame:", symName );
|
TextFocused( "Unknown frame:", symName );
|
||||||
TextFocused( "Thread:", m_worker.GetThreadName( tid ) );
|
TextFocused( "Thread:", m_worker.GetThreadName( tid ) );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
@ -3585,6 +3587,8 @@ int View::DrawGhostLevel( const Vector<GhostZone>& vec, bool hover, double pxns,
|
|||||||
if( hover && ImGui::IsMouseHoveringRect( wpos + ImVec2( px0, foff ), wpos + ImVec2( px1, foff + tsz.y ) ) )
|
if( hover && ImGui::IsMouseHoveringRect( wpos + ImVec2( px0, foff ), wpos + ImVec2( px1, foff + tsz.y ) ) )
|
||||||
{
|
{
|
||||||
ImGui::BeginTooltip();
|
ImGui::BeginTooltip();
|
||||||
|
TextDisabledUnformatted( ICON_FA_GHOST " Ghost zone" );
|
||||||
|
ImGui::Separator();
|
||||||
ImGui::TextUnformatted( symName );
|
ImGui::TextUnformatted( symName );
|
||||||
if( isInline )
|
if( isInline )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user