BotInformations.hpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #ifndef FREESHOP_BOTINFORMATIONS_HPP
  2. #define FREESHOP_BOTINFORMATIONS_HPP
  3. #include <cpp3ds/Graphics/Drawable.hpp>
  4. #include <cpp3ds/Graphics/Text.hpp>
  5. #include <cpp3ds/Window/Event.hpp>
  6. #include <cpp3ds/System/Clock.hpp>
  7. #include "TweenObjects.hpp"
  8. #include "TitleKeys.hpp"
  9. #include <TweenEngine/Tween.h>
  10. #include <TweenEngine/TweenManager.h>
  11. #include <cpp3ds/System/Thread.hpp>
  12. namespace FreeShop {
  13. class BotInformations : public cpp3ds::Drawable, public util3ds::TweenTransformable<cpp3ds::Transformable> {
  14. public:
  15. void update(float delta);
  16. BotInformations();
  17. ~BotInformations();
  18. protected:
  19. virtual void draw(cpp3ds::RenderTarget& target, cpp3ds::RenderStates states) const;
  20. private:
  21. cpp3ds::Text m_textSD;
  22. cpp3ds::Text m_textSDStorage;
  23. cpp3ds::Text m_textNAND;
  24. cpp3ds::Text m_textNANDStorage;
  25. cpp3ds::Text m_textSleepDownloads;
  26. gui3ds::NinePatch m_backgroundNAND;
  27. gui3ds::NinePatch m_backgroundSD;
  28. util3ds::TweenRectangleShape m_progressBarNAND;
  29. util3ds::TweenRectangleShape m_progressBarSD;
  30. cpp3ds::Clock m_updateClock;
  31. TweenEngine::TweenManager m_tweenManager;
  32. //Booleans used for transitions
  33. bool m_isProgressSDTransitioning;
  34. bool m_isProgressNANDTransitioning;
  35. cpp3ds::Thread m_threadRefresh;
  36. void refresh();
  37. };
  38. } // namespace FreeShop
  39. #endif // FREESHOP_BOTINFORMATIONS_HPP