BattleOptionsTab.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * BattleOptionsTab.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. #include "../../gui/InterfaceObjectConfigurable.h"
  12. class BattleInterface;
  13. class BattleOptionsTab : public InterfaceObjectConfigurable
  14. {
  15. private:
  16. std::shared_ptr<CToggleGroup> animSpeeds;
  17. std::vector<std::shared_ptr<CToggleButton>> toggles;
  18. int getAnimSpeed() const;
  19. int getQueueSizeId() const;
  20. std::string getQueueSizeStringFromId(int value) const;
  21. void viewGridChangedCallback(bool value, BattleInterface * parentBattleInterface);
  22. void movementShadowChangedCallback(bool value, BattleInterface * parentBattleInterface);
  23. void movementHighlightOnHoverChangedCallback(bool value, BattleInterface * parentBattleInterface);
  24. void rangeLimitHighlightOnHoverChangedCallback(bool value, BattleInterface * parentBattleInterface);
  25. void mouseShadowChangedCallback(bool value);
  26. void animationSpeedChangedCallback(int value);
  27. void showQueueChangedCallback(bool value, BattleInterface * parentBattleInterface);
  28. void queueSizeChangedCallback(int value, BattleInterface * parentBattleInterface);
  29. void skipBattleIntroMusicChangedCallback(bool value);
  30. void showStickyHeroWindowsChangedCallback(bool value, BattleInterface * parentBattleInterface);
  31. void showQuickSpellChangedCallback(bool value, BattleInterface * parentBattleInterface);
  32. void enableAutocombatSpellsChangedCallback(bool value);
  33. void endWithAutocombatChangedCallback(bool value);
  34. void showHealthBarCallback(bool value, BattleInterface * parentBattleInterface);
  35. public:
  36. BattleOptionsTab(BattleInterface * owner = nullptr);
  37. };