diff --git a/editor/src/CenterGrid.hpp b/editor/src/CenterGrid.hpp index 4c8829332aec1269f9729e806091c9cde3160fb5..f1dcbbc9ed6f164e9e7eee9fa4ffbf258d4ef0e6 100644 --- a/editor/src/CenterGrid.hpp +++ b/editor/src/CenterGrid.hpp @@ -128,8 +128,9 @@ class CenterGrid : public QWidget */ std::vector<int> m_tileIDList = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, - 96, 97, 98, 99, 100, 101, 128, 129, 130, 131, 132, 133, 160, 161, 162, - 163, 164, 165, 192, 193, 194, 195, 201, 224, 225, 226, 227, 232, 233}; + 96, 97, 98, 99, 100, 101, 102, 103, 104, 128, 129, 130, 131, 132, 133, + 134, 135, 136, 160, 161, 162, 163, 164, 165, 166, 167, 168, 192, 193, 194, + 195, 198, 199, 201, 224, 225, 226, 227, 232, 233}; /** * @brief List of all spriteIDs that are mobs diff --git a/editor/src/MainWindow.cpp b/editor/src/MainWindow.cpp index 2f2d5cc8b4806fcfd6170618d5f857e4a1f2a22a..c385a646a3844f4215940d920f8312b8988e7da3 100644 --- a/editor/src/MainWindow.cpp +++ b/editor/src/MainWindow.cpp @@ -118,8 +118,19 @@ MainWindow::MainWindow(DialogSelection selected, const std::filesystem::path &pa int x = gameObject.position.x; int y = gameObject.position.y; int tileID = gameObject.id; - m_centerGrid->setCurrentSprite(m_leftWidget->getPixmapByIndex(tileID), tileID); - m_centerGrid->onTileClicked(x, y); + switch (tileID) + { + case 0: + m_centerGrid->setCurrentSprite(m_leftWidget->getPixmapByIndex(22), 22); + break; + case 1: + m_centerGrid->setCurrentSprite(m_leftWidget->getPixmapByIndex(86), 86); + break; + case 2: + m_centerGrid->setCurrentSprite(m_leftWidget->getPixmapByIndex(86), 146); + break; + } + m_centerGrid->onTileClicked(x,y); } } }