Properly filter available prefabs based on current map's tilesets

This commit is contained in:
Marcus Huderle
2022-09-09 20:09:28 -05:00
parent 4232410a79
commit 32cba33326
3 changed files with 23 additions and 6 deletions

View File

@@ -22,6 +22,7 @@ class Prefab
public:
void initPrefabUI(MetatileSelector *selector, QWidget *prefabWidget, QLabel *emptyPrefabLabel, Map *map);
void addPrefab(MetatileSelection selection, Map *map, QString name);
void updatePrefabUi(Map *map);
private:
MetatileSelector *selector;
@@ -29,7 +30,6 @@ private:
QLabel *emptyPrefabLabel;
QList<PrefabItem> items;
void loadPrefabs();
void updatePrefabUi(Map *map);
QList<PrefabItem> getPrefabsForTilesets(QString primaryTileset, QString secondaryTileset);
};