1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00
vcmi/mapeditor/playerparams.h

58 lines
1.1 KiB
C++
Raw Normal View History

2022-10-12 23:51:55 +02:00
/*
* playerparams.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
*
*/
2022-09-24 22:55:05 +02:00
#pragma once
2022-09-18 01:23:17 +02:00
#include <QWidget>
2023-05-24 01:05:59 +02:00
#include "../lib/mapping/CMapHeader.h"
2022-09-18 01:23:17 +02:00
#include "mapcontroller.h"
namespace Ui {
class PlayerParams;
}
class PlayerParams : public QWidget
{
Q_OBJECT
public:
explicit PlayerParams(MapController & controller, int playerId, QWidget *parent = nullptr);
~PlayerParams();
PlayerInfo playerInfo;
int playerColor;
2023-09-11 18:01:53 +02:00
void onTownPicked(const CGObjectInstance *);
2022-09-18 01:23:17 +02:00
private slots:
void on_radioHuman_toggled(bool checked);
void on_radioCpu_toggled(bool checked);
void on_mainTown_currentIndexChanged(int index);
2022-09-18 01:23:17 +02:00
void on_generateHero_stateChanged(int arg1);
void on_randomFaction_stateChanged(int arg1);
void allowedFactionsCheck(QListWidgetItem *);
2023-04-21 01:17:13 +02:00
void on_teamId_activated(int index);
void on_playerColorCombo_activated(int index);
2023-09-11 18:01:53 +02:00
void on_townSelect_clicked();
2022-09-18 01:23:17 +02:00
private:
Ui::PlayerParams *ui;
MapController & controller;
};