mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Add icon to "go to frame" button.
This commit is contained in:
parent
eed849c589
commit
38ebc2e989
@ -9070,7 +9070,11 @@ void View::DrawGoToFrame()
|
|||||||
ImGui::Begin( "Go to frame", &m_goToFrame, ImGuiWindowFlags_AlwaysAutoResize );
|
ImGui::Begin( "Go to frame", &m_goToFrame, ImGuiWindowFlags_AlwaysAutoResize );
|
||||||
ImGui::InputInt( "Frame", &frameNum );
|
ImGui::InputInt( "Frame", &frameNum );
|
||||||
frameNum = std::min( std::max( frameNum, 1 ), int( numFrames ) );
|
frameNum = std::min( std::max( frameNum, 1 ), int( numFrames ) );
|
||||||
|
#ifdef TRACY_EXTENDED_FONT
|
||||||
|
if( ImGui::Button( ICON_FA_CROSSHAIRS " Go to" ) )
|
||||||
|
#else
|
||||||
if( ImGui::Button( "Go to" ) )
|
if( ImGui::Button( "Go to" ) )
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
ZoomToRange( m_worker.GetFrameBegin( *m_frames, frameNum - frameOffset ), m_worker.GetFrameEnd( *m_frames, frameNum - frameOffset ) );
|
ZoomToRange( m_worker.GetFrameBegin( *m_frames, frameNum - frameOffset ), m_worker.GetFrameEnd( *m_frames, frameNum - frameOffset ) );
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user