14 #define GETTEXT_DOMAIN "wesnoth-editor"
22 #include <SDL_video.h>
64 if (!
click_)
return nullptr;
78 bool immutable = old_label ? old_label->
immutable() :
true;
86 , visible_fog, visible_shroud, immutable, category);
map_labels * get_current_labels()
surface get_image(const image::locator &i_locator, TYPE type)
function to get the surface corresponding to an image.
surface create_neutral_surface(int w, int h)
void append_action(editor_action *a)
Add an action at the end of the chain.
bool show(CVideo &video, const unsigned auto_close_time=0)
Shows the window.
editor_action * up_left(editor_display &disp, int x, int y)
Left click displays a dialog that is used for entering the label string.
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...
double get_zoom_factor() const
Returns the current zoom factor.
Container action wrapping several actions into one.
GLint GLint GLint GLint GLint GLint y
surface scale_surface(const surface &surf, int w, int h)
const SDL_Color NORMAL_COLOR
const std::string & team_name() const
void blit_surface(const surface &surf, const SDL_Rect *srcrect, surface &dst, const SDL_Rect *dstrect)
Replacement for sdl_blit.
const SDL_Color & color() const
const t_string & text() const
const std::string & category() const
editor_action * click_right(editor_display &disp, int x, int y)
A click, possibly the beginning of a drag.
editor_action * drag_left(editor_display &disp, int x, int y, bool &partial, editor_action *last_undo)
Drag operation.
surface adjust_surface_alpha(const surface &surf, fixed_t amount, bool optimize)
GLboolean GLboolean GLboolean GLboolean a
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...
GLclampf GLclampf GLclampf alpha
void set_mouseover_hex_overlay(const surface &image)
mouseover_hex_overlay_ require a prerendered surface and is drawn underneath the mouse's location ...
Manage the empty-palette in the editor.
const terrain_label * get_label(const map_location &loc, const std::string &team_name) const
Encapsulates the map of the game.
editor_action * up_right(editor_display &disp, int x, int y)
Right click erases the label under the mouse.
virtual void set_mouse_overlay(editor_display &disp)
Set the mouse overlay for this action.
bool visible_in_shroud() const
Base class for all editor actions.
GLint GLint GLint GLint GLint x
bool visible_in_fog() const
GLdouble GLdouble GLdouble r
SDL_Rect create_rect(const int x, const int y, const int w, const int h)
Creates an empty SDL_Rect.
bool on_board(const map_location &loc) const
Tell if a location is on the map.
editor_action * click_left(editor_display &disp, int x, int y)
A click, possibly the beginning of a drag.
map_location last_draged_
To store label data Class implements logic for rendering.
const gamemap & get_map() const
this module manages the cache of images.
CVideo & video()
Gets the underlying screen object.
GLsizei const GLcharARB ** string