NewsItem: Add punchline, background and bg_title attributes

This commit is contained in:
Tomas Babej
2021-09-27 23:39:41 -04:00
parent c8240f1ad7
commit c574cbf948
2 changed files with 19 additions and 1 deletions

View File

@@ -79,13 +79,19 @@ void wait_for_enter ()
NewsItem::NewsItem ( NewsItem::NewsItem (
bool major, bool major,
const std::string& title, const std::string& title,
const std::string& punchline,
const std::string& update, const std::string& update,
const std::string& bg_title,
const std::string& background,
const std::string& reasoning, const std::string& reasoning,
const std::string& actions const std::string& actions
) { ) {
_major = major; _major = major;
_title = title; _title = title;
_punchline = punchline;
_update = update; _update = update;
_bg_title = bg_title;
_background = background;
_reasoning = reasoning; _reasoning = reasoning;
_actions = actions; _actions = actions;
} }

View File

@@ -35,10 +35,22 @@ class NewsItem {
public: public:
bool _major = false; bool _major = false;
std::string _title; std::string _title;
std::string _punchline;
std::string _update; std::string _update;
std::string _bg_title;
std::string _background;
std::string _reasoning; std::string _reasoning;
std::string _actions; std::string _actions;
NewsItem (bool, const std::string&, const std::string&, const std::string& = "", const std::string& = ""); NewsItem (
bool,
const std::string&,
const std::string& = "",
const std::string& = "",
const std::string& = "",
const std::string& = "",
const std::string& = "",
const std::string& = ""
);
void render (); void render ();
}; };