74 bool& copy_edge_terrain);
void update_expand_direction()
int old_width_
The original width.
virtual const std::string & window_id() const override
The ID of the window to build.
toggle_button * direction_buttons_[9]
The toggle buttons show the state of expand_direction_.
field_integer * height_
The currently selected height.
int old_height_
The original height.
virtual void pre_show() override
Actions to be taken before showing the window.
EXPAND_DIRECTION & expand_direction_
The selected expansion direction.
void set_direction_icon(int index, std::string icon)
editor_resize_map(int &width, int &height, EXPAND_DIRECTION &expand_direction, bool ©_edge_terrain)
Constructor.
field_integer * width_
The execute function.
Abstract base class for all modal dialogs.
Template class to implement the generic field implementation.
#define DEFINE_SIMPLE_EXECUTE_WRAPPER(dialog)
Adds a bare-bonesstatic execute function to a dialog class that immediately invokes and return the re...
Various uncategorised dialogs.
std::size_t index(const std::string &str, const std::size_t index)
Codepoint index corresponding to the nth character in a UTF-8 string.