36 , mouse_action_(nullptr)
54 ERR_ED <<
"No brushes defined!";
56 brushes_[0].add_relative_location(0, 0);
75 std::make_shared<mouse_action_starting_position>(
key_, *
palette_manager_->location_palette_.get()));
88 if (menu.items().size() == 1) {
92 i->second->set_toolbar_button(&menu);
114 ERR_ED <<
"Invalid hotkey command (" 115 <<
static_cast<int>(command) <<
") passed to set_mouse_action";
void invalidate_game_status()
Function to invalidate the game status displayed on the sidebar.
const map_location hex_clicked_on(int x, int y) const
given x,y co-ordinates of an onscreen pixel, will return the location of the hex that this pixel corr...
config_array_view child_range(config_key_type key) const
Definitions for the interface to Wesnoth Markup Language (WML).
common_palette & get_palette()
Getter for the associated palette.
void update_brush_highlights(editor_display &disp, const map_location &hex)
Unconditionally update the brush highlights for the current tool when hex is the center location...
The brush class represents a single brush – a set of relative locations around a "hotspot"...
Manage the empty-palette in the editor.
map_fragment & get_clipboard()
Encapsulates the map of the game.
std::string id
Text to match against addon_info.tags()
Game configuration data as global variables.
void clear_mouseover_hex_overlay()
virtual void set_mouse_overlay(editor_display &disp)
Set the mouse overlay for this action.
uint32_t get_mouse_state(int *x, int *y)
A wrapper for SDL_GetMouseState that gives coordinates in draw space.
const std::vector< menu > & menus() const
A config object defines a single node in a WML file, with access to child nodes.
Class that keeps track of all the keys on the keyboard.
const hotkey_command & get_hotkey_command(const std::string &command)
returns the hotkey_command with the given name
std::string::const_iterator iterator