major clean up and rework of minimap generator. it is now much faster and never skips to load an asset. it should not stall the process either.

UX improvements for dock widgets and minimap selector widget. The long requested ADT coord promt is now back.
This commit is contained in:
Skarn
2021-11-17 21:13:03 +03:00
parent 484fc38d82
commit 58c4d0fb02
26 changed files with 563 additions and 272 deletions

View File

@@ -1163,6 +1163,25 @@ void MapIndex::removeTile(const tile_index &tile)
changed = true;
}
unsigned MapIndex::getNumExistingTiles()
{
if (_n_existing_tiles >= 0)
return _n_existing_tiles;
_n_existing_tiles = 0;
for (int i = 0; i < 4096; ++i)
{
tile_index index(i / 64, i % 64);
if (hasTile(index))
{
_n_existing_tiles++;
}
}
return _n_existing_tiles;
}
void MapIndex::set_basename(const std::string &pBasename)
{
basename = pBasename;