mirror of
https://github.com/huderlem/porymap.git
synced 2026-11-10 19:08:22 -06:00
Read/write MAPSEC values using the region map json
This commit is contained in:
@@ -836,7 +836,7 @@ QString MainWindow::getLocation() {
|
||||
void MainWindow::setLocation(QString location) {
|
||||
if (!this->ui || !this->editor || !this->editor->project)
|
||||
return;
|
||||
if (!this->editor->project->mapSectionNameToValue.contains(location)) {
|
||||
if (!this->editor->project->mapSectionIdNames.contains(location)) {
|
||||
logError(QString("Unknown location '%1'").arg(location));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -282,7 +282,7 @@ QList<QString> ScriptUtility::getSongNames() {
|
||||
QList<QString> ScriptUtility::getLocationNames() {
|
||||
if (!window || !window->editor || !window->editor->project)
|
||||
return QList<QString>();
|
||||
return window->editor->project->mapSectionNameToValue.keys();
|
||||
return window->editor->project->mapSectionIdNames;
|
||||
}
|
||||
|
||||
QList<QString> ScriptUtility::getWeatherNames() {
|
||||
|
||||
Reference in New Issue
Block a user