Change API game version to string
This commit is contained in:
parent
c0769a5e80
commit
f4ba4091ad
4 changed files with 8 additions and 3 deletions
|
@ -157,6 +157,7 @@ public:
|
|||
}
|
||||
void setBaseGameVersion(BaseGameVersion baseGameVersion);
|
||||
BaseGameVersion getBaseGameVersion();
|
||||
QString getBaseGameVersionString();
|
||||
void setRecentMap(const QString &map);
|
||||
QString getRecentMap();
|
||||
void setEncounterJsonActive(bool active);
|
||||
|
|
|
@ -172,7 +172,7 @@ public:
|
|||
Q_INVOKABLE void setMetatileTiles(int metatileId, int tileId, bool xflip, bool yflip, int palette, int tileStart = 0, int tileEnd = -1, bool forceRedraw = true);
|
||||
Q_INVOKABLE int getNumTilesInMetatile();
|
||||
Q_INVOKABLE int getNumMetatileLayers();
|
||||
Q_INVOKABLE int getBaseGameVersion();
|
||||
Q_INVOKABLE QString getBaseGameVersion();
|
||||
Q_INVOKABLE QList<QString> getCustomScripts();
|
||||
Q_INVOKABLE int getMainTab();
|
||||
Q_INVOKABLE void setMainTab(int index);
|
||||
|
|
|
@ -654,6 +654,10 @@ BaseGameVersion ProjectConfig::getBaseGameVersion() {
|
|||
return this->baseGameVersion;
|
||||
}
|
||||
|
||||
QString ProjectConfig::getBaseGameVersionString() {
|
||||
return baseGameVersionMap.value(this->baseGameVersion);
|
||||
}
|
||||
|
||||
void ProjectConfig::setRecentMap(const QString &map) {
|
||||
this->recentMap = map;
|
||||
this->save();
|
||||
|
|
|
@ -1014,8 +1014,8 @@ int MainWindow::getNumMetatileLayers() {
|
|||
return projectConfig.getTripleLayerMetatilesEnabled() ? 3 : 2;
|
||||
}
|
||||
|
||||
int MainWindow::getBaseGameVersion() {
|
||||
return projectConfig.getBaseGameVersion();
|
||||
QString MainWindow::getBaseGameVersion() {
|
||||
return projectConfig.getBaseGameVersionString();
|
||||
}
|
||||
|
||||
QList<QString> MainWindow::getCustomScripts() {
|
||||
|
|
Loading…
Reference in a new issue