Add path drawing to the API

This commit is contained in:
GriffinR
2022-10-11 10:34:09 -04:00
committed by Marcus Huderle
parent 2fa2fc52e8
commit 385c17fd23
4 changed files with 52 additions and 0 deletions

View File

@@ -212,3 +212,8 @@ void MapView::addMetatileImage(int x, int y, int metatileId, bool setTransparenc
if (this->getOverlay(layer)->addImage(x, y, image))
this->scene()->update();
}
void MapView::addPath(QList<int> x, QList<int> y, QString color, int layer) {
if (this->getOverlay(layer)->addPath(x, y, color))
this->scene()->update();
}