InstalledOptions.hpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 setBrowseState(BrowseState *state);
  18. void update();
  19. protected:
  20. virtual void draw(cpp3ds::RenderTarget& target, cpp3ds::RenderStates states) const;
  21. virtual void setValues(int tweenType, float *newValues);
  22. virtual int getValues(int tweenType, float *returnValues);
  23. private:
  24. cpp3ds::Text m_textGame;
  25. cpp3ds::Text m_textUpdates;
  26. cpp3ds::Text m_textDLC;
  27. cpp3ds::Text m_textIconGame;
  28. cpp3ds::Text m_textIconUpdates;
  29. cpp3ds::Text m_textIconDLC;
  30. InstalledItem *m_installedItem;
  31. bool m_updatesAvailable;
  32. bool m_dlcAvailable;
  33. bool m_updatesInstalled;
  34. bool m_dlcInstalled;
  35. BrowseState *m_browseState;
  36. #ifdef _3DS
  37. FS_MediaType m_mediaType;
  38. #endif
  39. };
  40. } // namespace FreeShop
  41. #endif // FREESHOP_INSTALLEDOPTIONS_HPP