Rename UI "Blocks" labels to "Building Blocks"

This commit is contained in:
2026-07-12 21:17:10 +02:00
parent 271855781c
commit 69f655d179
3 changed files with 5 additions and 5 deletions

View File

@@ -239,7 +239,7 @@ void BlueprintPanel::rebuildButtons()
{ {
const Blueprint& bp = m_blueprints[static_cast<std::size_t>(i)]; const Blueprint& bp = m_blueprints[static_cast<std::size_t>(i)];
const int cost = computeBlueprintCost(bp); const int cost = computeBlueprintCost(bp);
const QString label = bp.name + "\n" + tr("%1 Blocks").arg(cost); const QString label = bp.name + "\n" + tr("%1 Building Blocks").arg(cost);
QWidget* row = new QWidget(m_buttonsContainer); QWidget* row = new QWidget(m_buttonsContainer);
QHBoxLayout* rowLayout = new QHBoxLayout(row); QHBoxLayout* rowLayout = new QHBoxLayout(row);

View File

@@ -38,7 +38,7 @@ BuildButtonGrid::BuildButtonGrid(const GameConfig* config, QWidget* parent)
m_costs[def.type] = def.cost; m_costs[def.type] = def.cost;
const QString label = QString::fromStdString(toDisplayName(def.id)) const QString label = QString::fromStdString(toDisplayName(def.id))
+ "\n" + tr("%1 Blocks").arg(def.cost); + "\n" + tr("%1 Building Blocks").arg(def.cost);
QPushButton* btn = new QPushButton(label, this); QPushButton* btn = new QPushButton(label, this);
btn->setCheckable(true); btn->setCheckable(true);
btn->setFixedHeight(48); btn->setFixedHeight(48);

View File

@@ -25,7 +25,7 @@ HeaderBar::HeaderBar(QWidget* parent)
layout->setSpacing(8); layout->setSpacing(8);
m_timeLabel = new QLabel("00:00", this); m_timeLabel = new QLabel("00:00", this);
m_blocksLabel = new QLabel(tr("Blocks: 0"), this); m_blocksLabel = new QLabel(tr("Building Blocks: 0"), this);
m_artifactsLabel = new QLabel(tr("Artifacts: 0/?"), this); m_artifactsLabel = new QLabel(tr("Artifacts: 0/?"), this);
m_bossLabel = new QLabel(tr("Boss Wave #1 Next boss: 5:00"), this); m_bossLabel = new QLabel(tr("Boss Wave #1 Next boss: 5:00"), this);
layout->addWidget(m_timeLabel); layout->addWidget(m_timeLabel);
@@ -81,7 +81,7 @@ void HeaderBar::handleEvent(std::shared_ptr<const TickAdvancedEvent> event)
void HeaderBar::handleEvent(std::shared_ptr<const BuildingBlocksChangedEvent> event) void HeaderBar::handleEvent(std::shared_ptr<const BuildingBlocksChangedEvent> event)
{ {
m_blocks = event->blocks; m_blocks = event->blocks;
m_blocksLabel->setText(tr("Blocks: %1").arg(event->blocks)); m_blocksLabel->setText(tr("Building Blocks: %1").arg(event->blocks));
updateExpandButton(); updateExpandButton();
} }
@@ -93,7 +93,7 @@ void HeaderBar::handleEvent(std::shared_ptr<const ExpansionCostChangedEvent> eve
void HeaderBar::updateExpandButton() void HeaderBar::updateExpandButton()
{ {
m_expandButton->setText(tr("Expand: %1 Blocks").arg(m_expansionCost)); m_expandButton->setText(tr("Expand: %1 Building Blocks").arg(m_expansionCost));
m_expandButton->setEnabled(m_blocks >= m_expansionCost); m_expandButton->setEnabled(m_blocks >= m_expansionCost);
} }