Add a new insertion mode (can now insert tiles in a rectangle)

This commit is contained in:
victorlevasseur
2014-09-04 18:54:40 +02:00
parent b0e02ca6a6
commit b09bfe9816
13 changed files with 1234 additions and 439 deletions
@@ -194,4 +194,16 @@ void TileMapObjectEditor::OnCloseButtonClicked(wxCloseEvent& event)
EndModal(0);
}
void TileMapObjectEditor::OnTileInsertionModeChanged(wxCommandEvent& event)
{
if(event.GetId() == MODE_SINGLE_TILE_TOOL_ID)
{
m_tileMapPanel->SetInsertionMode(TileMapPanel::PencilMode);
}
else if(event.GetId() == MODE_RECTANGLE_TILE_TOOL_ID)
{
m_tileMapPanel->SetInsertionMode(TileMapPanel::RectangleMode);
}
}
#endif