aboutsummaryrefslogtreecommitdiff
path: root/include
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
parent312881ac12e1f5d8d6981e4bcea922de1defd643 (diff)
Add image board author name and replies
Diffstat (limited to 'include')
-rw-r--r--include/Body.hpp6
-rw-r--r--include/QuickMedia.hpp1
2 files changed, 6 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;
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;