16 #define GETTEXT_DOMAIN "wesnoth-lib"
37 std::
string& category)
41 register_text(
"label",
true, text,
true);
42 register_text(
"category",
true, category,
false);
43 register_bool(
"immutable_toggle",
true, immutable);
44 register_bool(
"visible_fog_toggle",
true, visible_fog);
45 register_bool(
"visible_shroud_toggle",
true, visible_shroud);
46 register_color_component(
"slider_red", &color_t::r);
47 register_color_component(
"slider_green", &
color_t::g);
48 register_color_component(
"slider_blue", &
color_t::b);
Dialog for editing gamemap labels.
void register_color_component(std::string widget_id, uint8_t color_t::*component)
int load_color_component(uint8_t color_t::*component)
color_t & color_store
The execute function.
void save_color_component(uint8_t color_t::*component, const int value)
virtual void pre_show(window &window) override
Actions to be taken before showing the window.
Abstract base class for all modal dialogs.
field_integer * register_integer(const std::string &id, const bool mandatory, const std::function< int()> callback_load_value=nullptr, const std::function< void(int)> callback_save_value=nullptr)
Creates a new integer field.
base class of top level items, the only item which needs to store the final canvases to draw on.
void add_to_tab_order(widget *widget, int at=-1)
Add the widget to the tabbing order.
#define REGISTER_DIALOG(window_id)
Wrapper for REGISTER_DIALOG2.
This file contains the settings handling of the widget library.
The basic class for representing 8-bit RGB or RGBA colour values.