52#define SPECLIST_TAG dialog
53#define SPECLIST_TYPE struct intel_dialog
56#define dialog_list_iterate(dialoglist, pdialog) \
57 TYPED_LIST_ITERATE(struct intel_dialog, dialoglist, pdialog)
58#define dialog_list_iterate_end LIST_ITERATE_END
261 area = pwindow->
area;
273 buf->data.player = p;
294 buf->data.player = p;
296 _(
"Intelligence Information about the %s Spaceship"),
304 _(
"Intelligence Information for the %s Empire"),
328 _(
"Ruler: %s Government: %s\n"
329 "Capital: %s Gold: %d\n"
330 "Tax: %d%% Science: %d%% Luxury: %d%%\n"
344 _(
"Ruler: %s Government: %s\n"
345 "Capital: %s Gold: %d\n"
346 "Tax: %d%% Science: %d%% Luxury: %d%%\n"
347 "Researching: %s(%d/%d)\n"
363 _(
"Ruler: %s Government: %s\n"
364 "Capital: %s Gold: %d\n"
365 "Tax rates unknown\n"
366 "Researching: (Unknown)\n"
367 "Culture: (Unknown)"),
425 area.h +=
buf->size.h;
430 area.w =
MAX(area.w,
col *
buf->size.w + count);
442 const char *cityname;
443 const char *notes =
NULL;
451 cityname =
_(
"(unknown city)");
454 notes =
_(
" (obsolete)");
457 cityname =
_(
"(lost)");
464 notes !=
NULL ? notes :
"");
481 (pwindow->
size.w - pwindow->
area.w) + area.w,
482 (pwindow->
size.h - pwindow->
area.h) + area.h);
484 area = pwindow->
area;
493 buf->
size.x = area.x + area.w -
buf->size.w - 1;
496 dst.x = area.x + (area.w -
text1->w) / 2;
505 dst.x = area.x + (area.w - (
buf->size.w +
adj_size(10) + info->w)) / 2;
537 area.x + area.w, dst.y,
538 area.h - (dst.y + 1),
TRUE);
SDL_Surface * zoomSurface(SDL_Surface *src, double zoomx, double zoomy, int smooth)
Zoom a surface by independent horizontal and vertical factors with optional smoothing.
const char * city_name_get(const struct city *pcity)
bool client_is_global_observer(void)
const char * ruler_title_for_player(const struct player *pplayer, char *buf, size_t buf_len)
const char * government_name_for_player(const struct player *pplayer)
void popup_intel_dialog(struct player *p)
static struct intel_dialog * get_intel_dialog(struct player *pplayer)
void close_intel_dialog(struct player *p)
#define dialog_list_iterate_end
#define dialog_list_iterate(dialoglist, pdialog)
void intel_dialog_done(void)
static struct dialog_list * dialog_list
void intel_dialog_init(void)
static struct intel_dialog * create_intel_dialog(struct player *p)
void update_intel_dialog(struct player *p)
void popup_spaceship_dialog(struct player *pplayer)
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 main_window_height(void)
#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)
void change_fonto_utf8(utf8_str *pstr, enum font_origin origin)
#define FREEUTF8STR(pstr)
#define create_utf8_from_char_fonto(string_in, fonto)
SDL_Surface * get_tech_icon(Tech_type_id tech)
static SDL_Surface * get_nation_flag_surface(const struct nation_type *pnation)
void popdown_intel_dialog(struct player *p)
static int intel_window_dlg_callback(struct widget *pwindow)
void popdown_intel_dialogs(void)
static int tech_callback(struct widget *pwidget)
static int spaceship_callback(struct widget *pwidget)
static int exit_intel_dlg_callback(struct widget *pwidget)
bool wonder_is_lost(const struct player *pplayer, const struct impr_type *pimprove)
bool wonder_is_built(const struct player *pplayer, const struct impr_type *pimprove)
struct city * city_from_wonder(const struct player *pplayer, const struct impr_type *pimprove)
bool is_wonder(const struct impr_type *pimprove)
bool improvement_obsolete(const struct player *pplayer, const struct impr_type *pimprove, const struct city *pcity)
const char * improvement_name_translation(const struct impr_type *pimprove)
#define improvement_iterate_end
#define improvement_iterate(_p)
#define fc_calloc(n, esz)
const char * nation_adjective_for_player(const struct player *pplayer)
struct nation_type * nation_of_player(const struct player *pplayer)
bool team_has_embassy(const struct team *pteam, const struct player *tgt_player)
struct city * player_primary_capital(const struct player *pplayer)
bool research_invention_reachable(const struct research *presearch, const Tech_type_id tech)
const char * research_advance_name_translation(const struct research *presearch, Tech_type_id tech)
struct research * research_get(const struct player *pplayer)
enum tech_state research_invention_state(const struct research *presearch, Tech_type_id tech)
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
struct advanced_dialog * pdialog
struct player_economic economic
struct player::@73::@76 client
struct research::@79::@81 client
int fc_snprintf(char *str, size_t n, const char *format,...)
int cat_snprintf(char *str, size_t n, const char *format,...)
struct advance * advance_by_number(const Tech_type_id atype)
const char * advance_name_translation(const struct advance *padvance)
#define advance_index_iterate_end
#define advance_index_iterate(_start, _index)