mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +00:00
Add frame info tooltip.
This commit is contained in:
parent
b725be87c7
commit
a353a7601d
@ -679,6 +679,13 @@ void View::DrawZones()
|
|||||||
const auto tsz = ImGui::CalcTextSize( buf );
|
const auto tsz = ImGui::CalcTextSize( buf );
|
||||||
const auto fsz = pxns * ftime;
|
const auto fsz = pxns * ftime;
|
||||||
|
|
||||||
|
if( hover && ImGui::IsMouseHoveringRect( wpos + ImVec2( ( fbegin - m_zvStart ) * pxns, 0 ), wpos + ImVec2( ( fend - m_zvStart ) * pxns, tsz.y ) ) )
|
||||||
|
{
|
||||||
|
ImGui::BeginTooltip();
|
||||||
|
ImGui::Text( buf );
|
||||||
|
ImGui::EndTooltip();
|
||||||
|
}
|
||||||
|
|
||||||
if( fbegin >= m_zvStart )
|
if( fbegin >= m_zvStart )
|
||||||
{
|
{
|
||||||
draw->AddLine( wpos + ImVec2( ( fbegin - m_zvStart ) * pxns, 0 ), wpos + ImVec2( ( fbegin - m_zvStart ) * pxns, h ), 0x22FFFFFF );
|
draw->AddLine( wpos + ImVec2( ( fbegin - m_zvStart ) * pxns, 0 ), wpos + ImVec2( ( fbegin - m_zvStart ) * pxns, h ), 0x22FFFFFF );
|
||||||
|
Loading…
Reference in New Issue
Block a user