state the debris scrap value with the item icon, not the word

This commit is contained in:
2026-08-12 21:21:47 +02:00
parent 28656bea7e
commit 7e670fc01c
12 changed files with 126 additions and 19 deletions

View File

@@ -2,6 +2,8 @@
#include <vector>
#include <QPixmap>
#include "entt/entity/entity.hpp"
#include "SelectionContent.h"
@@ -28,4 +30,8 @@ protected:
private:
std::vector<entt::entity> m_debris;
StatRow* m_scrapRow;
// The bare scrap icon the row states its amount with, or null where there is no icon
// file and the row names the item in words instead (REQ-UI-DEBRIS-PANEL). Taken once:
// it depends on the card's font, not on the value.
QPixmap m_scrapIcon;
};