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

43 lines
1.6 KiB
C++
Raw Normal View History

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;
int getQueueSizeId() const;
std::string getQueueSizeStringFromId(int value) const;
void viewGridChangedCallback(bool value, BattleInterface * parentBattleInterface);
void movementShadowChangedCallback(bool value, BattleInterface * parentBattleInterface);
void movementHighlightOnHoverChangedCallback(bool value, BattleInterface * parentBattleInterface);
void rangeLimitHighlightOnHoverChangedCallback(bool value, BattleInterface * parentBattleInterface);
void mouseShadowChangedCallback(bool value);
void animationSpeedChangedCallback(int value);
void showQueueChangedCallback(bool value, BattleInterface * parentBattleInterface);
void queueSizeChangedCallback(int value, BattleInterface * parentBattleInterface);
void skipBattleIntroMusicChangedCallback(bool value);
void showStickyHeroWindowsChangedCallback(bool value, BattleInterface * parentBattleInterface);
2024-07-19 19:43:22 +02:00
void showQuickSpellChangedCallback(bool value, BattleInterface * parentBattleInterface);
void enableAutocombatSpellsChangedCallback(bool value);
2024-01-27 02:16:55 +02:00
void endWithAutocombatChangedCallback(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
};