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,7 +1442,9 @@ bool View::DrawZoneFrames( const FrameData& frames )
prev = -1;
}
if( hover && !tooltipDisplayed )
if( hover )
{
if( !tooltipDisplayed )
{
ImGui::BeginTooltip();
ImGui::TextDisabled( "Frame set:" );
@ -1450,6 +1452,11 @@ bool View::DrawZoneFrames( const FrameData& frames )
ImGui::Text( "%s", frames.name == 0 ? "Frames" : m_worker.GetString( frames.name ) );
ImGui::EndTooltip();
}
if( ImGui::IsMouseClicked( 0 ) )
{
m_frames = &frames;
}
}
return hover;
}