320 _(
"Revolution"),
"Ctrl+Shift+G",
324 _(
"Revolution"),
"Ctrl+Shift+G",
342 Q_(
"?tech:None"), 0, 0);
424 _(
"%s%s Population: %s Year: %s "
435 _(
"%s%s Population: %s Year: %s "
436 "Gold %d Tax: %d Lux: %d Sci: %d "),
460 area.x + 1, area.y, area.x + area.w - 2, area.y,
463 area.x + 1, area.y + area.h - 1, area.x + area.w - 2,
469 area.x + area.w - 1, area.y + 1, area.x + area.w - 1,
473 area.x, area.y + 1, area.x, area.y + area.h - 2,
598 {
"" ,
Q_(
"?nation:Hostile"),
600 Q_(
"?nation:Peaceful"),
Q_(
"?nation:Friendly"),
601 Q_(
"?nation:Mysterious")};
612 int turns =
ds->turns_left;
615 PL_(
"\n%s territory (%d turn ceasefire)",
616 "\n%s territory (%d turn ceasefire)", turns),
620 int turns =
ds->turns_left;
623 PL_(
"\n%s territory (%d turn armistice)",
624 "\n%s territory (%d turn armistice)", turns),
628 cat_snprintf(buffer,
sizeof(buffer),
_(
"\nTerritory of the %s %s"),
633 cat_snprintf(buffer,
sizeof(buffer),
_(
"\nUnclaimed territory"));
643 {
Q_(
"?city:Neutral"),
Q_(
"?city:Hostile"),
644 Q_(
"?city:Neutral"),
Q_(
"?city:Peaceful"),
645 Q_(
"?city:Friendly"),
Q_(
"?city:Mysterious")};
703 cat_snprintf(buffer,
sizeof(buffer),
_(
"\nFood/Prod/Trade: %s"),
719 if (
n > 1 && ((!right &&
info2
820 "%s (%d,%d,%s)%s%s\n%s\n(%d/%d)\n%s",
924 if (
info_window->private_data.adv_dlg->end_active_widget_list) {
926 info_window->private_data.adv_dlg->end_active_widget_list);
934 if (
info_window->private_data.adv_dlg->end_active_widget_list) {
936 info_window->private_data.adv_dlg->end_active_widget_list);
948 _(
"End of Turn"),
_(
"Press"),
_(
"Shift+Return"));
966 info_window->private_data.adv_dlg->end_widget_list->prev, 0);
1047 log_debug(
"MAPVIEW: update_timeout_label : PORT ME");
1055 log_debug(
"MAPVIEW: update_turn_done_button : PORT ME");
1154 log_debug(
"MAPVIEW: put_cross_overlay_tile : PORT ME");
SDL_Surface * zoomSurface(SDL_Surface *src, double zoomx, double zoomy, int smooth)
Zoom a surface by independent horizontal and vertical factors with optional smoothing.
void astr_free(struct astring *astr)
static const char * astr_str(const struct astring *astr) fc__attribute((nonnull(1)))
void bugreport_request(const char *reason_format,...)
const char * calendar_text(void)
struct canvas int int struct sprite int int int int height
struct canvas int int canvas_y
struct canvas int canvas_x
struct canvas int int struct sprite int int int width
const char * city_name_get(const struct city *pcity)
#define city_owner(_pcity_)
int get_citydlg_canvas_width(void)
void city_dialog_redraw_map(struct city *pcity, struct canvas *pcanvas)
int get_citydlg_canvas_height(void)
bool client_is_observer(void)
enum client_states client_state(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 unit_focus_set(struct unit *punit)
void request_new_unit_activity(struct unit *punit, enum unit_activity act)
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
int get_city_bonus(const struct city *pcity, enum effect_type effect_type)
#define PL_(String1, String2, n)
const char * population_to_text(int thousand_citizen)
int civ_population(const struct player *pplayer)
struct city * game_city_by_number(int id)
const char * government_name_for_player(const struct player *pplayer)
void canvas_free(struct canvas *store)
struct canvas * canvas_create(int width, int height)
void popdown_all_game_dialogs(void)
GtkWidget * overview_canvas
void update_timeout_label(void)
void update_info_label(void)
void update_turn_done_button(bool do_restore)
void tileset_changed(void)
void put_cross_overlay_tile(struct tile *ptile)
void draw_selection_rectangle(int canvas_x, int canvas_y, int w, int h)
void update_map_canvas_scrollbars_size(void)
void get_overview_area_dimensions(int *width, int *height)
void update_unit_info_label(struct unit_list *punits)
void update_overview_scroll_window_pos(int x, int y)
void update_city_descriptions(void)
void update_map_canvas_scrollbars(void)
void overview_size_changed(void)
void map_canvas_size_refresh(void)
struct canvas * get_overview_window(void)
void set_indicator_icons(struct sprite *bulb, struct sprite *sol, struct sprite *flake, struct sprite *gov)
enum client_pages get_current_client_page(void)
SDL_Color * get_theme_color(enum theme_color themecolor)
const char * sdl_get_tile_defense_info_text(struct tile *ptile)
int main_window_width(void)
void update_main_screen(void)
void create_line(SDL_Surface *dest, Sint16 x0, Sint16 y0, Sint16 x1, Sint16 y1, SDL_Color *pcolor)
int alphablit(SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect, unsigned char alpha_mod)
int screen_blit(SDL_Surface *src, SDL_Rect *srcrect, 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)
bool correct_rect_region(SDL_Rect *prect)
void screen_rect_to_layer_rect(struct gui_layer *gui_layer, SDL_Rect *dest_rect)
void create_frame(SDL_Surface *dest, Sint16 left, Sint16 top, Sint16 width, Sint16 height, SDL_Color *pcolor)
int main_window_height(void)
SDL_Surface * resize_surface_box(const SDL_Surface *psrc, Uint16 new_width, Uint16 new_height, int smooth, bool scale_up, bool absolute_dimensions)
#define map_rgba(format, color)
void enable_focus_animation(void)
void disable_focus_animation(void)
#define CF_FOCUS_ANIMATION
#define CF_OVERVIEW_SHOWN
#define PRESSED_EVENT(event)
#define CF_UNITINFO_SHOWN
void draw_mouse_cursor(void)
utf8_str * copy_chars_to_utf8_str(utf8_str *pstr, const char *pchars)
SDL_Surface * create_text_surf_from_utf8(utf8_str *pstr)
void change_fonto_utf8(utf8_str *pstr, enum font_origin origin)
utf8_str * create_utf8_str_fonto(char *in_text, size_t n_alloc, enum font_origin origin)
SDL_Surface * create_text_surf_smaller_than_w(utf8_str *pstr, int w)
#define create_utf8_from_char(string_in, ptsize)
#define FREEUTF8STR(pstr)
#define create_utf8_from_char_fonto(string_in, fonto)
static SDL_Surface * get_tax_surface(Output_type_id otype)
static SDL_Surface * get_unittype_surface(const struct unit_type *punittype, enum direction8 facing)
struct widget * get_minimap_window_widget(void)
struct widget * get_research_widget(void)
struct widget * get_unit_info_window_widget(void)
struct widget * get_revolution_widget(void)
struct widget * get_tax_rates_widget(void)
#define DEFAULT_OVERVIEW_W
#define DEFAULT_OVERVIEW_H
void real_focus_units_changed(void)
void set_unit_icons_more_arrow(bool onoff)
void set_unit_icon(int idx, struct unit *punit)
static bool is_focus_anim_enabled(void)
SDL_Surface * create_city_map(struct city *pcity)
static void flush_mapcanvas(int canvas_x, int canvas_y, int pixel_width, int pixel_height)
void refresh_overview(void)
static bool is_flush_queued
void flush_rect(SDL_Rect *rect, bool force_flush)
SDL_Surface * get_terrain_surface(struct tile *ptile)
void dirty_sdl_rect(SDL_Rect *Rect)
static int focus_units_info_callback(struct widget *pwidget)
void redraw_unit_info_label(struct unit_list *punitlist)
static struct canvas * terrain_canvas
void city_map_canvas_free(void)
#define GET_SURF(m_sprite)
@ COLOR_THEME_MAPVIEW_UNITINFO_VETERAN_TEXT
@ COLOR_THEME_MAPVIEW_INFO_TEXT
@ COLOR_THEME_MAPVIEW_INFO_FRAME
@ COLOR_THEME_SELECTIONRECTANGLE
@ COLOR_THEME_MAPVIEW_UNITINFO_TEXT
#define fc_assert(condition)
#define log_debug(message,...)
#define current_wrap_has_flag(flag)
void redraw_selection_rectangle(void)
void put_terrain(struct tile *ptile, struct canvas *pcanvas, float zoom, int canvas_x, int canvas_y)
void put_unit(const struct unit *punit, struct canvas *pcanvas, float zoom, int canvas_x, int canvas_y)
void show_city_descriptions(int canvas_base_x, int canvas_base_y, int width_base, int height_base)
bool map_canvas_resized(int width, int height)
const char * move_points_text(int mp, bool reduce)
const char * nation_adjective_for_player(const struct player *pplayer)
const char * nation_plural_for_player(const struct player *pplayer)
struct client_options gui_options
#define OVERVIEW_TILE_WIDTH
#define OVERVIEW_TILE_HEIGHT
enum client_pages get_client_page(void)
struct player_diplstate * player_diplstate_get(const struct player *plr1, const struct player *plr2)
bool pplayers_allied(const struct player *pplayer, const struct player *pplayer2)
const char * research_advance_name_translation(const struct research *presearch, Tech_type_id tech)
struct research * research_get(const struct player *pplayer)
struct widget * begin_active_widget_list
struct widget * end_active_widget_list
struct widget * active_widget_list
struct scroll_bar * scroll
struct packet_game_info info
enum borders_mode borders
struct player_economic economic
SDL_Rect rects[RECT_LIMIT]
int fc_snprintf(char *str, size_t n, const char *format,...)
int cat_snprintf(char *str, size_t n, const char *format,...)
const char * get_tile_output_text(const struct tile *ptile)
const char * get_unit_info_label_text2(struct unit_list *punits, int linebreaks)
struct city * tile_city(const struct tile *ptile)
#define TILE_LB_RESOURCE_POLL
#define tile_owner(_tile)
int tileset_full_tile_height(const struct tileset *t)
int tileset_full_tile_width(const struct tileset *t)
void unit_activity_astr(const struct unit *punit, struct astring *astr)
#define unit_list_iterate(unitlist, punit)
#define unit_list_iterate_end
const char * utype_veteran_name_translation(const struct unit_type *punittype, int level)
const struct unit_type * unit_type_get(const struct unit *punit)
const char * unit_name_translation(const struct unit *punit)
const char * utype_name_translation(const struct unit_type *punittype)