diff options
Diffstat (limited to 'include/Body.hpp')
-rw-r--r-- | include/Body.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/Body.hpp b/include/Body.hpp index 98baa6d..58e1414 100644 --- a/include/Body.hpp +++ b/include/Body.hpp @@ -2,10 +2,10 @@ #include "Text.hpp" #include "AsyncImageLoader.hpp" +#include "RoundedRectangle.hpp" #include <SFML/Graphics/Text.hpp> #include <SFML/Graphics/RectangleShape.hpp> #include <SFML/Graphics/Sprite.hpp> -#include "../external/RoundedRectangleShape.hpp" #include <json/value.h> #include <thread> #include <future> @@ -179,7 +179,7 @@ namespace QuickMedia { class Body { public: - Body(Program *program, sf::Texture &loading_icon_texture); + Body(Program *program, sf::Texture &loading_icon_texture, sf::Shader *rounded_rectangle_shader); ~Body(); // Select previous page, ignoring invisible items. Returns true if the item was changed. This can be used to check if the top was hit when wrap_around is set to false @@ -279,7 +279,6 @@ namespace QuickMedia { // TODO: Use a loading gif or something similar instead, to properly indicate the image is loading. Which could also have text that says "failed to load image" when image loading failed. sf::RectangleShape image_fallback; sf::RectangleShape item_separator; - sf::RoundedRectangleShape item_background; sf::Sprite image; sf::Sprite loading_icon; int num_visible_items; @@ -313,6 +312,7 @@ namespace QuickMedia { float selected_scrolled = 0.0f; bool loaded_textures_changed = false; std::shared_ptr<BodyItem> clicked_body_item = nullptr; - //float scroll_y = 0.0f; + RoundedRectangle item_background; + RoundedRectangle reaction_background; }; }
\ No newline at end of file |