16 #define GETTEXT_DOMAIN "wesnoth-lib"
31 #include "../../minimap.hpp"
38 #define ERR_CF LOG_STREAM_INDENT(err, log_config)
40 #define LOG_SCOPE_HEADER get_control_type() + " [" + id() + "] " + __func__
41 #define LOG_HEADER LOG_SCOPE_HEADER + ':'
92 ERR_CF <<
"Error while loading the map: " <<
e.message;
110 load_resolutions<resolution>(cfg);
131 auto widget = std::make_unique<minimap>(*
this);
133 DBG_GUI_G <<
"Window builder: placed minimap '" <<
id
134 <<
"' with definition '" <<
definition <<
"'.";
A config object defines a single node in a WML file, with access to child nodes.
const std::string & map_data() const
void set_map_data(const std::string &map_data)
std::string map_data_
The map data to be used to generate the map.
std::unique_ptr< gamemap > map_
Game map generated from the provided data.
virtual bool get_active() const override
See styled_widget::get_active.
virtual unsigned get_state() const override
See styled_widget::get_state.
bool disable_click_dismiss() const override
See widget::disable_click_dismiss.
virtual void set_active(const bool active) override
See styled_widget::set_active.
virtual void impl_draw_background() override
See widget::impl_draw_background.
Drawing functions, for drawing things on the screen.
static std::string _(const char *str)
Define the common log macros for the gui toolkit.
void render_minimap(unsigned dst_w, unsigned dst_h, const gamemap &map, const team *vw, const unit_map *units, const std::map< map_location, unsigned int > *reach_map, bool ignore_terrain_disabled)
Renders the minimap to the screen.
Contains the implementation details for lexical_cast and shouldn't be used directly.
Contains the SDL_Rect helper code.
This file contains the settings handling of the widget library.
virtual std::unique_ptr< widget > build() const override
resolution(const config &cfg)
minimap_definition(const config &cfg)
Base class of a resolution, contains the common keys for a resolution.
std::vector< state_definition > state
Add a special kind of assert to validate whether the input from WML doesn't contain any problems that...
#define VALIDATE_WML_CHILD(cfg, key, message)