split the selection panel into one card per kind of selection

This commit is contained in:
2026-08-07 18:38:55 +02:00
parent cc0ef856e3
commit 2289277e12
60 changed files with 3014 additions and 1559 deletions

View File

@@ -0,0 +1,16 @@
#include "SelectionNames.h"
#include <QObject>
#include "DisplayName.h"
QString getBuildingTypeName(BuildingType type)
{
// "Hq" would read as a word rather than an acronym through the generic conversion,
// and the player's own base deserves naming as such.
if (type == BuildingType::Hq)
{
return QObject::tr("Player HQ");
}
return QString::fromStdString(toDisplayName(buildingTypeId(type)));
}