From c574cbf948a9fe33d7d90d5454a64a387c021d27 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Mon, 27 Sep 2021 23:39:41 -0400 Subject: [PATCH] NewsItem: Add punchline, background and bg_title attributes --- src/commands/CmdNews.cpp | 6 ++++++ src/commands/CmdNews.h | 14 +++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/commands/CmdNews.cpp b/src/commands/CmdNews.cpp index a6aebc0a5..e82425f20 100644 --- a/src/commands/CmdNews.cpp +++ b/src/commands/CmdNews.cpp @@ -79,13 +79,19 @@ void wait_for_enter () NewsItem::NewsItem ( bool major, const std::string& title, + const std::string& punchline, const std::string& update, + const std::string& bg_title, + const std::string& background, const std::string& reasoning, const std::string& actions ) { _major = major; _title = title; + _punchline = punchline; _update = update; + _bg_title = bg_title; + _background = background; _reasoning = reasoning; _actions = actions; } diff --git a/src/commands/CmdNews.h b/src/commands/CmdNews.h index 50f1d6a98..1ec6d841a 100644 --- a/src/commands/CmdNews.h +++ b/src/commands/CmdNews.h @@ -35,10 +35,22 @@ class NewsItem { public: bool _major = false; std::string _title; + std::string _punchline; std::string _update; + std::string _bg_title; + std::string _background; std::string _reasoning; 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 (); };