2022-09-04 18:16:36 +02:00
|
|
|
#ifndef PLAYERSETTINGS_H
|
|
|
|
#define PLAYERSETTINGS_H
|
|
|
|
|
2022-09-04 20:01:49 +02:00
|
|
|
#include "StdInc.h"
|
2022-09-04 18:16:36 +02:00
|
|
|
#include <QDialog>
|
2022-09-04 20:01:49 +02:00
|
|
|
#include "playerparams.h"
|
2022-09-04 18:16:36 +02:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class PlayerSettings;
|
|
|
|
}
|
|
|
|
|
|
|
|
class PlayerSettings : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2022-09-04 20:01:49 +02:00
|
|
|
explicit PlayerSettings(CMapHeader & mapHeader, QWidget *parent = nullptr);
|
2022-09-04 18:16:36 +02:00
|
|
|
~PlayerSettings();
|
|
|
|
|
2022-09-04 20:01:49 +02:00
|
|
|
private slots:
|
|
|
|
|
|
|
|
void on_playersCount_currentIndexChanged(int index);
|
|
|
|
|
2022-09-04 20:29:56 +02:00
|
|
|
void on_pushButton_clicked();
|
|
|
|
|
2022-09-04 18:16:36 +02:00
|
|
|
private:
|
|
|
|
Ui::PlayerSettings *ui;
|
2022-09-04 20:01:49 +02:00
|
|
|
|
|
|
|
std::vector<PlayerParams*> paramWidgets;
|
|
|
|
|
|
|
|
CMapHeader & header;
|
2022-09-04 18:16:36 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PLAYERSETTINGS_H
|