179 struct widget *pwindow, *last;
313 pbuf->data.city = pcity;
314 if (count > 13 *
COL) {
327 if (count > 13 *
COL) {
338 if (count > 13 *
COL) {
355 if (count > 13 *
COL) {
369 if (count > 13 *
COL) {
397 if (count > 13 *
COL) {
411 if (count > 13 *
COL) {
424 if (count > 13 *
COL) {
438 if (count > 13 *
COL) {
452 if (count > 13 *
COL) {
466 if (count > 13 *
COL) {
481 if (count > 13 *
COL) {
494 if (count > 13 *
COL) {
509 if (count > 13 *
COL) {
523 if (count > 13 *
COL) {
531 if (
VUT_UTYPE == pcity->production.kind) {
541 const struct impr_type *pimprove = pcity->production.value.building;
559 pcity->shield_stock >
togrow ?
_(
"\nfinished"):
"" );
578 if (count > 13 *
COL) {
585 pbuf->data.city = pcity;
592 if (count > 13 *
COL) {
598 pbuf->data.city = pcity;
618 if (count > 14 *
COL) {
636 (pwindow->
size.w - pwindow->
area.w) + area.w,
637 (pwindow->
size.h - pwindow->
area.h) + area.h);
647 area = pwindow->
area;
689 dst.x , dst.y, dst.w, dst.h - 1,
705 dst.y = area.y + 1 + (
text2->h - cma_icon->h) / 2;
723 dst.x, dst.y, dst.w, dst.h - 1,
760 dst.x , dst.y, dst.w, dst.h - 1,
799 dst.x , dst.y, dst.w, dst.h - 1,
812 dst.y = area.y + 1 + (
hh - units_icon->h) / 2;
832 dst.x , dst.y, dst.w, dst.h - 1,
835 dst.y = area.y + 1 + (
hh -
text4->h) / 2;
836 dst.x += (dst.w -
text4->w) / 2;
850 pbuf->size.x = start_x;
945 area.x + area.w, area.y,
983 pwidget = pwidget->
prev;
988 pwidget = pwidget->
prev;
994 pwidget = pwidget->
prev;
1000 pwidget = pwidget->
prev;
1005 pwidget = pwidget->
prev;
1027 pwidget = pwidget->
prev;
1032 pwidget = pwidget->
prev;
1037 pwidget = pwidget->
prev;
1042 pwidget = pwidget->
prev;
1047 pwidget = pwidget->
prev;
1052 pwidget = pwidget->
prev;
1058 pwidget = pwidget->
prev;
1063 pwidget = pwidget->
prev;
1069 pwidget = pwidget->
prev;
1101 pwidget = pwidget->
prev;
1107 pwidget = pwidget->
prev;
1118 return pwidget->
prev;
1154 if (pcity->id ==
MAX_ID - pwidget->
id) {
1159 pwidget = pwidget->
prev;
1222 log_debug(
"hilite_cities_from_canvas : PORT ME");
1230 log_debug(
"toggle_city_hilite : PORT ME");
const char * city_name_get(const struct city *pcity)
int city_production_turns_to_build(const struct city *pcity, bool include_shield_stock)
bool city_unhappy(const struct city *pcity)
bool city_celebrating(const struct city *pcity)
bool city_happy(const struct city *pcity)
int city_turns_to_grow(const struct city *pcity)
#define city_list_iterate(citylist, pcity)
static citizens city_size_get(const struct city *pcity)
#define city_list_iterate_end
bool city_can_buy(const struct city *pcity)
void popup_city_dialog(struct city *pcity)
void city_report_dialog_update_city(struct city *pcity)
bool cma_is_city_under_agent(const struct city *pcity, struct cm_parameter *parameter)
void cma_release_city(struct city *pcity)
#define PL_(String1, String2, n)
struct city * game_city_by_number(int id)
void real_city_report_dialog_update(void *unused)
void real_city_report_update_city(struct city *pcity)
void toggle_city_hilite(struct city *pcity, bool on_off)
void hilite_cities_from_canvas(void)
void city_report_dialog_popdown(void)
void city_report_dialog_popup(bool raise)
void popup_hurry_production_dialog(struct city *pcity, SDL_Surface *pdest)
static int exit_city_report_callback(struct widget *pwidget)
static int popup_worklist_from_city_report_callback(struct widget *pwidget)
static int popup_citydlg_from_city_report_callback(struct widget *pwidget)
static int city_report_windows_callback(struct widget *pwindow)
static struct advanced_dialog * city_rep
static struct widget * real_city_report_dialog_update_city(struct widget *pwidget, struct city *pcity)
static int popup_cma_from_city_report_callback(struct widget *pwidget)
static int popup_buy_production_from_city_report_callback(struct widget *pwidget)
static void real_info_city_report_dialog_update(void)
bool is_city_report_open(void)
void popup_city_cma_dialog(struct city *pcity)
SDL_Color * get_theme_color(enum theme_color themecolor)
SDL_Color * get_game_color(enum color_std stdcolor)
SDL_Surface * resize_surface(const SDL_Surface *psrc, Uint16 new_width, Uint16 new_height, int smooth)
int main_window_width(void)
int fill_rect_alpha(SDL_Surface *surf, SDL_Rect *prect, SDL_Color *pcolor)
int alphablit(SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect, unsigned char alpha_mod)
struct sdl2_data main_data
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)
struct widget * selected_widget
#define PRESSED_EVENT(event)
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_building_surface(const struct impr_type *pimprove)
static SDL_Surface * get_unittype_surface(const struct unit_type *punittype, enum direction8 facing)
void enable_and_redraw_find_city_button(void)
SDL_Surface * theme_get_background(const struct theme *t, enum theme_background background)
@ COLOR_THEME_CITYDLG_CELEB
@ COLOR_THEME_CITYREP_FRAME
@ COLOR_THEME_CITYDLG_LUX
@ COLOR_THEME_CITYDLG_TRADE
@ COLOR_THEME_CITYDLG_PROD
@ COLOR_THEME_CITYDLG_SUPPORT
@ COLOR_THEME_CITYREP_FOODSTOCK
@ COLOR_THEME_CITYREP_TEXT
@ COLOR_THEME_CITYDLG_HAPPY
@ COLOR_THEME_CITYDLG_SCIENCE
@ COLOR_THEME_CITYREP_TRADE
@ COLOR_THEME_CITYDLG_GOLD
@ COLOR_THEME_CITYREP_PROD
@ COLOR_THEME_CITYDLG_FOOD_SURPLUS
struct theme * active_theme
void popup_worklist_editor(struct city *pcity, struct global_worklist *gwl)
int impr_build_shield_cost(const struct city *pcity, const struct impr_type *pimprove)
const char * improvement_name_translation(const struct impr_type *pimprove)
#define fc_assert(condition)
#define log_debug(message,...)
#define fc_calloc(n, esz)
struct widget * begin_active_widget_list
struct widget * end_widget_list
struct widget * end_active_widget_list
struct widget * active_widget_list
struct scroll_bar * scroll
struct widget * begin_widget_list
SDL_Surface * big_trade_corr
SDL_Surface * big_shield_corr
SDL_Surface * big_food_corr
SDL_Surface * big_food_surplus
SDL_Surface * big_shield_surplus
struct universal production
struct city_list * cities
int fc_snprintf(char *str, size_t n, const char *format,...)
const struct unit_type * utype
const struct impr_type * building
int utype_build_shield_cost(const struct city *pcity, const struct player *pplayer, const struct unit_type *punittype)
const char * utype_name_translation(const struct unit_type *punittype)
bool worklist_is_empty(const struct worklist *pwl)