98 log_debug(
"popup_help_dialog_typed : PORT ME");
187 dst.x, dst.y, dst.w, dst.h,
249 pwindow->
data.
ptr = (
void *)store;
254 area = pwindow->
area;
296 dst.y = (background->h -
impr_name->h) / 2;
304 dst.y = (background->h - icon->h) / 2;
340 if (store->show_tree) {
359 area = pwindow->
area;
384 sprintf(buffer,
"%s %d",
_(
"Base Cost:"),
415 if (!
preq->present) {
487 if (buffer[0] !=
'\0') {
506 area = pwindow->
area;
513 close_button = pwindow->
prev;
515 area.x + area.w - close_button->
size.w - 1,
616 dst.x, dst.y, dst.w, dst.h,
677 pwindow->
data.
ptr = (
void *)store;
682 area = pwindow->
area;
726 dst.y = (background->h -
unit_name->h) / 2;
733 dst.x = (
adj_size(35) - icon->w) / 2;
734 dst.y = (background->h - icon->h) / 2;
770 if (store->show_tree) {
789 area = pwindow->
area;
931 if (buffer[0] !=
'\0') {
951 area = pwindow->
area;
958 close_button = pwindow->
prev;
960 area.x + area.w - close_button->
size.w - 1,
1076 dst.x, dst.y, dst.w, dst.h,
1303 if (buffer[0] !=
'\0') {
1324 pwidget = pwidget->
prev;
1325 pwidget->
size.x = start_x;
1361 pwidget->
size.x = pwindow->
size.x + start_x;
1364 pwidget = pwidget->
prev;
1373 pwidget->
size.x = pwindow->
size.x + start_x;
1376 pwidget = pwidget->
prev;
1384 while (unit_count-- && pwidget) {
1385 pwidget->
size.x = pwindow->
size.x + start_x;
1388 pwidget = pwidget->
prev;
1397 pwidget->
size.x = pwindow->
size.x + start_x;
1400 pwidget = pwidget->
prev;
1418 int i,j, tech, count;
1451 for (j = count - 1; j >= 0; j--) {
1459 for (j = count - 1; j >= 0; j--) {
1467 for (j = 0; j < 4 && store->
sub_req[j]; j++) {
1475 for (j = 0; j < 4 && store->
sub_req[j]; j++) {
1545 for (
i = 0;
i < count;
i++) {
1549 switch ((
i %
mod)) {
1566 for (j = 0; j < 6 && store->
sub_targets[j]; j++) {
1578 for (j = 0; j < 6 && store->
sub_targets[j]; j++) {
1810 w = (pwindow->
area.x + 1
1813 + w +
ptech->size.w)) / 2;
1815 w = (pwindow->
size.w -
ptech->size.w) / 2;
1969 pwindow->
data.
ptr = (
void *)store;
1992 dock = close_button;
2093 area = pwindow->
area;
2100 close_button = pwindow->
prev;
2102 area.x + area.w - close_button->
size.w - 1,
struct canvas int int struct sprite int int int width
const char * city_improvement_name_translation(const struct city *pcity, const struct impr_type *pimprove)
#define PL_(String1, String2, n)
const char * government_name_translation(const struct government *pgovern)
Government_type_id government_index(const struct government *pgovern)
#define governments_iterate(NAME_pgov)
#define governments_iterate_end
GtkWidget * unit_info_label
static void create_tech_tree(int tech, int levels, GtkTreeIter *parent)
void popdown_help_dialog(void)
void popup_help_dialog_string(const char *item)
void popup_help_dialog_typed(const char *item, enum help_page_type htype)
SDL_Color * get_theme_color(enum theme_color themecolor)
int main_window_width(void)
int fill_rect_alpha(SDL_Surface *surf, SDL_Rect *prect, SDL_Color *pcolor)
void create_line(SDL_Surface *dest, Sint16 x0, Sint16 y0, Sint16 x1, Sint16 y1, SDL_Color *pcolor)
SDL_Surface * copy_surface(SDL_Surface *src)
int alphablit(SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect, unsigned char alpha_mod)
struct sdl2_data main_data
SDL_Surface * create_surf(int width, int height, Uint32 flags)
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)
#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)
utf8_str * create_utf8_str_fonto(char *in_text, size_t n_alloc, enum font_origin origin)
bool convert_utf8_str_to_const_surface_width(utf8_str *pstr, int width)
SDL_Surface * create_text_surf_smaller_than_w(utf8_str *pstr, int w)
#define FREEUTF8STR(pstr)
#define create_utf8_from_char_fonto(string_in, fonto)
SDL_Color * get_tech_color(Tech_type_id tech_id)
SDL_Surface * get_tech_icon(Tech_type_id tech)
static SDL_Surface * get_government_surface(const struct government *gov)
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)
static int exit_help_dlg_callback(struct widget *pwidget)
void popup_gov_info(int gov)
void popup_tech_info(Tech_type_id tech)
static struct advanced_dialog * help_dlg
static int show_tech_tree_callback(struct widget *pwidget)
enum help_page_type current_help_dlg
static void redraw_tech_info_dlg(void)
static void redraw_unit_info_dlg(void)
static int change_tech_callback(struct widget *pwidget)
void popup_help_browser(void)
static struct widget * create_tech_info(Tech_type_id tech, int width, struct widget *pwindow, struct techs_buttons *store)
void popup_impr_info(Impr_type_id impr)
static void redraw_tech_tree_dlg(void)
static int help_dlg_window_callback(struct widget *pwindow)
static int change_unit_callback(struct widget *pwidget)
void popup_unit_info(Unit_type_id type_id)
static int change_gov_callback(struct widget *pwidget)
static void redraw_impr_info_dlg(void)
static int toggle_full_tree_mode_in_help_dlg_callback(struct widget *pwidget)
static int change_impr_callback(struct widget *pwidget)
SDL_Surface * create_select_tech_icon(utf8_str *pstr, Tech_type_id tech_id, enum tech_info_mode mode)
SDL_Surface * theme_get_background(const struct theme *t, enum theme_background background)
@ COLOR_THEME_HELPDLG_FRAME
@ COLOR_THEME_HELPDLG_TEXT
@ COLOR_THEME_HELPDLG_LINE3
@ COLOR_THEME_CITYDLG_LUX
@ COLOR_THEME_HELPDLG_LINE
@ COLOR_THEME_HELPDLG_LINE2
struct theme * active_theme
void helptext_advance(char *buf, size_t bufsz, struct player *pplayer, const char *user_text, int i)
char * helptext_unit(char *buf, size_t bufsz, struct player *pplayer, const char *user_text, const struct unit_type *utype, bool class_help)
char * helptext_building(char *buf, size_t bufsz, struct player *pplayer, const char *user_text, const struct impr_type *pimprove)
const struct impr_type * valid_improvement(const struct impr_type *pimprove)
struct impr_type * improvement_by_number(const Impr_type_id id)
int impr_base_build_shield_cost(const struct impr_type *pimprove)
Impr_type_id improvement_number(const struct impr_type *pimprove)
bool is_wonder(const struct impr_type *pimprove)
bool is_convert_improvement(const struct impr_type *pimprove)
const char * improvement_name_translation(const struct impr_type *pimprove)
#define improvement_iterate_end
#define improvement_iterate(_p)
#define log_debug(message,...)
#define fc_calloc(n, esz)
const char * move_points_text(int mp, bool reduce)
const char * universal_name_translation(const struct universal *psource, char *buf, size_t bufsz)
#define requirement_vector_iterate_end
#define requirement_vector_iterate(req_vec, preq)
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
const struct unit_type * obsoleted_by
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)
struct advance * valid_advance_by_number(const Tech_type_id id)
Tech_type_id advance_required(const Tech_type_id tech, enum tech_req require)
Tech_type_id advance_number(const struct advance *padvance)
#define advance_index_iterate_end
#define advance_index_iterate(_start, _index)
bool is_tech_req_for_utype(const struct unit_type *ptype, struct advance *padv)
int utype_build_shield_cost_base(const struct unit_type *punittype)
struct advance * utype_primary_tech_req(const struct unit_type *ptype)
Unit_type_id utype_count(void)
struct unit_type * utype_by_number(const Unit_type_id id)
Unit_type_id utype_number(const struct unit_type *punittype)
const char * utype_name_translation(const struct unit_type *punittype)
#define unit_type_iterate(_p)
#define unit_type_iterate_end