diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-08-06 03:12:16 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2019-08-06 03:12:40 +0200 |
commit | 58481b46a2c64fda4f506e15ee94dd97f527d552 (patch) | |
tree | 337809ed5aadece3cc6a3746aa78a24b390472ca /include/Body.hpp | |
parent | 7ce2139650012d4c571c7e7600924853ab7032bb (diff) |
Save and show progress in manga and return to last page"
Diffstat (limited to 'include/Body.hpp')
-rw-r--r-- | include/Body.hpp | 3 |
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; |