From f02c8b967ec936b9dca4ce2dce010301ab8b72bf Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 1 Dec 2019 09:51:14 +0100 Subject: Add image board author name and replies --- include/Body.hpp | 6 +++++- include/QuickMedia.hpp | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/Body.hpp b/include/Body.hpp index d10b482..36ced92 100644 --- a/include/Body.hpp +++ b/include/Body.hpp @@ -29,17 +29,19 @@ namespace QuickMedia { std::string title; std::string url; std::string thumbnail_url; + std::string author; bool visible; // Used by image boards for example. The elements are indices to other body items std::vector replies; int num_lines; + std::string post_number; }; using BodyItems = std::vector>; class Body { public: - Body(Program *program, sf::Font &font); + Body(Program *program, sf::Font &font, sf::Font &bold_font); // Select previous item, ignoring invisible items void select_previous_item(); @@ -65,6 +67,8 @@ namespace QuickMedia { sf::Text title_text; sf::Text progress_text; + sf::Text author_text; + sf::Text replies_text; int selected_item; BodyItems items; std::thread thumbnail_load_thread; diff --git a/include/QuickMedia.hpp b/include/QuickMedia.hpp index f4cb250..abfe270 100644 --- a/include/QuickMedia.hpp +++ b/include/QuickMedia.hpp @@ -48,6 +48,7 @@ namespace QuickMedia { sf::RenderWindow window; sf::Vector2f window_size; sf::Font font; + sf::Font bold_font; Body *body; Plugin *current_plugin; sf::Texture plugin_logo; -- cgit v1.2.3