294 _(
"Show Unit Info Window"));
354 _(
"Hide Unit Info Window"));
451 pwidget = pwidget->
prev;
455 pwidget = pwidget->
prev;
459 pwidget = pwidget->
prev;
463 pwidget = pwidget->
prev;
468 pwidget = pwidget->
prev;
473 pwidget = pwidget->
prev;
836 buf->next->size.y =
buf->size.y +
buf->size.h -
buf->next->size.h;
837 buf->next->size.x =
buf->size.x -
buf->next->size.w;
840 buf->prev->size.y =
buf->size.y +
buf->size.h -
buf->prev->size.h;
841 buf->prev->size.x =
buf->size.x +
buf->size.w;
844 buf =
buf->prev->prev->prev;
845 buf->size.y =
buf->next->next->next->size.y +
buf->next->next->next->size.h +
adj_size(20);
852 buf->next->size.y =
buf->size.y +
buf->size.h -
buf->next->size.h;
853 buf->next->size.x =
buf->size.x -
buf->next->size.w;
856 buf->prev->size.y =
buf->size.y +
buf->size.h -
buf->prev->size.h;
857 buf->prev->size.x =
buf->size.x +
buf->size.w;
961 pwidget = pwidget->
prev;
969 pwidget = pwidget->
prev;
974 pwidget->
size.h * 2 + 2;
977 pwidget = pwidget->
prev;
1096#ifndef SCALE_UNITINFO
1213 buf->prev->size.y =
buf->size.y;
1214 buf->prev->size.x =
buf->size.x +
buf->size.w;
1218 buf->size.y =
buf->next->next->size.y +
1226 buf->prev->size.y =
buf->size.y;
1227 buf->prev->size.x =
buf->size.x +
buf->size.w;
1307#ifdef SCALE_UNITINFO
1357 pwidget = pwidget->
prev;
1364 pwidget = pwidget->
prev;
1368 area.y + 2 + (pwidget->
size.h * 2));
1371 pwidget = pwidget->
prev;
1403 pwidget = pwidget->
prev;
1410 pwidget = pwidget->
prev;
1417 pwidget = pwidget->
prev;
1424 pwidget = pwidget->
prev;
1432 pwidget = pwidget->
prev;
1440 pwidget = pwidget->
prev;
1452 struct widget *pwidget, *pwindow;
1475 pwindow->
area.h, 1);
1570 pwidget = pwidget->
prev;
1574 pwidget = pwidget->
prev;
1578 pwidget = pwidget->
prev;
1582 pwidget = pwidget->
prev;
1594 pwidget = pwidget->
prev;
1598 pwidget = pwidget->
prev;
1602 pwidget = pwidget->
prev;
1606 pwidget = pwidget->
prev;
1618 pwidget = pwidget->
prev;
1622 pwidget = pwidget->
prev;
1626 pwidget = pwidget->
prev;
1648 struct widget *pwidget, *pwindow;
1669 pwindow->
area.h, 1);
1713 "F4",
_(
"or"),
_(
"Find City"),
"Ctrl+F");
1798 pwidget = pwidget->
prev;
1802 pwidget = pwidget->
prev;
1806 pwidget = pwidget->
prev;
1810 pwidget = pwidget->
prev;
1814 pwidget = pwidget->
prev;
1819 pwidget = pwidget->
prev;
1824 pwidget = pwidget->
prev;
1836 pwidget = pwidget->
prev;
1840 pwidget = pwidget->
prev;
1844 pwidget = pwidget->
prev;
1848 pwidget = pwidget->
prev;
1852 pwidget = pwidget->
prev;
1857 pwidget = pwidget->
prev;
1862 pwidget = pwidget->
prev;
1874 pwidget = pwidget->
prev;
1878 pwidget = pwidget->
prev;
1882 pwidget = pwidget->
prev;
1886 pwidget = pwidget->
prev;
1889 pwidget = pwidget->
prev;
1894 pwidget = pwidget->
prev;
1899 pwidget = pwidget->
prev;
1911 pwidget = pwidget->
prev;
1915 pwidget = pwidget->
prev;
1919 pwidget = pwidget->
prev;
1923 pwidget = pwidget->
prev;
1927 pwidget = pwidget->
prev;
1932 pwidget = pwidget->
prev;
2445 switch (key->scancode) {
2765 struct widget *ok_button;
2803 pwindow->
dst,
_(
"Cancel"),
2811 ok_button->
size.w = cancel_button->
size.w;
2859 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
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)