24#include <gdk/gdkkeysyms.h>
211 _(
"Goto _Location"), 1,
212 _(
"I_nspect City"), 2,
217 _(
"Goto _Location"), 1,
294 _(
"You say you wanna revolution?"));
363 _(
"What To Pillage"),
365 _(
"Looking for target extra:"),
367 _(
"Select what to pillage:"),
548 if (
i >= 0 &&
i < style_id) {
669 "text", 3,
"strikethrough", 1,
NULL);
861 title =
_(
"What Nation Will You Be?");
938 if (p[
len] ==
'\n') {
979 renderer,
"markup", 1,
NULL);
994 "use-underline",
TRUE,
995 "label",
_(
"_Nation Set:"),
1027 "use-underline",
TRUE,
1028 "label",
_(
"Nation _Groups:"),
1070 "use-underline",
TRUE,
1072 "label",
_(
"_Leader:"),
1117 "use-underline",
TRUE,
1118 "mnemonic-widget",
list,
1119 "label",
_(
"City _Styles:"),
1359 return (!
chosen || selected);
1548 _(
"Tileset \"%s\" problem, "
1549 "it's probably incompatible with "
1550 "the ruleset:\n%s"),
1555 _(
"Tileset problem, "
1556 "it's probably incompatible with "
1557 "the ruleset:\n%s"),
1584 int attacker_hp,
int defender_hp,
1585 bool make_att_veteran,
bool make_def_veteran)
1651 log_error(
_(
"No image for tag \"%s\", requested by the server."), tag);
const char * action_id_name_translation(action_id act_id)
void astr_free(struct astring *astr)
void astr_set(struct astring *astr, const char *format,...)
void astr_add(struct astring *astr, const char *format,...)
static const char * astr_str(const struct astring *astr) fc__attribute((nonnull(1)))
void output_window_append(const struct ft_color color, const char *featured_text)
const char * city_style_name_translation(const int style)
#define city_owner(_pcity_)
void popup_city_dialog(struct city *pcity)
enum client_states client_state(void)
void common_taxrates_callback(int idx, bool reverse)
static struct fc_sockaddr_list * list
void request_unit_disband(struct unit *punit)
void request_new_unit_activity_targeted(struct unit *punit, enum unit_activity act, struct extra_type *tgt)
void action_confirmation(struct act_confirmation_data *data, bool confirm)
void request_unit_upgrade(struct unit *punit)
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 int const struct action *paction show_tileset_error
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit * actor
const char const char * headline
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 int const struct action *paction bool fatal
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
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 int const struct action *paction bool const char * tset_name
#define MAX_NUM_NATION_GROUPS
#define PL_(String1, String2, n)
const struct ft_color ftc_client
struct unit * game_unit_by_number(int id)
static GtkWidget * races_properties
static gboolean races_selection_func(GtkTreeSelection *select, GtkTreeModel *model, GtkTreePath *path, gboolean selected, gpointer data)
static GtkWidget * races_shell
static void select_nation(int nation, const char *leadername, bool is_male, int style_id)
static void sync_tabs_to_nation(int nation)
static GtkWidget * races_style_list
static void revolution_response(GtkWidget *w, gint response, gpointer data)
static void races_leader_callback(void)
static int selected_style
static void create_nation_selection_lists(void)
static int is_showing_pillage_dialog
static void create_races_dialog(struct player *pplayer)
static GtkWidget * races_leader
static GtkWidget * races_nation_list[MAX_NUM_NATION_GROUPS+1]
static void populate_leader_list(void)
void unit_select_dialog_popup(struct tile *ptile)
void popup_upgrade_dialog(struct unit_list *punits)
void races_update_pickable(bool nationset_change)
static void notify_connect_msg_response(GtkWidget *w, gint response)
static void races_sex_callback(GtkWidget *w, gpointer data)
static void pillage_callback(GtkWidget *dlg, gint arg)
void popup_notify_goto_dialog(const char *headline, const char *lines, const struct text_tag_list *tags, struct tile *ptile)
void show_tech_gained_dialog(Tech_type_id tech)
static GtkWidget * races_sex[2]
void popup_races_dialog(struct player *pplayer)
void popup_disband_dialog(struct unit_list *punits)
static GtkTreePath * path_to_nation_on_list(Nation_type_id nation, GtkTreeView *list)
void popdown_races_dialog(void)
static int selected_nation
static GtkWidget * races_notebook
void popup_pillage_dialog(struct unit *punit, bv_extras extras)
static void races_response(GtkWidget *w, gint response, gpointer data)
static void act_conf_response(GtkWidget *dialog, gint response, gpointer data)
static void notify_goto_response(GtkWidget *w, gint response)
static void races_nation_callback(GtkTreeSelection *select, gpointer data)
void popup_connect_msg(const char *headline, const char *message)
bool handmade_scenario_warning(void)
void unit_select_dialog_update_real(void *unused)
static void nationset_callback(GtkComboBox *b, gpointer data)
void races_toggles_set_sensitive(void)
static void races_style_callback(GtkTreeSelection *select, gpointer data)
void popup_combat_info(int attacker_unit_id, int defender_unit_id, int attacker_hp, int defender_hp, bool make_att_veteran, bool make_def_veteran)
struct player * races_player
static GtkWidget * nationsets_chooser
void request_action_confirmation(const char *expl, struct act_confirmation_data *data)
static GtkTextBuffer * races_text
void nationset_sync_to_server(const char *nationset)
gboolean taxrates_callback(GtkWidget *w, GdkEventButton *ev, gpointer data)
static GtkWidget * create_list_of_nations_in_group(struct nation_group *group, int index)
void popup_image(const char *tag)
static void select_nation_on_tab(GtkWidget *tab_list, int nation)
void popdown_all_game_dialogs(void)
struct property_editor * editprop_get_property_editor(void)
void property_editor_popdown(struct property_editor *pe)
GtkWidget * bottom_notebook
#define GUI_GTK_OPTION(optname)
void gui_dialog_present(struct gui_dialog *dlg)
void gui_dialog_set_default_response(struct gui_dialog *dlg, int response)
void gui_dialog_new(struct gui_dialog **pdlg, GtkNotebook *notebook, gpointer user_data, bool check_top)
void gui_dialog_show_all(struct gui_dialog *dlg)
void gui_dialog_set_title(struct gui_dialog *dlg, const char *title)
void gui_dialog_set_default_size(struct gui_dialog *dlg, int width, int height)
void gui_dialog_destroy_all(void)
GtkWidget * gui_dialog_add_button(struct gui_dialog *dlg, const char *icon_name, const char *text, int response)
void setup_dialog(GtkWidget *shell, GtkWidget *parent)
void popup_help_dialog_typed(const char *item, enum help_page_type htype)
static struct gui_dialog * shell
GdkPixbuf * get_flag(const struct nation_type *nation)
void free_sprite(struct sprite *s)
GdkPixbuf * sprite_get_pixbuf(struct sprite *sprite)
struct sprite * crop_blankspace(struct sprite *s)
void unit_select_dialog_popup_main(struct tile *ptile, bool create)
void unit_select_dialog_popdown(void)
void blank_max_unit_size(void)
static char * leader_name
void popup_revolution_dialog(void)
void helptext_nation(char *buf, size_t bufsz, struct nation_type *pnation, const char *user_text)
#define fc_assert(condition)
#define fc_assert_action(condition, action)
#define log_error(message,...)
void center_tile_mapcanvas(const struct tile *ptile)
Nation_type_id nation_number(const struct nation_type *pnation)
struct nation_leader * nation_leader_by_name(const struct nation_type *pnation, const char *name)
bool nation_leader_is_male(const struct nation_leader *pleader)
const char * nation_adjective_translation(const struct nation_type *pnation)
struct nation_type * nation_by_number(const Nation_type_id nation)
int nation_set_index(const struct nation_set *pset)
bool is_nation_pickable(const struct nation_type *nation)
const struct nation_leader_list * nation_leaders(const struct nation_type *pnation)
const char * nation_set_name_translation(const struct nation_set *pset)
bool is_nation_playable(const struct nation_type *nation)
bool nation_is_in_group(const struct nation_type *pnation, const struct nation_group *pgroup)
bool nation_is_in_set(const struct nation_type *pnation, const struct nation_set *pset)
const char * nation_set_description(const struct nation_set *pset)
const char * nation_group_name_translation(const struct nation_group *pgroup)
int nation_set_count(void)
struct nation_group * nation_group_by_number(int id)
struct nation_set * nation_set_by_rule_name(const char *name)
bool is_nation_group_hidden(struct nation_group *pgroup)
struct nation_set * nation_set_by_setting_value(const char *setting)
const char * nation_leader_name(const struct nation_leader *pleader)
int nation_group_count(void)
const char * nation_set_rule_name(const struct nation_set *pset)
struct nation_style * style_of_nation(const struct nation_type *pnation)
#define nation_leader_list_iterate(leaderlist, pleader)
#define nation_sets_iterate_end
#define nation_sets_iterate(NAME_pset)
#define nations_iterate_end
#define nations_iterate(NAME_pnation)
#define nation_leader_list_iterate_end
#define nation_groups_iterate(NAME_pgroup)
#define nation_groups_iterate_end
const struct option_set * server_optset
bool option_str_set(struct option *poption, const char *str)
const char * option_str_get(const struct option *poption)
struct client_options gui_options
struct option * optset_option_by_name(const struct option_set *poptset, const char *name)
@ GUI_POPUP_TECH_HELP_RULESET
@ GUI_POPUP_TECH_HELP_ENABLED
int dsend_packet_nation_select_req(struct connection *pc, int player_no, Nation_type_id nation_no, bool is_male, const char *name, int style)
void start_revolution(void)
void set_government_choice(struct government *government)
int player_number(const struct player *pplayer)
const char * player_name(const struct player *pplayer)
const char * sex_name_mnemonic(sex_t kind, const char *mnemonic)
struct packet_ruleset_control control
bool center_when_popup_city
struct nation_type * nation
struct nation_style * style
int style_number(const struct nation_style *pstyle)
int basic_city_style_for_style(struct nation_style *pstyle)
#define styles_iterate(_p)
#define styles_iterate_end
int fc_snprintf(char *str, size_t n, const char *format,...)
int fc_break_lines(char *str, size_t desired_len)
const char * advance_name_translation(const struct advance *padvance)
struct advance * valid_advance_by_number(const Tech_type_id id)
struct extra_type * get_preferred_pillage(bv_extras extras)
bool get_units_upgrade_info(char *buf, size_t bufsz, struct unit_list *punits)
bool get_units_disband_info(char *buf, size_t bufsz, struct unit_list *punits)
struct city * tile_city(const struct tile *ptile)
struct sprite * load_popup_sprite(const char *tag)
struct sprite * get_sample_city_sprite(const struct tileset *t, int style_idx)
void unload_popup_sprite(const char *tag)
bool unit_can_do_action(const struct unit *punit, const action_id act_id)
#define unit_list_iterate(unitlist, punit)
#define unit_list_iterate_end