aboutsummaryrefslogtreecommitdiff
path: root/include/Body.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-12-01 09:51:14 +0100
committerdec05eba <dec05eba@protonmail.com>2019-12-01 09:51:14 +0100
commitf02c8b967ec936b9dca4ce2dce010301ab8b72bf (patch)
treee2733a6eb1e96585d13a69311b917addb4cd6b54 /include/Body.hpp
parent312881ac12e1f5d8d6981e4bcea922de1defd643 (diff)
Add image board author name and replies
Diffstat (limited to 'include/Body.hpp')
-rw-r--r--include/Body.hpp6
1 files changed, 5 insertions, 1 deletions
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<size_t> replies;
int num_lines;
+ std::string post_number;
};
using BodyItems = std::vector<std::unique_ptr<BodyItem>>;
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;