Switching active frame set by clicking on a frame.

This commit is contained in:
Bartosz Taudul 2018-10-21 15:46:02 +02:00
parent ec6e2dc0e1
commit 5280d6586b

View File

@ -1442,13 +1442,20 @@ bool View::DrawZoneFrames( const FrameData& frames )
prev = -1;
}
if( hover && !tooltipDisplayed )
if( hover )
{
ImGui::BeginTooltip();
ImGui::TextDisabled( "Frame set:" );
ImGui::SameLine();
ImGui::Text( "%s", frames.name == 0 ? "Frames" : m_worker.GetString( frames.name ) );
ImGui::EndTooltip();
if( !tooltipDisplayed )
{
ImGui::BeginTooltip();
ImGui::TextDisabled( "Frame set:" );
ImGui::SameLine();
ImGui::Text( "%s", frames.name == 0 ? "Frames" : m_worker.GetString( frames.name ) );
ImGui::EndTooltip();
}
if( ImGui::IsMouseClicked( 0 ) )
{
m_frames = &frames;
}
}
return hover;