aboutsummaryrefslogtreecommitdiff
path: root/include/Body.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/Body.hpp')
-rw-r--r--include/Body.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/Body.hpp b/include/Body.hpp
index e09017d..e854e76 100644
--- a/include/Body.hpp
+++ b/include/Body.hpp
@@ -4,6 +4,7 @@
#include <SFML/Graphics/Text.hpp>
#include <SFML/Graphics/Texture.hpp>
#include <SFML/Graphics/RenderWindow.hpp>
+#include <json/value.h>
#include <thread>
namespace QuickMedia {
@@ -35,6 +36,7 @@ namespace QuickMedia {
void clamp_selection();
void draw(sf::RenderWindow &window, sf::Vector2f pos, sf::Vector2f size);
+ void draw(sf::RenderWindow &window, sf::Vector2f pos, sf::Vector2f size, const Json::Value &content_progress);
static bool string_find_case_insensitive(const std::string &str, const std::string &substr);
// TODO: Make this actually fuzzy... Right now it's just a case insensitive string find.
@@ -42,6 +44,7 @@ namespace QuickMedia {
void filter_search_fuzzy(const std::string &text);
sf::Text title_text;
+ sf::Text progress_text;
int selected_item;
std::vector<std::unique_ptr<BodyItem>> items;
std::vector<std::shared_ptr<sf::Texture>> item_thumbnail_textures;