mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-09 17:52:08 -10:00
24 lines
577 B
C++
24 lines
577 B
C++
#pragma once
|
|
|
|
#include "lab/dialogs/lab_dialog.h"
|
|
|
|
class Descriptions : public LabDialog {
|
|
void open(Button* caller) override;
|
|
|
|
void close() override {
|
|
if (dialogWindow != nullptr) {
|
|
dialogWindow->DeleteChildren();
|
|
dialogWindow = nullptr;
|
|
}
|
|
}
|
|
|
|
void update(LabMode newLabMode, int classIndex) override;
|
|
|
|
SCP_string getTitle() override { return "Class Description"; }
|
|
|
|
bool safeToOpen(LabMode labMode) override { return labMode == LabMode::Ship || labMode == LabMode::Weapon; }
|
|
|
|
private:
|
|
DialogWindow* dialogWindow = nullptr;
|
|
Text* descriptionText = nullptr;
|
|
}; |