CResDataBar.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * CAdvmapInterface.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 "../widgets/AdventureMapClasses.h"
  12. #include "CWindowObject.h"
  13. #include "../widgets/TextControls.h"
  14. #include "../widgets/Buttons.h"
  15. #include "../../lib/spells/ViewSpellInt.h"
  16. VCMI_LIB_NAMESPACE_BEGIN
  17. struct CGPath;
  18. struct CGPathNode;
  19. class CGHeroInstance;
  20. class CGTownInstance;
  21. class CSpell;
  22. class IShipyard;
  23. VCMI_LIB_NAMESPACE_END
  24. class CCallback;
  25. class CAdvMapInt;
  26. class CHeroWindow;
  27. enum class EMapAnimRedrawStatus;
  28. class CFadeAnimation;
  29. struct MapDrawingInfo;
  30. /// Resources bar which shows information about how many gold, crystals,... you have
  31. /// Current date is displayed too
  32. class CResDataBar : public CIntObject
  33. {
  34. public:
  35. std::shared_ptr<CPicture> background;
  36. std::vector<std::pair<int,int> > txtpos;
  37. std::string datetext;
  38. void clickRight(tribool down, bool previousState) override;
  39. CResDataBar();
  40. CResDataBar(const std::string &defname, int x, int y, int offx, int offy, int resdist, int datedist);
  41. ~CResDataBar();
  42. void draw(SDL_Surface * to);
  43. void show(SDL_Surface * to) override;
  44. void showAll(SDL_Surface * to) override;
  45. };