Display hovered tile coords and block in status bar

This commit is contained in:
Marcus Huderle
2018-03-04 00:09:34 -08:00
parent 470fc92fba
commit f81ab6994a
7 changed files with 52 additions and 8 deletions

11
map.cpp
View File

@@ -734,3 +734,14 @@ void Map::addEvent(Event *event) {
bool Map::hasUnsavedChanges() {
return !history.isSaved() || !isPersistedToFile;
}
void Map::hoveredTileChanged(int x, int y, int block) {
emit statusBarMessage(QString("X: %1, Y: %2, Block: 0x%3")
.arg(x)
.arg(y)
.arg(QString("%1").arg(block, 3, 16, QChar('0')).toUpper()));
}
void Map::clearHoveredTile() {
emit statusBarMessage(QString(""));
}