InstalledOptions.hpp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. #include "TitleKeys.hpp"
  9. namespace FreeShop {
  10. class InstalledItem;
  11. class InstalledOptions : public cpp3ds::Drawable, public util3ds::TweenTransformable<cpp3ds::Transformable> {
  12. public:
  13. static const int ALPHA = 11;
  14. InstalledOptions();
  15. void processTouchEvent(const cpp3ds::Event& event);
  16. void setInstalledItem(InstalledItem *installedItem);
  17. InstalledItem *getInstalledItem() const;
  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. TitleKeys::TitleType m_titleType;
  36. #ifdef _3DS
  37. FS_MediaType m_mediaType;
  38. #endif
  39. };
  40. } // namespace FreeShop
  41. #endif // FREESHOP_INSTALLEDOPTIONS_HPP