split the selection panel into one card per kind of selection
This commit is contained in:
16
src/ui/selection/SelectionNames.cpp
Normal file
16
src/ui/selection/SelectionNames.cpp
Normal 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)));
|
||||
}
|
||||
Reference in New Issue
Block a user