15#define GETTEXT_DOMAIN "wesnoth-lib"
28#include <SDL3/SDL_timer.h>
42 , text_widget_(
nullptr)
44 , last_scroll_(
std::numeric_limits<uint64_t>::max())
45 , scroll_remainder_(0)
56 std::stringstream focus_ss;
59 std::stringstream& group_stream = (
group.id ==
focus_on_) ? focus_ss : ss;
62 if(!
group.header.empty()) {
69 for(
const auto& entry :
about.names) {
70 group_stream << entry.first <<
"\n";
76 if(!focus_ss.str().empty()) {
77 focus_ss << ss.rdbuf();
90 text_widget_ = find_widget<scroll_label>(
"text",
false,
true);
113 const uint64_t now = SDL_GetTicks();
128 if(needed_dist > 0) {
void set_variable(const std::string &key, wfl::variant &&value)
virtual void pre_show() override
Actions to be taken before showing the window.
std::vector< std::string > backgrounds_
scroll_label * text_widget_
const std::string & focus_on_
void key_press_callback(const SDL_Keycode key)
virtual void update() override
TLD override to update animations, called once per frame.
uint64_t scroll_remainder_
Scrolling that is due but less than a whole pixel, in pixel-milliseconds.
Abstract base class for all modal dialogs.
#define REGISTER_DIALOG(window_id)
Wrapper for REGISTER_DIALOG2.
Display credits about all contributors.
std::vector< std::string > get_background_images(const std::string &campaign)
Gets credit background images for a given campaign.
const credits_data & get_credits_data()
Gets all credits data.
std::string game_title_background
std::string span_size(std::string_view size, Args &&... data)
Applies Pango markup to the input specifying its display size.