Remove dedicated "go to frame" button.

This commit is contained in:
Bartosz Taudul 2020-07-12 00:18:44 +02:00
parent a7a36c08cb
commit 863f37e1bc
2 changed files with 3 additions and 8 deletions

2
NEWS
View File

@ -21,6 +21,8 @@ v0.7.1 (xxxx-xx-xx)
- Zones in find zones menu can be now grouped by zone name. - Zones in find zones menu can be now grouped by zone name.
- Vulkan and D3D12 GPU contexts can be now calibrated. - Vulkan and D3D12 GPU contexts can be now calibrated.
- Added CSV export utility. - Added CSV export utility.
- "Go to frame" popup no longer has a dedicated button. To show it, click on
the frame counter.
v0.7 (2020-06-11) v0.7 (2020-06-11)
----------------- -----------------

View File

@ -616,6 +616,7 @@ bool View::DrawImpl()
{ {
ImGui::PopStyleColor(); ImGui::PopStyleColor();
} }
if( ImGui::IsItemClicked() ) ImGui::OpenPopup( "GoToFramePopup" );
} }
ImGui::SameLine(); ImGui::SameLine();
if( ImGui::SmallButton( " " ICON_FA_CARET_RIGHT " " ) ) ZoomToNextFrame(); if( ImGui::SmallButton( " " ICON_FA_CARET_RIGHT " " ) ) ZoomToNextFrame();
@ -639,14 +640,6 @@ bool View::DrawImpl()
} }
ImGui::EndCombo(); ImGui::EndCombo();
} }
ImGui::SameLine();
if( ImGui::Button( ICON_FA_CROSSHAIRS ) ) ImGui::OpenPopup( "GoToFramePopup" );
if( ImGui::IsItemHovered() )
{
ImGui::BeginTooltip();
ImGui::TextUnformatted( "Go to frame" );
ImGui::EndTooltip();
}
if( ImGui::BeginPopup( "GoToFramePopup" ) ) if( ImGui::BeginPopup( "GoToFramePopup" ) )
{ {
static int frameNum = 1; static int frameNum = 1;