2023-02-02 18:17:16 +02:00
|
|
|
/*
|
2023-02-12 18:49:41 +02:00
|
|
|
* BattleOptionsTab.h, part of VCMI engine
|
2023-02-02 18:17:16 +02:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
2023-02-12 18:29:23 +02:00
|
|
|
#include "../../gui/InterfaceObjectConfigurable.h"
|
2023-02-18 17:35:07 +02:00
|
|
|
|
|
|
|
class BattleInterface;
|
2023-02-02 18:17:16 +02:00
|
|
|
|
2023-02-12 18:49:41 +02:00
|
|
|
class BattleOptionsTab : public InterfaceObjectConfigurable
|
2023-02-02 18:17:16 +02:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
std::shared_ptr<CToggleGroup> animSpeeds;
|
|
|
|
std::vector<std::shared_ptr<CToggleButton>> toggles;
|
|
|
|
|
|
|
|
int getAnimSpeed() const;
|
2023-02-14 21:30:06 +02:00
|
|
|
int getQueueSizeId() const;
|
|
|
|
std::string getQueueSizeStringFromId(int value) const;
|
2023-02-12 14:51:57 +02:00
|
|
|
void viewGridChangedCallback(bool value, BattleInterface * parentBattleInterface = nullptr);
|
|
|
|
void movementShadowChangedCallback(bool value, BattleInterface * parentBattleInterface = nullptr);
|
|
|
|
void mouseShadowChangedCallback(bool value);
|
|
|
|
void animationSpeedChangedCallback(int value);
|
2023-02-15 23:38:41 +02:00
|
|
|
void showQueueChangedCallback(bool value, BattleInterface * parentBattleInterface = nullptr);
|
2023-02-14 21:30:06 +02:00
|
|
|
void queueSizeChangedCallback(int value);
|
2023-02-15 21:29:29 +02:00
|
|
|
void skipBattleIntroMusicChangedCallback(bool value);
|
2023-02-02 18:17:16 +02:00
|
|
|
public:
|
2023-02-12 18:49:41 +02:00
|
|
|
BattleOptionsTab(BattleInterface * owner = nullptr);
|
2023-02-02 18:17:16 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|