add live ship stats panel

This commit is contained in:
2026-06-07 21:07:19 +02:00
parent 37a70ea321
commit f097e9a25f
20 changed files with 723 additions and 45 deletions

View File

@@ -6,6 +6,7 @@
#include <QWidget>
#include "ShipLayout.h"
#include "ShipStatsCalculator.h"
struct GameConfig;
class QLabel;
@@ -21,7 +22,11 @@ public:
int level,
const std::vector<PlacedModule>& modules);
void refreshFromLive(const ShipStats& stats, float currentHp);
private:
void applyStats(const ShipStats& stats, const QString& hpText);
const GameConfig* m_config;
QLabel* m_hpLabel;