2023-09-07 20:19:31 +02:00
|
|
|
/*
|
|
|
|
* victoryconditions.h, part of VCMI engine
|
|
|
|
*
|
|
|
|
* Authors: listed in file AUTHORS in main folder
|
|
|
|
*
|
|
|
|
* License: GNU General Public License v2.0 or later
|
|
|
|
* Full text of license available in license.txt file, in main folder
|
|
|
|
*
|
|
|
|
*/
|
2023-09-09 11:03:19 +02:00
|
|
|
#pragma once
|
2023-09-05 01:26:38 +02:00
|
|
|
|
|
|
|
#include "abstractsettings.h"
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class VictoryConditions;
|
|
|
|
}
|
|
|
|
|
|
|
|
class VictoryConditions : public AbstractSettings
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit VictoryConditions(QWidget *parent = nullptr);
|
|
|
|
~VictoryConditions();
|
|
|
|
|
2023-09-11 19:16:24 +02:00
|
|
|
void initialize(MapController & map) override;
|
|
|
|
void update() override;
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void onObjectSelect();
|
|
|
|
void onObjectPicked(const CGObjectInstance *);
|
2023-09-05 01:26:38 +02:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_victoryComboBox_currentIndexChanged(int index);
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::VictoryConditions *ui;
|
|
|
|
|
|
|
|
QComboBox * victoryTypeWidget = nullptr;
|
|
|
|
QComboBox * victorySelectWidget = nullptr;
|
|
|
|
QLineEdit * victoryValueWidget = nullptr;
|
2023-09-11 19:16:24 +02:00
|
|
|
QToolButton * pickObjectButton = nullptr;
|
2023-09-05 01:26:38 +02:00
|
|
|
};
|