5#include <glm/mat4x4.hpp>
12struct scenario_building_context;
73 glm::vec2
pos = glm::vec2(0.5f, 0.5f);
95 bool screen_to_map(glm::vec2 screen_pos, glm::vec2 screen_size,
map_view view_mode, glm::vec2& map_pos);
bool map_to_screen(sys::state &state, glm::vec2 map_pos, glm::vec2 screen_size, glm::vec2 &screen_pos)
glm::vec2 last_camera_drag_pos
void on_mouse_wheel(int32_t x, int32_t y, int32_t screen_size_x, int32_t screen_size_y, sys::key_modifiers mod, float amount)
void load_map_data(parsers::scenario_building_context &context)
void on_lbutton_up(sys::state &state, int32_t x, int32_t y, int32_t screen_size_x, int32_t screen_size_y, sys::key_modifiers mod)
void on_mbuttom_up(int32_t x, int32_t y, sys::key_modifiers mod)
void on_mbuttom_down(int32_t x, int32_t y, int32_t screen_size_x, int32_t screen_size_y, sys::key_modifiers mod)
bool screen_to_map(glm::vec2 screen_pos, glm::vec2 screen_size, map_view view_mode, glm::vec2 &map_pos)
void update_borders(sys::state &state)
void set_selected_province(dcon::province_id prov_id)
bool unhandled_province_selection
map_view current_view(sys::state &state)
void update(sys::state &state)
std::chrono::time_point< std::chrono::steady_clock > last_update_time
dcon::province_id get_selected_province()
void on_key_up(sys::virtual_key keycode, sys::key_modifiers mod)
void set_terrain_map_mode()
void load_map(sys::state &state)
dcon::province_id selected_province
void on_rbutton_down(sys::state &state, int32_t x, int32_t y, int32_t screen_size_x, int32_t screen_size_y, sys::key_modifiers mod)
void on_key_down(sys::virtual_key keycode, sys::key_modifiers mod)
glm::vec2 scroll_pos_velocity
void set_province_color(std::vector< uint32_t > const &prov_color, map_mode::mode map_mode)
glm::vec2 last_unit_box_drag_pos
std::vector< bool > visible_provinces
void on_lbutton_down(sys::state &state, int32_t x, int32_t y, int32_t screen_size_x, int32_t screen_size_y, sys::key_modifiers mod)
glm::vec2 normalize_map_coord(glm::vec2 pos)
map_mode::mode active_map_mode
void on_mouse_move(int32_t x, int32_t y, int32_t screen_size_x, int32_t screen_size_y, sys::key_modifiers mod)
void center_map_on_province(sys::state &state, dcon::province_id)
void render(sys::state &state, uint32_t screen_x, uint32_t screen_y)
dcon::province_id get_province_under_mouse(sys::state &state, int32_t x, int32_t y, int32_t screen_size_x, int32_t screen_size_y)
bool right_arrow_key_down
void set_pos(glm::vec2 pos)
void update_text_lines(sys::state &state, display_data &map_data)