16 #define GETTEXT_DOMAIN "wesnoth-lib"
32 , share_vision_(
info.share_vision)
34 register_label(
"side_number",
true, std::to_string(
info.side),
true);
36 register_text(
"team_name",
true,
info.id,
true);
37 register_text(
"user_team_name",
true,
info.name,
false);
38 register_text(
"recruit_list",
true,
info.recruit_list,
false);
40 register_integer(
"gold",
true,
info.gold);
41 register_integer(
"income",
true,
info.income);
43 register_integer(
"village_income",
true,
info.village_income);
44 register_integer(
"village_support",
true,
info.village_support);
46 register_bool(
"fog",
true,
info.fog);
47 register_bool(
"shroud",
true,
info.shroud);
49 register_bool(
"no_leader",
true,
info.no_leader);
50 register_bool(
"hidden",
true,
info.hidden);
61 vision_group.
add_member(find_widget<toggle_button>(
"vision_all",
false,
true), team_shared_vision::type::all);
62 vision_group.
add_member(find_widget<toggle_button>(
"vision_shroud",
false,
true), team_shared_vision::type::shroud);
63 vision_group.
add_member(find_widget<toggle_button>(
"vision_null",
false,
true), team_shared_vision::type::none);
group< side_controller::type > controller_group
side_controller::type & controller_
virtual void post_show() override
Actions to be taken after the window has been shown.
team_shared_vision::type & share_vision_
virtual void pre_show() override
The execute function.
group< team_shared_vision::type > vision_group
Abstract base class for all modal dialogs.
void add_member(selectable_item *w, const T &value)
Adds a widget/value pair to the group map.
void set_member_states(const T &value)
Sets the toggle values for all widgets besides the one associated with the specified value to false.
T get_active_member_value() const
Returns the value paired with the currently actively toggled member of the group.
void add_to_tab_order(widget *widget, int at=-1)
Add the widget to the tabbing order.
Implements some helper classes to ease adding fields to a dialog and hide the synchronization needed.
Manage the empty-palette in the editor.
REGISTER_DIALOG(editor_edit_unit)