mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-28 00:42:19 -07:00
- Add CommandZone and CommandZoneLogic for commander - Add CommanderTaxCounter - Add counter active state protocol (show/hide tax counters) - Add "Enable Command Zone" option in game creation dialogs - Add context menu actions for command zone operations Took 9 minutes Took 11 minutes
55 lines
1.1 KiB
C++
55 lines
1.1 KiB
C++
/**
|
|
* @file dlg_local_game_options.h
|
|
* @ingroup RoomDialogs
|
|
* @brief Dialog for configuring local game options.
|
|
*
|
|
* Provides a user interface for setting up local games with configurable
|
|
* number of players and starting life total.
|
|
*/
|
|
|
|
#ifndef DLG_LOCAL_GAME_OPTIONS_H
|
|
#define DLG_LOCAL_GAME_OPTIONS_H
|
|
|
|
#include <QDialog>
|
|
|
|
struct LocalGameOptions
|
|
{
|
|
int numberPlayers = 1;
|
|
int startingLifeTotal = 20;
|
|
bool enableCommandZone = false;
|
|
};
|
|
|
|
class QCheckBox;
|
|
class QDialogButtonBox;
|
|
class QGroupBox;
|
|
class QLabel;
|
|
class QSpinBox;
|
|
|
|
class DlgLocalGameOptions : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit DlgLocalGameOptions(QWidget *parent = nullptr);
|
|
|
|
[[nodiscard]] LocalGameOptions getOptions() const;
|
|
|
|
private slots:
|
|
void actOK();
|
|
|
|
private:
|
|
QGroupBox *generalGroupBox;
|
|
QGroupBox *gameSetupOptionsGroupBox;
|
|
|
|
QLabel *numberPlayersLabel;
|
|
QSpinBox *numberPlayersEdit;
|
|
|
|
QLabel *startingLifeTotalLabel;
|
|
QSpinBox *startingLifeTotalEdit;
|
|
|
|
QCheckBox *enableCommandZoneCheckBox;
|
|
QCheckBox *rememberSettingsCheckBox;
|
|
|
|
QDialogButtonBox *buttonBox;
|
|
};
|
|
|
|
#endif // DLG_LOCAL_GAME_OPTIONS_H
|