mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-23 18:45:48 -04:00
Add a new insertion mode (can now insert tiles in a rectangle)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user