19#ifdef SDL2_PLAIN_INCLUDE
56#define SPECLIST_TAG dialog
57#define SPECLIST_TYPE struct intel_dialog
60#define dialog_list_iterate(dialoglist, pdialog) \
61 TYPED_LIST_ITERATE(struct intel_dialog, dialoglist, pdialog)
62#define dialog_list_iterate_end LIST_ITERATE_END
265 area = pwindow->
area;
277 buf->data.player = p;
298 buf->data.player = p;
300 _(
"Intelligence Information about the %s Spaceship"),
308 _(
"Intelligence Information for the %s Empire"),
332 _(
"Ruler: %s Government: %s\n"
333 "Capital: %s Gold: %d\n"
334 "Tax: %d%% Science: %d%% Luxury: %d%%\n"
348 _(
"Ruler: %s Government: %s\n"
349 "Capital: %s Gold: %d\n"
350 "Tax: %d%% Science: %d%% Luxury: %d%%\n"
351 "Researching: %s(%d/%d)\n"
367 _(
"Ruler: %s Government: %s\n"
368 "Capital: %s Gold: %d\n"
369 "Tax rates unknown\n"
370 "Researching: (Unknown)\n"
371 "Culture: (Unknown)"),
429 area.h +=
buf->size.h;
434 area.w =
MAX(area.w,
col *
buf->size.w + count);
485 (pwindow->
size.w - pwindow->
area.w) + area.w,
486 (pwindow->
size.h - pwindow->
area.h) + area.h);
488 area = pwindow->
area;
497 buf->
size.x = area.x + area.w -
buf->size.w - 1;
500 dst.x = area.x + (area.w -
text1->w) / 2;
509 dst.x = area.x + (area.w - (
buf->size.w +
adj_size(10) + info->w)) / 2;
541 area.x + area.w, dst.y,
542 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::@70::@73 client
struct player_economic economic
struct research::@76::@78 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)