16 #define GETTEXT_DOMAIN "wesnoth-lib"
32 std::
string& description,
34 int& experience_modifier,
35 bool& victory_when_enemies_defeated,
36 bool& random_start_time)
39 register_text(
"id",
true,
id,
true);
40 register_text(
"name",
true, name,
false);
41 register_text(
"description",
true, description,
false);
42 register_integer(
"turns",
true, turns);
43 register_integer(
"experience_modifier",
true, experience_modifier);
44 register_bool(
"victory_when_enemies_defeated",
46 victory_when_enemies_defeated);
47 register_bool(
"random_start_time",
true, random_start_time);
54 win.
add_to_tab_order(find_widget<text_box>(&win,
"description",
false,
true));
virtual void pre_show(window &window) override
Actions to be taken before showing the window.
Abstract base class for all modal dialogs.
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.
REGISTER_DIALOG(editor_edit_unit)