Add get/setMetatileLabel to API

This commit is contained in:
GriffinR
2021-11-23 12:58:04 -05:00
committed by huderlem
parent 9cf0575914
commit 67af7e52da
4 changed files with 60 additions and 8 deletions

View File

@@ -112,6 +112,8 @@ public:
Q_INVOKABLE void setMetatileLayerOrder(QList<int> order);
Q_INVOKABLE QList<float> getMetatileLayerOpacity();
Q_INVOKABLE void setMetatileLayerOpacity(QList<float> order);
Q_INVOKABLE QString getMetatileLabel(int metatileId);
Q_INVOKABLE void setMetatileLabel(int metatileId, QString label);
private slots:
void on_action_Open_Project_triggered();

View File

@@ -41,6 +41,8 @@ public:
void updateMap(Map *map);
void updateTilesets(QString primaryTilsetLabel, QString secondaryTilesetLabel);
bool selectMetatile(uint16_t metatileId);
uint16_t getSelectedMetatile();
void setMetatileLabel(QString label);
QObjectList shortcutableObjects() const;