Support new map layouts structure

This commit is contained in:
Marcus Huderle
2018-06-20 17:43:20 -05:00
parent 39abd40ee0
commit a2b42de541
7 changed files with 339 additions and 426 deletions

View File

@@ -285,8 +285,8 @@ void MainWindow::on_checkBox_ShowLocation_clicked(bool checked)
void MainWindow::loadDataStructures() {
Project *project = editor->project;
project->readMapAttributesTable();
project->readAllMapAttributes();
project->readMapLayoutsTable();
project->readAllMapLayouts();
project->readItemNames();
project->readFlagNames();
project->readVarNames();
@@ -761,6 +761,7 @@ void MainWindow::onLoadMapRequested(QString mapName, QString fromMapName) {
}
void MainWindow::onMapChanged(Map *map) {
map->layout->has_unsaved_changes = true;
updateMapList();
}