16 #define GETTEXT_DOMAIN "wesnoth-lib"
31 std::
string& description,
33 int& experience_modifier,
34 bool& victory_when_enemies_defeated,
35 bool& random_start_time)
38 register_text(
"id",
true,
id,
true);
39 register_text(
"name",
true, name,
false);
40 register_text(
"description",
true, description,
false);
41 register_integer(
"turns",
true, turns);
42 register_integer(
"experience_modifier",
true, experience_modifier);
43 register_bool(
"victory_when_enemies_defeated",
45 victory_when_enemies_defeated);
46 register_bool(
"random_start_time",
true, random_start_time);
virtual void pre_show() override
Actions to be taken before showing the window.
Abstract base class for all modal dialogs.
void add_to_tab_order(widget *widget, int at=-1)
Add the widget to the tabbing order.
REGISTER_DIALOG(editor_edit_unit)