Always show shipyard layout preview and Configure button, disabled until schematic selected
This commit is contained in:
@@ -20,6 +20,10 @@ public:
|
||||
const std::vector<ModuleDef>* modules);
|
||||
void clear();
|
||||
|
||||
// Shows an empty placeholder box (no ship layout) so the preview stays
|
||||
// visible while no schematic is selected (REQ-MOD-UI-PREVIEW).
|
||||
void showPlaceholder();
|
||||
|
||||
protected:
|
||||
void paintEvent(QPaintEvent* event) override;
|
||||
|
||||
@@ -35,4 +39,5 @@ private:
|
||||
const std::vector<ModuleDef>* m_modules;
|
||||
int m_rows;
|
||||
int m_cols;
|
||||
bool m_placeholder = false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user