InstalledOptions.hpp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #ifndef FREESHOP_INSTALLEDOPTIONS_HPP
  2. #define FREESHOP_INSTALLEDOPTIONS_HPP
  3. #include <cpp3ds/Graphics/Drawable.hpp>
  4. #include <cpp3ds/Graphics/Text.hpp>
  5. #include <cpp3ds/Window/Event.hpp>
  6. #include "TweenObjects.hpp"
  7. #include "States/BrowseState.hpp"
  8. namespace FreeShop {
  9. class InstalledItem;
  10. class InstalledOptions : public cpp3ds::Drawable, public util3ds::TweenTransformable<cpp3ds::Transformable> {
  11. public:
  12. static const int ALPHA = 11;
  13. InstalledOptions();
  14. void processTouchEvent(const cpp3ds::Event& event);
  15. void setInstalledItem(InstalledItem *installedItem);
  16. InstalledItem *getInstalledItem() const;
  17. void update();
  18. protected:
  19. virtual void draw(cpp3ds::RenderTarget& target, cpp3ds::RenderStates states) const;
  20. virtual void setValues(int tweenType, float *newValues);
  21. virtual int getValues(int tweenType, float *returnValues);
  22. private:
  23. cpp3ds::Text m_textGame;
  24. cpp3ds::Text m_textUpdates;
  25. cpp3ds::Text m_textDLC;
  26. cpp3ds::Text m_textIconGame;
  27. cpp3ds::Text m_textIconUpdates;
  28. cpp3ds::Text m_textIconDLC;
  29. InstalledItem *m_installedItem;
  30. bool m_updatesAvailable;
  31. bool m_dlcAvailable;
  32. bool m_updatesInstalled;
  33. bool m_dlcInstalled;
  34. #ifdef _3DS
  35. FS_MediaType m_mediaType;
  36. #endif
  37. };
  38. } // namespace FreeShop
  39. #endif // FREESHOP_INSTALLEDOPTIONS_HPP