32 , mouse_action_(nullptr)
57 ERR_ED <<
"No brushes defined!";
59 brushes_[0].add_relative_location(0, 0);
91 if (menu.items().size() == 1) {
95 i->second->set_toolbar_button(&menu);
117 ERR_ED <<
"Invalid hotkey command ("
118 <<
static_cast<int>(command) <<
") passed to set_mouse_action\n";
125 std::map<hotkey::HOTKEY_COMMAND, mouse_action*>::const_iterator
i =
mouse_actions_.find(command);
131 DBG_ED << __func__ <<
"\n";
133 SDL_GetMouseState(&x, &y);
Brush paint mouse action.
child_itors child_range(const std::string &key)
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...
const std::vector< menu > & menus() const
void clear_mouseover_hex_overlay()
GLint GLint GLint GLint GLint GLint y
Definitions for the interface to Wesnoth Markup Language (WML).
Select (and deselect) action, by brush or "magic wand" (via keyboard modifier)
item placement action class
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.
Unit placement action class.
Game configuration data as global variables.
GLint GLint GLint GLint GLint x
virtual void set_mouse_overlay(editor_display &disp)
Set the mouse overlay for this action.
Set starting position action.
Editor mouse action class.
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.
GLsizei const GLcharARB ** string
HOTKEY_COMMAND get_id(const std::string &command)
returns get_hotkey_command(command).id