2023-02-02 17:17:16 +01:00
|
|
|
/*
|
2023-02-12 17:49:41 +01:00
|
|
|
* BattleOptionsTab.h, part of VCMI engine
|
2023-02-02 17:17:16 +01: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 17:29:23 +01:00
|
|
|
#include "../../gui/InterfaceObjectConfigurable.h"
|
2023-02-18 16:35:07 +01:00
|
|
|
|
|
|
|
class BattleInterface;
|
2023-02-02 17:17:16 +01:00
|
|
|
|
2023-02-12 17:49:41 +01:00
|
|
|
class BattleOptionsTab : public InterfaceObjectConfigurable
|
2023-02-02 17:17:16 +01:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
std::shared_ptr<CToggleGroup> animSpeeds;
|
|
|
|
std::vector<std::shared_ptr<CToggleButton>> toggles;
|
|
|
|
|
|
|
|
int getAnimSpeed() const;
|
2023-02-14 20:30:06 +01:00
|
|
|
int getQueueSizeId() const;
|
|
|
|
std::string getQueueSizeStringFromId(int value) const;
|
2023-03-04 00:33:16 +02:00
|
|
|
void viewGridChangedCallback(bool value, BattleInterface * parentBattleInterface);
|
|
|
|
void movementShadowChangedCallback(bool value, BattleInterface * parentBattleInterface);
|
2023-04-06 00:04:40 +03:00
|
|
|
void movementHighlightOnHoverChangedCallback(bool value, BattleInterface * parentBattleInterface);
|
2023-06-23 19:50:39 +03:00
|
|
|
void rangeLimitHighlightOnHoverChangedCallback(bool value, BattleInterface * parentBattleInterface);
|
2023-02-12 13:51:57 +01:00
|
|
|
void mouseShadowChangedCallback(bool value);
|
|
|
|
void animationSpeedChangedCallback(int value);
|
2023-03-04 00:33:16 +02:00
|
|
|
void showQueueChangedCallback(bool value, BattleInterface * parentBattleInterface);
|
|
|
|
void queueSizeChangedCallback(int value, BattleInterface * parentBattleInterface);
|
2023-02-15 20:29:29 +01:00
|
|
|
void skipBattleIntroMusicChangedCallback(bool value);
|
2023-07-17 23:25:16 +02:00
|
|
|
void showStickyHeroWindowsChangedCallback(bool value, BattleInterface * parentBattleInterface);
|
2024-07-19 19:43:22 +02:00
|
|
|
void showQuickSpellChangedCallback(bool value, BattleInterface * parentBattleInterface);
|
2023-08-19 17:23:55 +02:00
|
|
|
void enableAutocombatSpellsChangedCallback(bool value);
|
2024-01-27 01:16:55 +01:00
|
|
|
void endWithAutocombatChangedCallback(bool value);
|
2023-02-02 17:17:16 +01:00
|
|
|
public:
|
2023-02-12 17:49:41 +01:00
|
|
|
BattleOptionsTab(BattleInterface * owner = nullptr);
|
2023-02-02 17:17:16 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|