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 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/Body.hpp') 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; -- cgit v1.2.3