27#ifdef SDL2_PLAIN_INCLUDE
298 _(
"Show Unit Info Window"));
358 _(
"Hide Unit Info Window"));
455 pwidget = pwidget->
prev;
459 pwidget = pwidget->
prev;
463 pwidget = pwidget->
prev;
467 pwidget = pwidget->
prev;
470#ifdef GUI_SDL2_SMALL_SCREEN
472 pwidget = pwidget->
prev;
477 pwidget = pwidget->
prev;
840 buf->next->size.y =
buf->size.y +
buf->size.h -
buf->next->size.h;
841 buf->next->size.x =
buf->size.x -
buf->next->size.w;
844 buf->prev->size.y =
buf->size.y +
buf->size.h -
buf->prev->size.h;
845 buf->prev->size.x =
buf->size.x +
buf->size.w;
848 buf =
buf->prev->prev->prev;
849 buf->size.y =
buf->next->next->next->size.y +
buf->next->next->next->size.h +
adj_size(20);
856 buf->next->size.y =
buf->size.y +
buf->size.h -
buf->next->size.h;
857 buf->next->size.x =
buf->size.x -
buf->next->size.w;
860 buf->prev->size.y =
buf->size.y +
buf->size.h -
buf->prev->size.h;
861 buf->prev->size.x =
buf->size.x +
buf->size.w;
965 pwidget = pwidget->
prev;
973 pwidget = pwidget->
prev;
978 pwidget->
size.h * 2 + 2;
981 pwidget = pwidget->
prev;
1100#ifndef SCALE_UNITINFO
1217 buf->prev->size.y =
buf->size.y;
1218 buf->prev->size.x =
buf->size.x +
buf->size.w;
1222 buf->size.y =
buf->next->next->size.y +
1230 buf->prev->size.y =
buf->size.y;
1231 buf->prev->size.x =
buf->size.x +
buf->size.w;
1311#ifdef SCALE_UNITINFO
1361 pwidget = pwidget->
prev;
1368 pwidget = pwidget->
prev;
1372 area.y + 2 + (pwidget->
size.h * 2));
1375 pwidget = pwidget->
prev;
1407 pwidget = pwidget->
prev;
1414 pwidget = pwidget->
prev;
1421 pwidget = pwidget->
prev;
1428 pwidget = pwidget->
prev;
1434#ifdef GUI_SDL2_SMALL_SCREEN
1436 pwidget = pwidget->
prev;
1444 pwidget = pwidget->
prev;
1456 struct widget *pwidget, *pwindow;
1479 pwindow->
area.h, 1);
1574 pwidget = pwidget->
prev;
1578 pwidget = pwidget->
prev;
1582 pwidget = pwidget->
prev;
1586 pwidget = pwidget->
prev;
1598 pwidget = pwidget->
prev;
1602 pwidget = pwidget->
prev;
1606 pwidget = pwidget->
prev;
1610 pwidget = pwidget->
prev;
1622 pwidget = pwidget->
prev;
1626 pwidget = pwidget->
prev;
1630 pwidget = pwidget->
prev;
1652 struct widget *pwidget, *pwindow;
1673 pwindow->
area.h, 1);
1717 "F4",
_(
"or"),
_(
"Find City"),
"Ctrl+F");
1750#ifdef GUI_SDL2_SMALL_SCREEN
1803 pwidget = pwidget->
prev;
1807 pwidget = pwidget->
prev;
1811 pwidget = pwidget->
prev;
1815 pwidget = pwidget->
prev;
1819 pwidget = pwidget->
prev;
1822#ifdef GUI_SDL2_SMALL_SCREEN
1824 pwidget = pwidget->
prev;
1829 pwidget = pwidget->
prev;
1841 pwidget = pwidget->
prev;
1845 pwidget = pwidget->
prev;
1849 pwidget = pwidget->
prev;
1853 pwidget = pwidget->
prev;
1857 pwidget = pwidget->
prev;
1860#ifdef GUI_SDL2_SMALL_SCREEN
1862 pwidget = pwidget->
prev;
1867 pwidget = pwidget->
prev;
1879 pwidget = pwidget->
prev;
1883 pwidget = pwidget->
prev;
1887 pwidget = pwidget->
prev;
1891 pwidget = pwidget->
prev;
1894 pwidget = pwidget->
prev;
1897#ifdef GUI_SDL2_SMALL_SCREEN
1899 pwidget = pwidget->
prev;
1904 pwidget = pwidget->
prev;
1916 pwidget = pwidget->
prev;
1920 pwidget = pwidget->
prev;
1924 pwidget = pwidget->
prev;
1928 pwidget = pwidget->
prev;
1932 pwidget = pwidget->
prev;
1935#ifdef GUI_SDL2_SMALL_SCREEN
1937 pwidget = pwidget->
prev;
1971#ifndef GUI_SDL2_SMALL_SCREEN
1980#ifdef GUI_SDL2_SMALL_SCREEN
1998#ifdef GUI_SDL2_SMALL_SCREEN
2072#ifdef GUI_SDL2_SMALL_SCREEN
2146#ifdef GUI_SDL2_SMALL_SCREEN
2450 switch (key.scancode) {
2770 struct widget *ok_button;
2808 pwindow->
dst,
_(
"Cancel"),
2816 ok_button->
size.w = cancel_button->
size.w;
2864 cancel_button->
size.y = ok_button->
size.y;
const char * action_id_name_translation(action_id act_id)
#define city_owner(_pcity_)
enum client_states client_state(void)
bool can_client_issue_orders(void)
struct sprite * client_warming_sprite(void)
struct sprite * client_cooling_sprite(void)
struct sprite * client_research_sprite(void)
struct sprite * client_government_sprite(void)
void key_irrigation_toggle(void)
void key_recall_previous_focus_unit(void)
void key_city_output_toggle(void)
void key_cancel_action(void)
void key_map_native_toggle(void)
void key_resources_toggle(void)
struct unit_list * get_units_in_focus(void)
void request_center_focus_unit(void)
void key_city_productions_toggle(void)
void key_unit_move(enum direction8 gui_dir)
void key_city_outlines_toggle(void)
void key_terrain_toggle(void)
void key_huts_toggle(void)
void key_fog_of_war_toggle(void)
void key_units_toggle(void)
void request_toggle_bases(void)
void key_map_grid_toggle(void)
void finish_city(struct tile *ptile, const char *name)
void key_pollution_toggle(void)
struct unit * head_of_units_in_focus(void)
void key_city_growth_toggle(void)
int get_num_units_in_focus(void)
void key_city_trade_routes_toggle(void)
void key_city_names_toggle(void)
void request_toggle_cities(void)
void cancel_city(struct tile *ptile)
void key_mines_toggle(void)
void key_map_borders_toggle(void)
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit * punit
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit int const struct action *paction struct unit struct city * pcity
void city_report_dialog_popup(bool raise)
void popup_find_dialog(void)
void popup_newcity_dialog(struct unit *punit, const char *suggestname)
void create_line_at_mouse_pos(void)
void set_turn_done_button_state(bool state)
void update_rect_at_mouse_pos(void)
void update_unit_info_label(struct unit_list *punits)
void update_mouse_cursor(enum cursor_type new_cursor_type)
void meswin_dialog_popdown(void)
void meswin_dialog_popup(bool raise)
bool meswin_dialog_is_open(void)
enum client_pages get_current_client_page(void)
void popup_players_dialog(bool raise)
void science_report_dialog_popup(bool raise)
void economy_report_dialog_popup(bool raise)
void units_report_dialog_popup(bool raise)
void popup_hurry_production_dialog(struct city *pcity, SDL_Surface *pdest)
SDL_Color * get_theme_color(enum theme_color themecolor)
void popup_government_dialog(void)
void popup_advanced_terrain_dialog(struct tile *ptile, Uint16 pos_x, Uint16 pos_y)
SDL_Surface * resize_surface(const SDL_Surface *psrc, Uint16 new_width, Uint16 new_height, int smooth)
int main_window_width(void)
int alphablit(SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect, unsigned char alpha_mod)
struct sdl2_data main_data
int blit_entire_src(SDL_Surface *psrc, SDL_Surface *pdest, Sint16 dest_x, Sint16 dest_y)
SDL_Surface * create_surf(int width, int height, Uint32 flags)
int clear_surface(SDL_Surface *surf, SDL_Rect *dstrect)
int main_window_height(void)
#define map_rgba(format, color)
@ ID_CHATLINE_TOGGLE_LOG_WINDOW_BUTTON
@ ID_NEWCITY_NAME_OK_BUTTON
@ ID_TOGGLE_MAP_WINDOW_BUTTON
@ ID_NEWCITY_NAME_CANCEL_BUTTON
@ ID_TOGGLE_UNITS_WINDOW_BUTTON
static struct mouse_button_behavior button_behavior
void disable_focus_animation(void)
#define CF_MAP_UNIT_W_CREATED
struct widget * selected_widget
#define CF_OVERVIEW_SHOWN
#define PRESSED_EVENT(event)
#define CF_UNITINFO_SHOWN
utf8_str * copy_chars_to_utf8_str(utf8_str *pstr, const char *pchars)
SDL_Surface * create_text_surf_from_utf8(utf8_str *pstr)
#define FREEUTF8STR(pstr)
#define create_utf8_from_char_fonto(string_in, fonto)
static SDL_Surface * get_tax_surface(Output_type_id otype)
struct widget * options_button
void popdown_newcity_dialog(void)
struct widget * get_minimap_window_widget(void)
static struct widget * minimap_window
static int toggle_unit_info_window_callback(struct widget *icon_widget)
static int unit_info_window_callback(struct widget *pwidget)
static int toggle_map_window_callback(struct widget *map_button)
void button_down_on_map(struct mouse_button_behavior *button_behavior)
struct widget * get_research_widget(void)
void button_up_on_map(struct mouse_button_behavior *button_behavior)
static void enable_minimap_widgets(void)
void enable_main_widgets(void)
bool is_unit_move_blocked
void finger_up_on_map(struct finger_behavior *finger_behavior)
struct widget * get_unit_info_window_widget(void)
static int minimap_window_callback(struct widget *pwidget)
void close_game_page(void)
void enable_and_redraw_revolution_button(void)
bool map_event_handler(SDL_Keysym key)
void show_game_page(void)
struct widget * get_revolution_widget(void)
static struct widget * new_turn_button
void popup_minimap_window(void)
bool draw_goto_patrol_lines
static int revolution_callback(struct widget *button)
static int newcity_cancel_callback(struct widget *cancel_button)
static struct advanced_dialog * minimap_dlg
void hide_unitinfo_window_buttons(void)
static void disable_unitinfo_widgets(void)
static int research_callback(struct widget *button)
static struct small_dialog * new_city_dlg
static int players_action_callback(struct widget *pwidget)
void disable_main_widgets(void)
void disable_minimap_window_buttons(void)
static int move_new_city_dlg_callback(struct widget *pwindow)
static int economy_callback(struct widget *button)
static int toggle_msg_window_callback(struct widget *pwidget)
static struct widget * research_button
static int cities_action_callback(struct widget *button)
static struct advanced_dialog * unit_info_dlg
void enable_and_redraw_find_city_button(void)
void show_minimap_window_buttons(void)
void set_new_minimap_window_pos(void)
static char * suggested_city_name
void hide_minimap_window_buttons(void)
static int newcity_ok_callback(struct widget *ok_button)
static struct widget * revolution_button
void show_unitinfo_window_buttons(void)
void popdown_minimap_window(void)
void disable_unitinfo_window_buttons(void)
void set_new_unitinfo_window_pos(void)
static int newcity_name_edit_callback(struct widget *pedit)
void popdown_unitinfo_window(void)
static struct widget * tax_button
static void disable_minimap_widgets(void)
static struct widget * find_city_button
static int end_turn_callback(struct widget *button)
void popup_unitinfo_window(void)
void redraw_minimap_window_buttons(void)
void finger_down_on_map(struct finger_behavior *finger_behavior)
static struct widget * units_info_window
static void enable_unitinfo_widgets(void)
struct widget * get_tax_rates_widget(void)
static int units_action_callback(struct widget *pwidget)
int resize_unit_info(void)
void refresh_overview(void)
void redraw_unit_info_label(struct unit_list *punitlist)
void enable_options_button(void)
void init_options_button(void)
void disable_options_button(void)
int optiondlg_callback(struct widget *pbutton)
void popup_players_nations_dialog(void)
#define GET_SURF(m_sprite)
SDL_Surface * theme_get_background(const struct theme *t, enum theme_background background)
@ COLOR_THEME_NEWCITYDLG_TEXT
struct theme * active_theme
void popup_worklist_editor(struct city *pcity, struct global_worklist *gwl)
#define fc_assert(condition)
struct tile * map_pos_to_tile(const struct civ_map *nmap, int map_x, int map_y)
void update_line(int canvas_x, int canvas_y)
void recenter_button_pressed(int canvas_x, int canvas_y)
void action_button_pressed(int canvas_x, int canvas_y, enum quickselect_type qtype)
struct tile * canvas_pos_to_tile(float canvas_x, float canvas_y, float zoom)
void center_tile_mapcanvas(const struct tile *ptile)
#define fc_calloc(n, esz)
struct client_options gui_options
void overview_to_map_pos(int *map_x, int *map_y, int overview_x, int overview_y)
void calculate_overview_dimensions(void)
#define OVERVIEW_TILE_WIDTH
#define OVERVIEW_TILE_HEIGHT
struct widget * begin_active_widget_list
struct widget * end_widget_list
struct widget * end_active_widget_list
struct scroll_bar * scroll
struct widget * begin_widget_list
SDL_TouchFingerEvent event
struct widget * begin_widget_list
struct widget * end_widget_list
int fc_snprintf(char *str, size_t n, const char *format,...)
size_t fc_strlcpy(char *dest, const char *src, size_t n)
struct city * tile_city(const struct tile *ptile)
bool update_queue_is_switching_page(void)