1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-12 10:03:53 +02:00
vcmi/client/windows/settings/BattleOptionsWindow.h

31 lines
900 B
C
Raw Normal View History

2023-02-02 18:17:16 +02:00
/*
* BattleOptionsWindow.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
*
*/
#pragma once
2023-02-12 18:29:23 +02:00
#include "../../gui/InterfaceObjectConfigurable.h"
#include "../../battle/BattleInterface.h"
2023-02-02 18:17:16 +02:00
class BattleOptionsWindow : public InterfaceObjectConfigurable
{
private:
std::shared_ptr<CToggleGroup> animSpeeds;
std::vector<std::shared_ptr<CToggleButton>> toggles;
int getAnimSpeed() const;
void viewGridChangedCallback(bool value, BattleInterface * parentBattleInterface = nullptr);
void movementShadowChangedCallback(bool value, BattleInterface * parentBattleInterface = nullptr);
void mouseShadowChangedCallback(bool value);
void animationSpeedChangedCallback(int value);
2023-02-02 18:17:16 +02:00
public:
BattleOptionsWindow(BattleInterface * owner = nullptr);
};