Start new map dialog redesign

This commit is contained in:
GriffinR
2024-11-12 13:44:04 -05:00
parent 9d87ece663
commit d6a796e3b4
7 changed files with 806 additions and 692 deletions

View File

@@ -39,13 +39,7 @@ QString Map::mapConstantFromName(QString mapName, bool includePrefix) {
const QString prefix = includePrefix ? projectConfig.getIdentifier(ProjectIdentifier::define_map_prefix) : "";
QString withMapAndUppercase = prefix + nameWithUnderscores.toUpper();
static const QRegularExpression underscores("_+");
QString constantName = withMapAndUppercase.replace(underscores, "_");
// Handle special cases.
// SSTidal needs to be SS_TIDAL, rather than SSTIDAL
constantName = constantName.replace("SSTIDAL", "SS_TIDAL");
return constantName;
return withMapAndUppercase.replace(underscores, "_");
}
int Map::getWidth() const {