12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #ifndef FREESHOP_LOADINFORMATIONS_HPP
- #define FREESHOP_LOADINFORMATIONS_HPP
- #include <cpp3ds/Graphics/Drawable.hpp>
- #include <cpp3ds/Graphics/Text.hpp>
- #include <cpp3ds/Window/Event.hpp>
- #include "TweenObjects.hpp"
- #include <TweenEngine/Tween.h>
- #include <TweenEngine/TweenManager.h>
- namespace FreeShop {
- class LoadInformations : public cpp3ds::Drawable, public util3ds::TweenTransformable<cpp3ds::Transformable> {
- public:
- void update(float delta);
- LoadInformations();
- ~LoadInformations();
- static LoadInformations& getInstance();
- void updateLoadingPercentage(int newPercentage);
- void reset();
- bool m_isTopBGThemeAllowed;
- bool m_isBotBGThemeAllowed;
- protected:
- virtual void draw(cpp3ds::RenderTarget& target, cpp3ds::RenderStates states) const;
- private:
- cpp3ds::Text m_textLoadingPercentage;
- int m_loadingPercentage;
- TweenEngine::TweenManager m_tweenManager;
- };
- } // namespace FreeShop
- #endif // FREESHOP_LOADINFORMATIONS_HPP
|