mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 04:23:51 +00:00
Show preview of lock source locations in options window.
This commit is contained in:
parent
8f0c5e867e
commit
e2be45c0ba
@ -8713,15 +8713,19 @@ void View::DrawOptions()
|
|||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
}
|
}
|
||||||
ImGui::TextDisabled( "(%s) %s:%i", RealToString( l.second->timeline.size() ), fileName, sl.line );
|
ImGui::TextDisabled( "(%s) %s:%i", RealToString( l.second->timeline.size() ), fileName, sl.line );
|
||||||
if( ImGui::IsItemClicked( 1 ) )
|
if( ImGui::IsItemHovered() )
|
||||||
{
|
{
|
||||||
if( SourceFileValid( fileName, m_worker.GetCaptureTime(), *this, m_worker ) )
|
DrawSourceTooltip( fileName, sl.line, 1, 1 );
|
||||||
|
if( ImGui::IsItemClicked( 1 ) )
|
||||||
{
|
{
|
||||||
ViewSource( fileName, sl.line );
|
if( SourceFileValid( fileName, m_worker.GetCaptureTime(), *this, m_worker ) )
|
||||||
}
|
{
|
||||||
else
|
ViewSource( fileName, sl.line );
|
||||||
{
|
}
|
||||||
m_optionsLockBuzzAnim.Enable( l.second->srcloc, 0.5f );
|
else
|
||||||
|
{
|
||||||
|
m_optionsLockBuzzAnim.Enable( l.second->srcloc, 0.5f );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -8787,15 +8791,19 @@ void View::DrawOptions()
|
|||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
}
|
}
|
||||||
ImGui::TextDisabled( "(%s) %s:%i", RealToString( l.second->timeline.size() ), fileName, sl.line );
|
ImGui::TextDisabled( "(%s) %s:%i", RealToString( l.second->timeline.size() ), fileName, sl.line );
|
||||||
if( ImGui::IsItemClicked( 1 ) )
|
if( ImGui::IsItemHovered() )
|
||||||
{
|
{
|
||||||
if( SourceFileValid( fileName, m_worker.GetCaptureTime(), *this, m_worker ) )
|
DrawSourceTooltip( fileName, sl.line, 1, 1 );
|
||||||
|
if( ImGui::IsItemClicked( 1 ) )
|
||||||
{
|
{
|
||||||
ViewSource( fileName, sl.line );
|
if( SourceFileValid( fileName, m_worker.GetCaptureTime(), *this, m_worker ) )
|
||||||
}
|
{
|
||||||
else
|
ViewSource( fileName, sl.line );
|
||||||
{
|
}
|
||||||
m_optionsLockBuzzAnim.Enable( l.second->srcloc, 0.5f );
|
else
|
||||||
|
{
|
||||||
|
m_optionsLockBuzzAnim.Enable( l.second->srcloc, 0.5f );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -8861,15 +8869,19 @@ void View::DrawOptions()
|
|||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
}
|
}
|
||||||
ImGui::TextDisabled( "(%s) %s:%i", RealToString( l.second->timeline.size() ), fileName, sl.line );
|
ImGui::TextDisabled( "(%s) %s:%i", RealToString( l.second->timeline.size() ), fileName, sl.line );
|
||||||
if( ImGui::IsItemClicked( 1 ) )
|
if( ImGui::IsItemHovered() )
|
||||||
{
|
{
|
||||||
if( SourceFileValid( fileName, m_worker.GetCaptureTime(), *this, m_worker ) )
|
DrawSourceTooltip( fileName, sl.line, 1, 1 );
|
||||||
|
if( ImGui::IsItemClicked( 1 ) )
|
||||||
{
|
{
|
||||||
ViewSource( fileName, sl.line );
|
if( SourceFileValid( fileName, m_worker.GetCaptureTime(), *this, m_worker ) )
|
||||||
}
|
{
|
||||||
else
|
ViewSource( fileName, sl.line );
|
||||||
{
|
}
|
||||||
m_optionsLockBuzzAnim.Enable( l.second->srcloc, 0.5f );
|
else
|
||||||
|
{
|
||||||
|
m_optionsLockBuzzAnim.Enable( l.second->srcloc, 0.5f );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user