mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-27 02:56:17 -05:00
Properly filter available prefabs based on current map's tilesets
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user