BattleOptionsWindow.h 646 B

123456789101112131415161718192021222324252627
  1. /*
  2. * BattleOptionsWindow.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. #include "battle/BattleInterface.h"
  13. class BattleOptionsWindow : public InterfaceObjectConfigurable
  14. {
  15. private:
  16. std::shared_ptr<CToggleGroup> animSpeeds;
  17. std::vector<std::shared_ptr<CLabel>> labels;
  18. std::vector<std::shared_ptr<CToggleButton>> toggles;
  19. int getAnimSpeed() const;
  20. public:
  21. BattleOptionsWindow(BattleInterface * owner = nullptr);
  22. };