#include <SDL3/SDL.h>
#include "fcintl.h"
#include "log.h"
#include "unit.h"
#include "unitlist.h"
#include "client_main.h"
#include "climisc.h"
#include "overview_common.h"
#include "pages_g.h"
#include "update_queue.h"
#include "zoom.h"
#include "citydlg.h"
#include "cityrep.h"
#include "colors.h"
#include "dialogs.h"
#include "finddlg.h"
#include "graphics.h"
#include "gui_id.h"
#include "gui_main.h"
#include "gui_mouse.h"
#include "gui_tilespec.h"
#include "mapview.h"
#include "menu.h"
#include "messagewin.h"
#include "optiondlg.h"
#include "plrdlg.h"
#include "repodlgs.h"
#include "sprite.h"
#include "themespec.h"
#include "widget.h"
#include "wldlg.h"
#include "mapctrl.h"
Go to the source code of this file.
◆ button_down_on_map()
◆ button_up_on_map()
Use released mouse button over map.
Definition at line 2346 of file mapctrl.c.
◆ cities_action_callback()
User interacted with cities button.
Definition at line 166 of file mapctrl.c.
◆ close_game_page()
◆ create_line_at_mouse_pos()
Draw a goto or patrol line at the current mouse position.
Definition at line 2924 of file mapctrl.c.
◆ disable_main_widgets()
Disable game page widgets.
Definition at line 2097 of file mapctrl.c.
◆ disable_minimap_widgets()
◆ disable_minimap_window_buttons()
void disable_minimap_window_buttons |
( |
void |
| ) |
|
Make minimap window buttons disabled.
Definition at line 1906 of file mapctrl.c.
◆ disable_unitinfo_widgets()
◆ disable_unitinfo_window_buttons()
void disable_unitinfo_window_buttons |
( |
void |
| ) |
|
Make unitinfo buttons disabled.
Definition at line 1613 of file mapctrl.c.
◆ economy_callback()
User interacted with Economy button.
Definition at line 243 of file mapctrl.c.
◆ enable_and_redraw_find_city_button()
void enable_and_redraw_find_city_button |
( |
void |
| ) |
|
Make Find City button available.
Definition at line 2230 of file mapctrl.c.
◆ enable_and_redraw_revolution_button()
void enable_and_redraw_revolution_button |
( |
void |
| ) |
|
Make Revolution button available.
Definition at line 2240 of file mapctrl.c.
◆ enable_main_widgets()
Enable game page widgets.
Definition at line 2175 of file mapctrl.c.
◆ enable_minimap_widgets()
Make minimap window buttons enabled and redraw.
Definition at line 2112 of file mapctrl.c.
◆ enable_unitinfo_widgets()
Make unitinfo window buttons enabled and redraw.
Definition at line 2158 of file mapctrl.c.
◆ end_turn_callback()
User interacted with Turn Done button.
Definition at line 201 of file mapctrl.c.
◆ finger_down_on_map()
◆ finger_up_on_map()
◆ get_minimap_window_widget()
Get main minimap widget.
Definition at line 2198 of file mapctrl.c.
◆ get_research_widget()
Get main research widget.
Definition at line 2214 of file mapctrl.c.
◆ get_revolution_widget()
Get main revolution widget.
Definition at line 2222 of file mapctrl.c.
◆ get_tax_rates_widget()
Get main tax rates widget.
Definition at line 2206 of file mapctrl.c.
◆ get_unit_info_window_widget()
Get main unitinfo widget.
Definition at line 2190 of file mapctrl.c.
◆ hide_minimap_window_buttons()
void hide_minimap_window_buttons |
( |
void |
| ) |
|
Make minimap window buttons hidden.
Definition at line 1831 of file mapctrl.c.
◆ hide_unitinfo_window_buttons()
void hide_unitinfo_window_buttons |
( |
void |
| ) |
|
Make unitinfo buttons hidden.
Definition at line 1589 of file mapctrl.c.
◆ map_event_handler()
Toggle map drawing stuff.
Definition at line 2440 of file mapctrl.c.
◆ minimap_window_callback()
User interacted with minimap window.
Definition at line 1258 of file mapctrl.c.
◆ move_new_city_dlg_callback()
User interacted with the new city dialog.
Definition at line 2742 of file mapctrl.c.
◆ newcity_cancel_callback()
User interacted with the Cancel button of the new city dialog.
Definition at line 2721 of file mapctrl.c.
◆ newcity_name_edit_callback()
User interacted with the edit button of the new city dialog.
Definition at line 2681 of file mapctrl.c.
◆ newcity_ok_callback()
User interacted with the Ok button of the new city dialog.
Definition at line 2699 of file mapctrl.c.
◆ players_action_callback()
User interacted with nations button.
Definition at line 119 of file mapctrl.c.
◆ popdown_minimap_window()
◆ popdown_newcity_dialog()
Close new city dialog.
Definition at line 2892 of file mapctrl.c.
◆ popdown_unitinfo_window()
Close unitinfo window.
Definition at line 1633 of file mapctrl.c.
◆ popup_minimap_window()
◆ popup_newcity_dialog()
Popup a dialog to ask for the name of a new city. The given string should be used as a suggestion.
Definition at line 2758 of file mapctrl.c.
◆ popup_unitinfo_window()
◆ redraw_minimap_window_buttons()
void redraw_minimap_window_buttons |
( |
void |
| ) |
|
Redraw minimap window buttons.
Definition at line 1869 of file mapctrl.c.
◆ research_callback()
User interacted with Research button.
Definition at line 231 of file mapctrl.c.
◆ resize_minimap()
Update the size of the minimap
Definition at line 550 of file mapctrl.c.
◆ revolution_callback()
User interacted with Revolution button.
Definition at line 216 of file mapctrl.c.
◆ set_new_minimap_window_pos()
void set_new_minimap_window_pos |
( |
void |
| ) |
|
This Function is used when resize main_data.screen. We must set new MiniMap start position.
Definition at line 1382 of file mapctrl.c.
◆ set_new_unitinfo_window_pos()
void set_new_unitinfo_window_pos |
( |
void |
| ) |
|
This Function is used when resize main_data.screen. We must set new Units Info Win. start position.
Definition at line 1328 of file mapctrl.c.
◆ set_turn_done_button_state()
void set_turn_done_button_state |
( |
bool |
state | ) |
|
A turn done button should be provided for the player. This function is called to toggle it between active/inactive.
Definition at line 2906 of file mapctrl.c.
◆ show_game_page()
Create and show game page.
Definition at line 1953 of file mapctrl.c.
◆ show_minimap_window_buttons()
void show_minimap_window_buttons |
( |
void |
| ) |
|
Make minimap window buttons visible.
Definition at line 1793 of file mapctrl.c.
◆ show_unitinfo_window_buttons()
void show_unitinfo_window_buttons |
( |
void |
| ) |
|
Make unitinfo buttons visible.
Definition at line 1565 of file mapctrl.c.
◆ toggle_map_window_callback()
Show/Hide Mini Map
Definition at line 387 of file mapctrl.c.
◆ toggle_msg_window_callback()
User interacted with messages toggling button.
Definition at line 525 of file mapctrl.c.
◆ toggle_unit_info_window_callback()
Show/Hide Units Info Window
Definition at line 257 of file mapctrl.c.
◆ unit_info_window_callback()
User interacted with unitinfo window.
Definition at line 1294 of file mapctrl.c.
◆ units_action_callback()
User interacted with units button.
Definition at line 151 of file mapctrl.c.
◆ update_rect_at_mouse_pos()
◆ draw_goto_patrol_lines
◆ find_city_button
◆ is_unit_move_blocked
bool is_unit_move_blocked |
|
extern |
◆ minimap_dlg
◆ minimap_window
◆ new_city_dlg
◆ new_turn_button
◆ options_button
◆ overview_h
◆ overview_start_x
◆ overview_start_y
◆ overview_w
◆ research_button
◆ revolution_button
◆ suggested_city_name
◆ tax_button
◆ unit_info_dlg
◆ unitinfo_h
◆ unitinfo_w
◆ units_info_window