Show message in find zone window when no zones were collected.

This commit is contained in:
Bartosz Taudul
2024-09-28 02:05:30 +02:00
parent 796f09ef23
commit 429de331d6

View File

@@ -275,6 +275,16 @@ void View::DrawFindZone()
ImGui::End();
return;
}
if( m_worker.GetZoneCount() == 0 )
{
ImGui::PushFont( m_bigFont );
ImGui::Dummy( ImVec2( 0, ( ImGui::GetContentRegionAvail().y - ImGui::GetTextLineHeight() * 2 ) * 0.5f ) );
TextCentered( ICON_FA_CROW );
TextCentered( "No zones were collected" );
ImGui::PopFont();
ImGui::End();
return;
}
bool findClicked = false;