95 bool& copy_edge_terrain);
This shows the dialog to resize the current map.
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.
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.
virtual void pre_show(window &window) override
Actions to be taken before showing the window.
field_integer * width_
The execute function.
Abstract base class for all modal dialogs.
Template class to implement the generic field implementation.
base class of top level items, the only item which needs to store the final canvases to draw on.
#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.