give the selection cards their own parts instead of label blobs

This commit is contained in:
2026-08-07 18:43:23 +02:00
parent 2289277e12
commit 075e44d295
54 changed files with 1505 additions and 533 deletions

View File

@@ -1,8 +1,6 @@
#include "StorageContent.h"
#include "Building.h"
#include "BuildingTarget.h"
#include "SelectionNames.h"
StorageContent::StorageContent(const SelectionContext& context,
const SelectionRequest& request, QWidget* parent)
@@ -10,20 +8,10 @@ StorageContent::StorageContent(const SelectionContext& context,
{
}
void StorageContent::refreshConfiguration()
{
const BuildingTarget target = resolveBuildingTarget(getContext(), getBuildingId());
if (!target.isValid())
{
return;
}
setBuildingIdentity(target.type, getBuildingTypeName(target.type));
}
BufferedBuildingContent::CycleInfo StorageContent::getCycleInfo(
const Building& /*building*/) const
const BuildingTarget& /*target*/) const
{
// No recipe, no cycle: the card shows the output buffer alone, with no per-cycle
// denominators to show it against (REQ-BLD-SALVAGE-BAY).
// denominators and no production progress (REQ-BLD-SALVAGE-BAY).
return CycleInfo();
}