75 .default_server_host =
"localhost",
78 .default_tileset_square_name =
"\0",
79 .default_tileset_hex_name =
"\0",
80 .default_tileset_isohex_name =
"\0",
81 .default_sound_set_name =
"stdsounds",
82 .default_music_set_name =
"stdmusic",
83 .default_sound_plugin_name =
"\0",
89 .save_options_on_exit =
TRUE,
91 .use_prev_server =
FALSE,
92 .heartbeat_enabled =
FALSE,
93 .send_desired_settings =
TRUE,
97 .default_tileset_name =
"\0",
98 .default_tileset_overhead_name =
"\0",
99 .default_tileset_iso_name =
"\0",
100 .gui_gtk3_migrated_from_gtk2 =
FALSE,
101 .gui_gtk3_22_migrated_from_gtk3 =
FALSE,
102 .gui_gtk5_migrated_from_gtk4 =
FALSE,
103 .gui_gtk4_migrated_from_gtk3_22 =
FALSE,
104 .gui_sdl2_migrated_from_sdl =
FALSE,
105 .gui_sdl3_migrated_from_sdl2 =
FALSE,
106 .gui_gtk2_migrated_from_2_5 =
FALSE,
107 .gui_gtk3_migrated_from_2_5 =
FALSE,
108 .gui_qt_migrated_from_2_5 =
FALSE,
110 .migrate_fullscreen =
FALSE,
114 .gui_qt_default_fonts_set =
FALSE,
115 .gui_sdl2_default_screen_size_set =
FALSE,
116 .gui_sdl3_default_screen_size_set =
FALSE,
120 .solid_color_behind_units =
FALSE,
121 .sound_bell_at_new_turn =
FALSE,
122 .smooth_move_unit_msec = 30,
123 .smooth_center_slide_msec = 200,
124 .smooth_combat_step_msec = 10,
125 .ai_manual_turn_done =
TRUE,
126 .auto_center_on_unit =
TRUE,
127 .auto_center_on_automated =
TRUE,
128 .auto_center_on_combat =
FALSE,
129 .auto_center_each_turn =
TRUE,
130 .wakeup_focus =
TRUE,
131 .goto_into_unknown =
TRUE,
132 .center_when_popup_city =
TRUE,
133 .show_previous_turn_messages =
TRUE,
134 .concise_city_production =
FALSE,
135 .auto_turn_done =
FALSE,
136 .meta_accelerators =
TRUE,
137 .ask_city_name =
TRUE,
138 .popup_new_cities =
TRUE,
139 .popup_actor_arrival =
TRUE,
140 .popup_attack_actions =
TRUE,
141 .popup_last_move_to_allied =
TRUE,
142 .keyboardless_goto =
TRUE,
143 .enable_cursor_changes =
TRUE,
144 .separate_unit_selection =
FALSE,
145 .unit_selection_clears_orders =
TRUE,
146 .highlight_our_names =
FT_COLOR(
"#000000",
"#FFFF00"),
148 .voteinfo_bar_use =
TRUE,
149 .voteinfo_bar_always_show =
FALSE,
150 .voteinfo_bar_hide_when_not_player =
FALSE,
151 .voteinfo_bar_new_at_front =
FALSE,
153 .autoaccept_tileset_suggestion =
FALSE,
154 .autoaccept_soundset_suggestion =
FALSE,
155 .autoaccept_musicset_suggestion =
FALSE,
157 .sound_enable_effects =
TRUE,
158 .sound_enable_menu_music =
TRUE,
159 .sound_enable_game_music =
TRUE,
160 .sound_effects_volume = 100,
161 .silent_when_not_in_focus =
FALSE,
164 .update_city_text_in_refresh_tile =
TRUE,
166 .draw_city_outlines =
TRUE,
167 .draw_city_output =
FALSE,
168 .draw_map_grid =
FALSE,
169 .draw_city_names =
TRUE,
170 .draw_city_growth =
TRUE,
171 .draw_city_productions =
TRUE,
172 .draw_city_buycost =
FALSE,
173 .draw_city_trade_routes =
FALSE,
174 .draw_terrain =
TRUE,
175 .draw_coastline =
FALSE,
177 .draw_irrigation =
TRUE,
179 .draw_fortress_airbase =
TRUE,
180 .draw_specials =
TRUE,
182 .draw_pollution =
TRUE,
185 .draw_focus_unit =
FALSE,
186 .draw_fog_of_war =
TRUE,
187 .draw_borders =
TRUE,
188 .draw_native =
FALSE,
189 .draw_full_citybar =
TRUE,
190 .draw_unit_shields =
TRUE,
191 .draw_unit_stack_size =
TRUE,
192 .player_dlg_show_dead_players =
TRUE,
193 .reqtree_show_icons =
TRUE,
194 .reqtree_curved_lines =
FALSE,
212 .zoom_default_level = 1.0,
216 .gui_gtk2_map_scrollbars =
FALSE,
217 .gui_gtk2_dialogs_on_top =
TRUE,
218 .gui_gtk2_show_task_icons =
TRUE,
219 .gui_gtk2_enable_tabs =
TRUE,
220 .gui_gtk2_better_fog =
TRUE,
221 .gui_gtk2_show_chat_message_time =
FALSE,
222 .gui_gtk2_new_messages_go_to_top =
FALSE,
223 .gui_gtk2_show_message_window_buttons =
TRUE,
224 .gui_gtk2_metaserver_tab_first =
FALSE,
225 .gui_gtk2_allied_chat_only =
FALSE,
226 .gui_gtk2_mouse_over_map_focus =
FALSE,
227 .gui_gtk2_chatline_autocompletion =
TRUE,
231 .gui_gtk2_font_city_label =
"Monospace 8",
232 .gui_gtk2_font_notify_label =
"Monospace Bold 9",
233 .gui_gtk2_font_spaceship_label =
"Monospace 8",
234 .gui_gtk2_font_help_label =
"Sans Bold 10",
235 .gui_gtk2_font_help_link =
"Sans 9",
236 .gui_gtk2_font_help_text =
"Monospace 8",
237 .gui_gtk2_font_chatline =
"Monospace 8",
238 .gui_gtk2_font_beta_label =
"Sans Italic 10",
239 .gui_gtk2_font_small =
"Sans 9",
240 .gui_gtk2_font_comment_label =
"Sans Italic 9",
241 .gui_gtk2_font_city_names =
"Sans Bold 10",
242 .gui_gtk2_font_city_productions =
"Serif 10",
243 .gui_gtk2_font_reqtree_text =
"Serif 10",
246 .gui_gtk3_fullscreen =
FALSE,
247 .gui_gtk3_map_scrollbars =
FALSE,
248 .gui_gtk3_dialogs_on_top =
TRUE,
249 .gui_gtk3_show_task_icons =
TRUE,
250 .gui_gtk3_enable_tabs =
TRUE,
251 .gui_gtk3_show_chat_message_time =
FALSE,
252 .gui_gtk3_new_messages_go_to_top =
FALSE,
253 .gui_gtk3_show_message_window_buttons =
TRUE,
254 .gui_gtk3_metaserver_tab_first =
FALSE,
255 .gui_gtk3_allied_chat_only =
FALSE,
257 .gui_gtk3_small_display_layout =
FALSE,
258 .gui_gtk3_mouse_over_map_focus =
FALSE,
259 .gui_gtk3_chatline_autocompletion =
TRUE,
263 .gui_gtk3_governor_range_min = -20,
264 .gui_gtk3_governor_range_max = 20,
265 .gui_gtk3_font_city_label =
"Monospace 8",
266 .gui_gtk3_font_notify_label =
"Monospace Bold 9",
267 .gui_gtk3_font_spaceship_label =
"Monospace 8",
268 .gui_gtk3_font_help_label =
"Sans Bold 10",
269 .gui_gtk3_font_help_link =
"Sans 9",
270 .gui_gtk3_font_help_text =
"Monospace 8",
271 .gui_gtk3_font_chatline =
"Monospace 8",
272 .gui_gtk3_font_beta_label =
"Sans Italic 10",
273 .gui_gtk3_font_small =
"Sans 9",
274 .gui_gtk3_font_comment_label =
"Sans Italic 9",
275 .gui_gtk3_font_city_names =
"Sans Bold 10",
276 .gui_gtk3_font_city_productions =
"Serif 10",
277 .gui_gtk3_font_reqtree_text =
"Serif 10",
281 .gui_gtk3_22_fullscreen =
FALSE,
282 .gui_gtk3_22_map_scrollbars =
FALSE,
283 .gui_gtk3_22_dialogs_on_top =
TRUE,
284 .gui_gtk3_22_show_task_icons =
TRUE,
285 .gui_gtk3_22_enable_tabs =
TRUE,
286 .gui_gtk3_22_show_chat_message_time =
FALSE,
287 .gui_gtk3_22_new_messages_go_to_top =
FALSE,
288 .gui_gtk3_22_show_message_window_buttons =
TRUE,
289 .gui_gtk3_22_metaserver_tab_first =
FALSE,
290 .gui_gtk3_22_allied_chat_only =
FALSE,
292 .gui_gtk3_22_small_display_layout =
FALSE,
293 .gui_gtk3_22_mouse_over_map_focus =
FALSE,
294 .gui_gtk3_22_chatline_autocompletion =
TRUE,
302 .gui_gtk3_22_governor_range_min = -20,
303 .gui_gtk3_22_governor_range_max = 20,
304 .gui_gtk3_22_font_city_label =
"Monospace 8",
305 .gui_gtk3_22_font_notify_label =
"Monospace Bold 9",
306 .gui_gtk3_22_font_spaceship_label =
"Monospace 8",
307 .gui_gtk3_22_font_help_label =
"Sans Bold 10",
308 .gui_gtk3_22_font_help_link =
"Sans 9",
309 .gui_gtk3_22_font_help_text =
"Monospace 8",
310 .gui_gtk3_22_font_chatline =
"Monospace 8",
311 .gui_gtk3_22_font_beta_label =
"Sans Italic 10",
312 .gui_gtk3_22_font_small =
"Sans 9",
313 .gui_gtk3_22_font_comment_label =
"Sans Italic 9",
314 .gui_gtk3_22_font_city_names =
"Sans Bold 10",
315 .gui_gtk3_22_font_city_productions =
"Serif 10",
316 .gui_gtk3_22_font_reqtree_text =
"Serif 10",
320 .gui_gtk4_fullscreen =
FALSE,
321 .gui_gtk4_map_scrollbars =
FALSE,
322 .gui_gtk4_dialogs_on_top =
TRUE,
323 .gui_gtk4_show_task_icons =
TRUE,
324 .gui_gtk4_enable_tabs =
TRUE,
325 .gui_gtk4_show_chat_message_time =
FALSE,
326 .gui_gtk4_new_messages_go_to_top =
FALSE,
327 .gui_gtk4_show_message_window_buttons =
TRUE,
328 .gui_gtk4_metaserver_tab_first =
FALSE,
329 .gui_gtk4_allied_chat_only =
FALSE,
331 .gui_gtk4_small_display_layout =
FALSE,
332 .gui_gtk4_mouse_over_map_focus =
FALSE,
333 .gui_gtk4_chatline_autocompletion =
TRUE,
341 .gui_gtk4_governor_range_min = -20,
342 .gui_gtk4_governor_range_max = 20,
343 .gui_gtk4_font_city_label =
"Monospace 8",
344 .gui_gtk4_font_notify_label =
"Monospace Bold 9",
345 .gui_gtk4_font_spaceship_label =
"Monospace 8",
346 .gui_gtk4_font_help_label =
"Sans Bold 10",
347 .gui_gtk4_font_help_link =
"Sans 9",
348 .gui_gtk4_font_help_text =
"Monospace 8",
349 .gui_gtk4_font_chatline =
"Monospace 8",
350 .gui_gtk4_font_beta_label =
"Sans Italic 10",
351 .gui_gtk4_font_small =
"Sans 9",
352 .gui_gtk4_font_comment_label =
"Sans Italic 9",
353 .gui_gtk4_font_city_names =
"Sans Bold 10",
354 .gui_gtk4_font_city_productions =
"Serif 10",
355 .gui_gtk4_font_reqtree_text =
"Serif 10",
359 .gui_gtk5_fullscreen =
FALSE,
360 .gui_gtk5_map_scrollbars =
FALSE,
361 .gui_gtk5_dialogs_on_top =
TRUE,
362 .gui_gtk5_show_task_icons =
TRUE,
363 .gui_gtk5_enable_tabs =
TRUE,
364 .gui_gtk5_show_chat_message_time =
FALSE,
365 .gui_gtk5_new_messages_go_to_top =
FALSE,
366 .gui_gtk5_show_message_window_buttons =
TRUE,
367 .gui_gtk5_metaserver_tab_first =
FALSE,
368 .gui_gtk5_allied_chat_only =
FALSE,
370 .gui_gtk5_small_display_layout =
FALSE,
371 .gui_gtk5_mouse_over_map_focus =
FALSE,
372 .gui_gtk5_chatline_autocompletion =
TRUE,
380 .gui_gtk5_governor_range_min = -20,
381 .gui_gtk5_governor_range_max = 20,
382 .gui_gtk5_font_city_label =
"Monospace 8",
383 .gui_gtk5_font_notify_label =
"Monospace Bold 9",
384 .gui_gtk5_font_spaceship_label =
"Monospace 8",
385 .gui_gtk5_font_help_label =
"Sans Bold 10",
386 .gui_gtk5_font_help_link =
"Sans 9",
387 .gui_gtk5_font_help_text =
"Monospace 8",
388 .gui_gtk5_font_chatline =
"Monospace 8",
389 .gui_gtk5_font_beta_label =
"Sans Italic 10",
390 .gui_gtk5_font_small =
"Sans 9",
391 .gui_gtk5_font_comment_label =
"Sans Italic 9",
392 .gui_gtk5_font_city_names =
"Sans Bold 10",
393 .gui_gtk5_font_city_productions =
"Serif 10",
394 .gui_gtk5_font_reqtree_text =
"Serif 10",
397 .gui_sdl_fullscreen =
FALSE,
399 .gui_sdl_do_cursor_animation =
TRUE,
400 .gui_sdl_use_color_cursors =
TRUE,
404 .gui_sdl2_fullscreen =
FALSE,
406 .gui_sdl2_swrenderer =
FALSE,
407 .gui_sdl2_do_cursor_animation =
TRUE,
408 .gui_sdl2_use_color_cursors =
TRUE,
409 .gui_sdl2_font_city_names =
"10",
410 .gui_sdl2_font_city_productions =
"10",
411 .gui_sdl2_use_theme_font_size =
TRUE,
412 .gui_sdl2_font_size = 10,
416 .gui_sdl3_fullscreen =
FALSE,
418 .gui_sdl3_do_cursor_animation =
TRUE,
419 .gui_sdl3_use_color_cursors =
TRUE,
420 .gui_sdl3_font_city_names =
"10",
421 .gui_sdl3_font_city_productions =
"10",
422 .gui_sdl3_use_theme_font_size =
TRUE,
423 .gui_sdl3_font_size = 10,
426 .gui_qt_fullscreen =
FALSE,
427 .gui_qt_show_preview =
TRUE,
428 .gui_qt_sidebar_left =
TRUE,
430 .gui_qt_font_default =
"Sans Serif,10,-1,5,75,0,0,0,0,0",
431 .gui_qt_font_notify_label =
"Monospace,8,-1,5,75,0,0,0,0,0",
432 .gui_qt_font_help_label =
"Sans Serif,9,-1,5,50,0,0,0,0,0",
433 .gui_qt_font_help_text =
"Monospace,8,-1,5,50,0,0,0,0,0",
434 .gui_qt_font_chatline =
"Monospace,8,-1,5,50,0,0,0,0,0",
435 .gui_qt_font_city_names =
"Sans Serif,10,-1,5,75,0,0,0,0,0",
436 .gui_qt_font_city_productions =
"Sans Serif,10,-1,5,50,1,0,0,0,0",
437 .gui_qt_font_reqtree_text =
"Sans Serif,10,-1,5,50,1,0,0,0,0",
438 .gui_qt_show_titlebar =
TRUE,
439 .gui_qt_wakeup_text =
"Wake up %1",
440 .gui_qt_show_relations_panel =
TRUE,
441 .gui_qt_show_techs_panel =
TRUE,
442 .gui_qt_show_wonders_panel =
TRUE,
443 .gui_qt_svgflags =
TRUE
461 struct option * (*option_by_number) (
int);
465 const char * (*category_name) (
int);
539 const char * (*name) (
const struct option *);
540 const char * (*description) (
const struct option *);
541 const char * (*help_text) (
const struct option *);
549 const struct option_bool_vtable {
555 const struct option_int_vtable {
563 const struct option_str_vtable {
564 const char * (*get) (
const struct option *);
565 const char * (*def) (
const struct option *);
566 const struct strvec * (*values) (
const struct option *);
570 const struct option_enum_vtable {
573 const struct strvec * (*values) (
const struct option *);
578 const struct option_bitwise_vtable {
581 const struct strvec * (*values) (
const struct option *);
585 const struct option_font_vtable {
586 const char * (*get) (
const struct option *);
587 const char * (*def) (
const struct option *);
588 const char * (*target) (
const struct option *);
592 const struct option_color_vtable {
598 const struct option_video_mode_vtable {
614#define OPTION(poption) ((struct option *) (poption))
616#define OPTION_INIT(optset, spec_type, spec_table_var, common_table, \
617 spec_table, changed_cb, cb_data) { \
620 .common_vtable = &common_table, \
622 .spec_table_var = &spec_table \
624 .changed_callback = changed_cb, \
625 .callback_data = cb_data, \
628#define OPTION_BOOL_INIT(optset, common_table, bool_table, changed_cb) \
629 OPTION_INIT(optset, OT_BOOLEAN, bool_vtable, common_table, bool_table, \
631#define OPTION_INT_INIT(optset, common_table, int_table, changed_cb) \
632 OPTION_INIT(optset, OT_INTEGER, int_vtable, common_table, int_table, \
634#define OPTION_STR_INIT(optset, common_table, str_table, changed_cb, cb_data) \
635 OPTION_INIT(optset, OT_STRING, str_vtable, common_table, str_table, \
637#define OPTION_ENUM_INIT(optset, common_table, enum_table, changed_cb) \
638 OPTION_INIT(optset, OT_ENUM, enum_vtable, common_table, enum_table, \
640#define OPTION_BITWISE_INIT(optset, common_table, bitwise_table, \
642 OPTION_INIT(optset, OT_BITWISE, bitwise_vtable, common_table, \
643 bitwise_table, changed_cb, 0)
644#define OPTION_FONT_INIT(optset, common_table, font_table, changed_cb) \
645 OPTION_INIT(optset, OT_FONT, font_vtable, common_table, font_table, \
647#define OPTION_COLOR_INIT(optset, common_table, color_table, changed_cb) \
648 OPTION_INIT(optset, OT_COLOR, color_vtable, common_table, color_table, \
650#define OPTION_VIDEO_MODE_INIT(optset, common_table, video_mode_table, \
652 OPTION_INIT(optset, OT_VIDEO_MODE, video_mode_vtable, common_table, \
653 video_mode_table, changed_cb, 0)
808 if (
poption->changed_callback) {
996 const struct strvec *values;
1018 const struct strvec *values;
1149 const struct strvec *values;
1387static const struct strvec *
1400static const struct strvec *
1415static const struct strvec *
1506 const struct strvec *(*
const val_accessor) (
const struct option *);
1513 const struct copt_val_name * (*
const name_accessor) (
int value);
1519 struct strvec *support_names, *pretty_names;
1520 const struct copt_val_name * (*
const name_accessor) (
int value);
1526 const char *
const def;
1542#define CLIENT_OPTION(poption) ((struct client_option *) (poption))
1560#define GEN_BOOL_OPTION(oname, odesc, ohelp, ocat, ospec, odef, ocb) \
1562 .base_option = OPTION_BOOL_INIT(&client_optset_static, \
1563 client_option_common_vtable, \
1564 client_option_bool_vtable, ocb), \
1566 .description = odesc, \
1567 .help_text = ohelp, \
1569 .specific = ospec, \
1572 .pvalue = &gui_options.oname, \
1596#define GEN_INT_OPTION(oname, odesc, ohelp, ocat, ospec, odef, omin, omax, ocb) \
1598 .base_option = OPTION_INT_INIT(&client_optset_static, \
1599 client_option_common_vtable, \
1600 client_option_int_vtable, ocb), \
1602 .description = odesc, \
1603 .help_text = ohelp, \
1605 .specific = ospec, \
1608 .pvalue = &gui_options.oname, \
1634#define GEN_STR_OPTION(oname, odesc, ohelp, ocat, ospec, odef, ocb, cbd) \
1636 .base_option = OPTION_STR_INIT(&client_optset_static, \
1637 client_option_common_vtable, \
1638 client_option_str_vtable, ocb, cbd), \
1640 .description = odesc, \
1641 .help_text = ohelp, \
1643 .specific = ospec, \
1646 .pvalue = gui_options.oname, \
1647 .size = sizeof(gui_options.oname), \
1649 .val_accessor = NULL \
1675#define GEN_STR_LIST_OPTION(oname, odesc, ohelp, ocat, ospec, odef, oacc, ocb, cbd) \
1677 .base_option = OPTION_STR_INIT(&client_optset_static, \
1678 client_option_common_vtable, \
1679 client_option_str_vtable, ocb, cbd), \
1681 .description = odesc, \
1682 .help_text = ohelp, \
1684 .specific = ospec, \
1687 .pvalue = gui_options.oname, \
1688 .size = sizeof(gui_options.oname), \
1690 .val_accessor = oacc \
1712#define GEN_ENUM_OPTION(oname, odesc, ohelp, ocat, ospec, odef, oacc, ocb) \
1714 .base_option = OPTION_ENUM_INIT(&client_optset_static, \
1715 client_option_common_vtable, \
1716 client_option_enum_vtable, ocb), \
1718 .description = odesc, \
1719 .help_text = ohelp, \
1721 .specific = ospec, \
1724 .pvalue = (int *) &gui_options.oname, \
1726 .support_names = NULL, \
1727 .pretty_names = NULL, \
1728 .name_accessor = oacc \
1750#define GEN_BITWISE_OPTION(oname, odesc, ohelp, ocat, ospec, odef, oacc, \
1753 .base_option = OPTION_BITWISE_INIT(&client_optset_static, \
1754 client_option_common_vtable, \
1755 client_option_bitwise_vtable, ocb), \
1757 .description = odesc, \
1758 .help_text = ohelp, \
1760 .specific = ospec, \
1763 .pvalue = &gui_options.oname, \
1765 .support_names = NULL, \
1766 .pretty_names = NULL, \
1767 .name_accessor = oacc \
1791#define GEN_FONT_OPTION(oname, otgt, odesc, ohelp, ocat, ospec, odef, ocb) \
1793 .base_option = OPTION_FONT_INIT(&client_optset_static, \
1794 client_option_common_vtable, \
1795 client_option_font_vtable, ocb), \
1797 .description = odesc, \
1798 .help_text = ohelp, \
1800 .specific = ospec, \
1803 .pvalue = gui_options.oname, \
1804 .size = sizeof(gui_options.oname), \
1827#define GEN_COLOR_OPTION(oname, odesc, ohelp, ocat, ospec, odef_fg, \
1830 .base_option = OPTION_COLOR_INIT(&client_optset_static, \
1831 client_option_common_vtable, \
1832 client_option_color_vtable, ocb), \
1834 .description = odesc, \
1835 .help_text = ohelp, \
1837 .specific = ospec, \
1840 .pvalue = &gui_options.oname, \
1841 .def = FT_COLOR(odef_fg, odef_bg) \
1862#define GEN_VIDEO_OPTION(oname, odesc, ohelp, ocat, ospec, odef_width, \
1865 .base_option = OPTION_VIDEO_MODE_INIT(&client_optset_static, \
1866 client_option_common_vtable, \
1867 client_option_video_mode_vtable, \
1870 .description = odesc, \
1871 .help_text = ohelp, \
1873 .specific = ospec, \
1876 .pvalue = &gui_options.oname, \
1877 .def = VIDEO_MODE(odef_width, odef_height) \
1895 {
"SPLIT",
N_(
"Split") },
1897 {
"SEPARATE",
N_(
"Separate") },
1899 {
"MERGED",
N_(
"Merged") }
1902 return (0 <= value && value <
ARRAY_SIZE(names)
1903 ? names + value :
NULL);
1915 {
"ENABLED",
N_(
"Enabled") },
1917 {
"DISABLED",
N_(
"Disabled") },
1919 {
"RULESET",
N_(
"Ruleset") }
1922 return (0 <= value && value <
ARRAY_SIZE(names)
1923 ? names + value :
NULL);
1940 N_(
"This is the default login username that will be used "
1941 "in the connection dialogs or with the -a command-line "
1945 N_(
"Automatically update \"Server\" and \"Server port\" "
1946 "options to match your latest connection, so by "
1947 "default you connect to the same server you used "
1948 "on the previous run. You should enable "
1949 "saving options on exit too, so that the automatic "
1950 "updates to the options get saved too."),
1954 N_(
"This is the default server hostname that will be used "
1955 "in the connection dialogs or with the -a command-line "
1960 N_(
"This is the default server port that will be used "
1961 "in the connection dialogs or with the -a command-line "
1966 N_(
"The metaserver is a host that the client contacts to "
1967 "find out about games on the internet. Don't change "
1968 "this from its default value unless you know what "
1972 N_(
"Send heartbeat messages to the server"),
1973 N_(
"Periodically send an empty heartbeat message to the "
1974 "server to probe whether the connection is still up. "
1975 "This can help to make it obvious when the server has "
1976 "cut the connection due to a connectivity outage, if "
1977 "the client would otherwise sit idle for a long period."),
1980 N_(
"Followtag override"),
1982 N_(
"Followtag determines which kind of new freeciv versions' "
1983 "availability gets checked from the metaserver. Special "
1984 "value 'builtin' means that value builtin to the client "
1988 N_(
"Send desired settings to the server"),
1989 N_(
"In single-player mode client usually sends user's "
1990 "desired server settings to the server it has "
1991 "launched internally. By disabling this option one "
1992 "can prevent such override of server settings from "
1993 "other sources, such as settings balanced for a "
1998 N_(
"This is the soundset that will be used. Changing "
1999 "this is the same as using the -S command-line "
2000 "parameter. Use modpack installer utility to install "
2001 "additional soundsets."),
2005 N_(
"This is the musicset that will be used. Changing "
2006 "this is the same as using the -m command-line "
2007 "parameter. Use modpack installer utility to install "
2008 "additional musicsets."),
2013 N_(
"If you have a problem with sound, try changing "
2014 "the sound plugin. The new plugin won't take "
2015 "effect until you restart Freeciv. Changing this "
2016 "is the same as using the -P command-line option."),
2019 N_(
"The chat log file"),
2020 N_(
"The name of the chat log file."),
2026 N_(
"By changing this option you change the "
2031 N_(
"By changing this option you change the "
2036 N_(
"By changing this option you change the "
2041 N_(
"By changing this option you change the "
2046 N_(
"By changing this option you change the "
2051 N_(
"By changing this option you change the "
2062 N_(
"Select the tileset used with Square based maps. "
2063 "This may change the currently active tileset, if "
2064 "you are playing on such a map, in which "
2065 "case this is the same as using the -t "
2066 "command-line parameter. "
2067 "Use modpack installer utility to install "
2068 "additional tilesets."),
2072 N_(
"Select the tileset used with Hex maps. "
2073 "This may change the currently active tileset, if "
2074 "you are playing on such a map, in which "
2075 "case this is the same as using the -t "
2076 "command-line parameter. "
2077 "Use modpack installer utility to install "
2078 "additional tilesets."),
2082 N_(
"Select the tileset used with Iso-Hex maps. "
2083 "This may change the currently active tileset, if "
2084 "you are playing on such a map, in which "
2085 "case this is the same as using the -t "
2086 "command-line parameter."
2087 "Use modpack installer utility to install "
2088 "additional tilesets."),
2093 N_(
"Setting this option will draw a line at the city "
2098 N_(
"Setting this option will draw city output for every "
2103 N_(
"Setting this option will draw a grid over the map."),
2107 N_(
"Setting this option will display a 'city bar' "
2108 "containing useful information beneath each city. "
2109 "Disabling this option will display only the city's "
2110 "name and, optionally, production."),
2114 N_(
"Setting this option will draw the names of the cities "
2119 N_(
"Setting this option will draw in how many turns the "
2120 "cities will grow or shrink."),
2124 N_(
"Setting this option will draw what the cities are "
2125 "currently building on the map."),
2129 N_(
"Setting this option will draw how much gold is "
2130 "needed to buy the production of the cities."),
2134 N_(
"Setting this option will draw trade route lines "
2135 "between cities which have trade routes."),
2139 N_(
"Setting this option will draw the terrain."),
2143 N_(
"Setting this option will draw a line to separate the "
2144 "land from the ocean."),
2148 N_(
"Setting this option will draw all kind of paths "
2153 N_(
"Setting this option will draw the irrigation systems "
2158 N_(
"Setting this option will draw the mines on the map."),
2162 N_(
"Setting this option will draw the bases on the map."),
2166 N_(
"Setting this option will draw the resources on the "
2171 N_(
"Setting this option will draw the huts on the "
2176 N_(
"Setting this option will draw pollution and "
2177 "nuclear fallout on the map."),
2181 N_(
"Setting this option will draw the cities on the map."),
2185 N_(
"Setting this option will draw the units on the map."),
2189 N_(
"Solid unit background color"),
2190 N_(
"Setting this option will cause units on the map "
2191 "view to be drawn with a solid background color "
2192 "instead of the flag backdrop."),
2196 N_(
"Setting this option will draw a shield icon "
2197 "as the flags on units. If unset, the full flag will "
2201 N_(
"Setting this option will draw a numbers indicating "
2202 "size of the unit stacks. Not all clients support "
2206 N_(
"Setting this option will cause the currently focused "
2207 "unit(s) to always be drawn, even if units are not "
2208 "otherwise being drawn (for instance if 'Draw the units' "
2213 N_(
"Setting this option will draw the fog of war."),
2217 N_(
"Setting this option will draw the national borders."),
2222 N_(
"Setting this option will highlight tiles that the "
2223 "currently selected unit cannot enter unaided due to "
2224 "non-native terrain. (If multiple units are selected, "
2225 "only tiles that all of them can enter are indicated.)"),
2229 N_(
"Show dead players in Nations report"),
2230 N_(
"This option controls whether defeated nations are "
2231 "shown on the Nations report page."),
2235 N_(
"Set this option to have a \"bell\" event be generated "
2236 "at the start of a new turn. You can control the "
2237 "behavior of the \"bell\" event by editing the message "
2241 N_(
"Unit movement animation time (milliseconds)"),
2242 N_(
"This option controls how long unit \"animation\" takes "
2243 "when a unit moves on the map view. Set it to 0 to "
2244 "disable animation entirely."),
2247 N_(
"Mapview recentering time (milliseconds)"),
2248 N_(
"When the map view is recentered, it will slide "
2249 "smoothly over the map to its new position. This "
2250 "option controls how long this slide lasts. Set it to "
2251 "0 to disable mapview sliding entirely."),
2254 N_(
"Combat animation step time (milliseconds)"),
2255 N_(
"This option controls the speed of combat animation "
2256 "between units on the mapview. Set it to 0 to disable "
2257 "animation entirely."),
2260 N_(
"Show icons in the technology tree"),
2261 N_(
"Setting this option will display icons "
2262 "on the technology tree diagram. Turning "
2263 "this option off makes the technology tree "
2267 N_(
"Use curved lines in the technology tree"),
2268 N_(
"Setting this option make the technology tree "
2269 "diagram use curved lines to show technology "
2270 "relations. Turning this option off causes "
2271 "the lines to be drawn straight."),
2275 N_(
"Color to highlight your player/user name"),
2276 N_(
"If set, your player and user name in the new chat "
2277 "messages will be highlighted using this color as "
2278 "background. If not set, it will just not highlight "
2282 N_(
"Disable this option if you do not want to "
2283 "press the Turn Done button manually when watching "
2287 N_(
"Set this option to have the active unit centered "
2288 "automatically when the unit focus changes."),
2291 N_(
"Disable this option if you do not want to see "
2292 "automated units autocentered and animated."),
2295 N_(
"Set this option to have any combat be centered "
2296 "automatically. Disabling this will speed up the time "
2297 "between turns but may cause you to miss combat "
2301 N_(
"Set this option to have the client automatically "
2302 "recenter the map on a suitable location at the "
2303 "start of each turn."),
2306 N_(
"Set this option to have newly awoken units be "
2307 "focused automatically."),
2310 N_(
"If this option is set then a goto may be initiated "
2311 "by left-clicking and then holding down the mouse "
2312 "button while dragging the mouse onto a different "
2316 N_(
"Setting this option will make the game consider "
2317 "moving into unknown tiles. If not, then goto routes "
2318 "will detour around or be blocked by unknown tiles."),
2321 N_(
"Setting this option makes the mapview center on a "
2322 "city when its city dialog is popped up."),
2324 GEN_BOOL_OPTION(show_previous_turn_messages,
N_(
"Show messages from previous turn"),
2325 N_(
"Message Window shows messages also from previous turn. "
2326 "This makes sure you don't miss messages received in the end of "
2327 "the turn, just before the window gets cleared."),
2330 N_(
"Set this option to make the city production (as shown "
2331 "in the city dialog) to be more compact."),
2334 N_(
"Setting this option makes your turn end automatically "
2335 "when all your units are done moving."),
2338 N_(
"Disabling this option will make the names of newly "
2339 "founded cities be chosen automatically by the server."),
2342 N_(
"Setting this option will pop up a newly-founded "
2343 "city's city dialog automatically."),
2346 N_(
"If this option is enabled, when a unit arrives at "
2347 "a city where it can perform an action like "
2348 "establishing a trade route, helping build a wonder, or "
2349 "establishing an embassy, a window will pop up asking "
2350 "which action should be performed. "
2351 "Disabling this option means you will have to do the "
2352 "action manually by pressing either 'r' (for a trade "
2353 "route), 'b' (for building a wonder) or 'd' (for a "
2354 "spy action) when the unit is in the city."),
2357 N_(
"If this option is enabled, when a unit arrives at a "
2358 "target it can attack, a window will pop up asking "
2359 "which action should be performed even if an attack "
2360 "action is legal and no other interesting action are. "
2361 "This allows you to change your mind or to select an "
2362 "uninteresting action."),
2369 N_(
"Pop up actions when final move to allied tile"),
2370 N_(
"If this option is enabled the final move in a unit's"
2371 " orders to a tile with allied units or cities it can"
2372 " perform an action to is interpreted as an attempted"
2373 " action. This makes the action selection dialog pop up"
2374 " while the unit is at the adjacent tile."
2375 " This can, in cases where the action requires that"
2376 " the actor unit has moves left, save a turn."
2377 " The down side is that the unit remains adjacent to"
2378 " rather than inside the protection of an allied city"
2382 N_(
"This option controls whether the client should "
2383 "try to change the mouse cursor depending on what "
2384 "is being pointed at, as well as to indicate "
2385 "changes in the client or server state."),
2388 N_(
"If this option is enabled, when both cities and "
2389 "units are present in the selection rectangle, only "
2390 "cities will be selected. See the help on Controls."),
2393 N_(
"Clear unit orders on selection"),
2394 N_(
"Enabling this option will cause unit orders to be "
2395 "cleared as soon as one or more units are selected. If "
2396 "this option is disabled, busy units will not stop "
2397 "their current activity when selected. Giving them "
2398 "new orders will clear their current ones; pressing "
2399 "<space> once will clear their orders and leave them "
2400 "selected, and pressing <space> a second time will "
2404 N_(
"If this option is turned on, the vote bar will be "
2405 "displayed to show vote information."),
2408 N_(
"Always display the vote bar"),
2409 N_(
"If this option is turned on, the vote bar will never "
2410 "be hidden, even if there is no running vote."),
2413 N_(
"Do not show vote bar if not a player"),
2414 N_(
"If this option is enabled, the client won't show the "
2415 "vote bar if you are not a player."),
2418 N_(
"If this option is enabled, then new votes will go "
2419 "to the front of the vote list."),
2422 N_(
"Autoaccept tileset suggestions"),
2423 N_(
"If this option is enabled, any tileset suggested by "
2424 "the ruleset is automatically used; otherwise you "
2425 "are prompted to change tileset."),
2429 N_(
"Enable sound effects"),
2430 N_(
"Play sound effects, assuming there's suitable "
2431 "sound plugin and soundset with the sounds."),
2434 N_(
"Enable in-game music"),
2435 N_(
"Play music during the game, assuming there's suitable "
2436 "sound plugin and musicset with in-game tracks."),
2439 N_(
"Enable menu music"),
2440 N_(
"Play music while not in actual game, "
2441 "assuming there's suitable "
2442 "sound plugin and musicset with menu music tracks."),
2445 N_(
"Silent when not in focus"),
2446 N_(
"Fade all sound out when the client is not in focus. "
2447 "Not all clients support this."),
2451 N_(
"Volume scale from 0-100"),
2457 N_(
"Autoaccept soundset suggestions"),
2458 N_(
"If this option is enabled, any soundset suggested by "
2459 "the ruleset is automatically used."),
2462 N_(
"Autoaccept musicset suggestions"),
2463 N_(
"If this option is enabled, any musicset suggested by "
2464 "the ruleset is automatically used."),
2468 N_(
"Background layer"),
2469 N_(
"The background layer of the overview shows just "
2473 N_(
"Terrain relief map layer"),
2474 N_(
"The relief layer shows all terrains on the map."),
2477 N_(
"Borders layer"),
2478 N_(
"The borders layer of the overview shows which tiles "
2479 "are owned by each player."),
2482 N_(
"Borders layer on ocean tiles"),
2483 N_(
"The borders layer of the overview are drawn on "
2484 "ocean tiles as well (this may look ugly with many "
2485 "islands). This option is only of interest if you "
2486 "have set the option \"Borders layer\" already."),
2490 N_(
"Enabling this will draw units on the overview."),
2494 N_(
"Enabling this will draw cities on the overview."),
2497 N_(
"Overview fog of war"),
2498 N_(
"Enabling this will show fog of war on the "
2505 N_(
"The image toolkit and file format used for "
2510 N_(
"Zoom factor for map images"),
2511 N_(
"The magnification used for map images."),
2514 N_(
"Show area within borders"),
2515 N_(
"If set, the territory of each nation is shown "
2516 "on the saved image."),
2520 N_(
"If set, the border of each nation is shown on the "
2525 N_(
"If set, cities are shown on the saved image."),
2528 N_(
"Show fog of war"),
2529 N_(
"If set, the extent of fog of war is shown on the "
2533 N_(
"Show full terrain"),
2534 N_(
"If set, terrain relief is shown with different colors "
2535 "in the saved image; otherwise, only land and water are "
2540 N_(
"If set, units are shown in the saved image."),
2543 N_(
"Map image file name"),
2544 N_(
"The base part of the filename for saved map images. "
2545 "A string identifying the game turn and map options will "
2631 "Sans Bold 10",
NULL),
2646 N_(
"Disable this option to hide the scrollbars on the "
2738 "Sans Bold 10",
NULL),
2750 N_(
"If this option is set the client will use the "
2751 "whole screen area for drawing."),
2754 N_(
"Disable this option to hide the scrollbars on the "
2758 N_(
"If this option is set then dialog windows will always "
2759 "remain in front of the main Freeciv window. "
2760 "Disabling this has no effect in fullscreen mode."),
2763 N_(
"Disabling this will turn off the unit and building "
2764 "icons in the worklist dialog and the production "
2765 "tab of the city dialog."),
2768 N_(
"If this option is enabled then report dialogs will "
2769 "be shown as separate tabs rather than in popup "
2773 N_(
"Show time for each chat message"),
2774 N_(
"If this option is enabled then all chat messages "
2775 "will be prefixed by a time string of the form "
2776 "[hour:minute:second]."),
2779 N_(
"New message events go to top of list"),
2780 N_(
"If this option is enabled, new events in the "
2781 "message window will appear at the top of the list, "
2782 "rather than being appended at the bottom."),
2785 N_(
"Show extra message window buttons"),
2786 N_(
"If this option is enabled, there will be two "
2787 "buttons displayed in the message window for "
2788 "inspecting a city and going to a location. If this "
2789 "option is disabled, these buttons will not appear "
2790 "(you can still double-click with the left mouse "
2791 "button or right-click on a row to inspect or goto "
2792 "respectively). This option will only take effect "
2793 "once the message window is closed and reopened."),
2796 N_(
"Metaserver tab first in network page"),
2797 N_(
"If this option is enabled, the metaserver tab will "
2798 "be the first notebook tab in the network page. This "
2799 "option requires a restart in order to take effect."),
2802 N_(
"Plain chat messages are sent to allies only"),
2803 N_(
"If this option is enabled, then plain messages "
2804 "typed into the chat entry while the game is "
2805 "running will only be sent to your allies. "
2806 "Otherwise plain messages will be sent as "
2807 "public chat messages. To send a public chat "
2808 "message with this option enabled, prefix the "
2809 "message with a single colon ':'. This option "
2810 "can also be set using a toggle button beside "
2811 "the chat entry (only visible in multiplayer "
2815 N_(
"Messages and Chat reports location"),
2818 N_(
"Controls where the Messages and Chat reports "
2819 "appear relative to the main view containing the map.\n"
2820 "'Split' allows all three to be seen simultaneously, "
2821 "which is best for multiplayer, but requires a large "
2822 "window to be usable.\n"
2823 "'Separate' puts Messages and Chat in a notebook "
2824 "separate from the main view, so that one of them "
2825 "can always be seen alongside the main view.\n"
2826 "'Merged' makes the Messages and Chat reports into "
2827 "tabs alongside the map and other reports; this "
2828 "allows a larger map view on small screens.\n"
2829 "This option requires a restart in order to take "
2834 N_(
"Arrange widgets for small displays"),
2835 N_(
"If this option is enabled, widgets in the main "
2836 "window will be arranged so that they take up the "
2837 "least amount of total screen space. Specifically, "
2838 "the left panel containing the overview, player "
2839 "status, and the unit information box will be "
2840 "extended over the entire left side of the window. "
2841 "This option requires a restart in order to take "
2844 N_(
"Mouse over the map widget selects it automatically"),
2845 N_(
"If this option is enabled, then the map will be "
2846 "focused when the mouse hovers over it."),
2849 N_(
"Player or user name autocompletion"),
2850 N_(
"If this option is turned on, the tabulation key "
2851 "will be used in the chatline to complete the word you "
2852 "are typing with the name of a player or a user."),
2855 N_(
"Width of the city dialog"),
2856 N_(
"This value is only used if the width of the city "
2857 "dialog is saved."),
2862 N_(
"Height of the city dialog"),
2863 N_(
"This value is only used if the height of the city "
2864 "dialog is saved."),
2869 N_(
"Width of the help dialog"),
2875 N_(
"Height of the help dialog"),
2881 N_(
"Width of the options dialog"),
2887 N_(
"Height of the options dialog"),
2893 N_(
"Popup tech help when gained"),
2894 N_(
"Controls if tech help should be opened when "
2895 "new tech has been gained.\n"
2896 "'Ruleset' means that behavior suggested by "
2901 N_(
"Minimum surplus for a governor"),
2902 N_(
"The lower limit of the range for requesting surpluses "
2903 "from the governor."),
2908 N_(
"Maximum surplus for a governor"),
2909 N_(
"The higher limit of the range for requesting surpluses "
2910 "from the governor."),
2916 N_(
"This font is used to display the city labels on city "
2922 N_(
"This font is used to display server reports such "
2923 "as the demographic report or historian publications."),
2927 N_(
"Spaceship Label"),
2928 N_(
"This font is used to display the spaceship widgets."),
2933 N_(
"This font is used to display the help headers in the "
2939 N_(
"This font is used to display the help links in the "
2945 N_(
"This font is used to display the help body text in "
2946 "the help window."),
2950 N_(
"Chatline Area"),
2951 N_(
"This font is used to display the text in the "
2957 N_(
"This font is used to display the beta label."),
2962 N_(
"This font is used for any small font request. For "
2963 "example, it is used for display the building lists "
2964 "in the city dialog, the Economy report or the Units "
2969 N_(
"Comment Label"),
2970 N_(
"This font is used to display comment labels, such as "
2971 "in the governor page of the city dialogs."),
2976 N_(
"This font is used to the display the city names "
2979 "Sans Bold 10",
NULL),
2980 GEN_FONT_OPTION(gui_gtk3_22_font_city_productions,
"city_productions",
2981 N_(
"City Productions"),
2982 N_(
"This font is used to display the city production "
2987 N_(
"Requirement Tree"),
2988 N_(
"This font is used to the display the requirement tree "
2989 "in the Research report."),
2995 N_(
"If this option is set the client will use the "
2996 "whole screen area for drawing."),
2999 N_(
"Disable this option to hide the scrollbars on the "
3003 N_(
"If this option is set then dialog windows will always "
3004 "remain in front of the main Freeciv window. "
3005 "Disabling this has no effect in fullscreen mode."),
3008 N_(
"Disabling this will turn off the unit and building "
3009 "icons in the worklist dialog and the production "
3010 "tab of the city dialog."),
3013 N_(
"If this option is enabled then report dialogs will "
3014 "be shown as separate tabs rather than in popup "
3018 N_(
"Show time for each chat message"),
3019 N_(
"If this option is enabled then all chat messages "
3020 "will be prefixed by a time string of the form "
3021 "[hour:minute:second]."),
3024 N_(
"New message events go to top of list"),
3025 N_(
"If this option is enabled, new events in the "
3026 "message window will appear at the top of the list, "
3027 "rather than being appended at the bottom."),
3030 N_(
"Show extra message window buttons"),
3031 N_(
"If this option is enabled, there will be two "
3032 "buttons displayed in the message window for "
3033 "inspecting a city and going to a location. If this "
3034 "option is disabled, these buttons will not appear "
3035 "(you can still double-click with the left mouse "
3036 "button or right-click on a row to inspect or goto "
3037 "respectively). This option will only take effect "
3038 "once the message window is closed and reopened."),
3041 N_(
"Metaserver tab first in network page"),
3042 N_(
"If this option is enabled, the metaserver tab will "
3043 "be the first notebook tab in the network page. This "
3044 "option requires a restart in order to take effect."),
3047 N_(
"Plain chat messages are sent to allies only"),
3048 N_(
"If this option is enabled, then plain messages "
3049 "typed into the chat entry while the game is "
3050 "running will only be sent to your allies. "
3051 "Otherwise plain messages will be sent as "
3052 "public chat messages. To send a public chat "
3053 "message with this option enabled, prefix the "
3054 "message with a single colon ':'. This option "
3055 "can also be set using a toggle button beside "
3056 "the chat entry (only visible in multiplayer "
3060 N_(
"Messages and Chat reports location"),
3063 N_(
"Controls where the Messages and Chat reports "
3064 "appear relative to the main view containing the map.\n"
3065 "'Split' allows all three to be seen simultaneously, "
3066 "which is best for multiplayer, but requires a large "
3067 "window to be usable.\n"
3068 "'Separate' puts Messages and Chat in a notebook "
3069 "separate from the main view, so that one of them "
3070 "can always be seen alongside the main view.\n"
3071 "'Merged' makes the Messages and Chat reports into "
3072 "tabs alongside the map and other reports; this "
3073 "allows a larger map view on small screens.\n"
3074 "This option requires a restart in order to take "
3079 N_(
"Arrange widgets for small displays"),
3080 N_(
"If this option is enabled, widgets in the main "
3081 "window will be arranged so that they take up the "
3082 "least amount of total screen space. Specifically, "
3083 "the left panel containing the overview, player "
3084 "status, and the unit information box will be "
3085 "extended over the entire left side of the window. "
3086 "This option requires a restart in order to take "
3089 N_(
"Mouse over the map widget selects it automatically"),
3090 N_(
"If this option is enabled, then the map will be "
3091 "focused when the mouse hovers over it."),
3094 N_(
"Player or user name autocompletion"),
3095 N_(
"If this option is turned on, the tabulation key "
3096 "will be used in the chatline to complete the word you "
3097 "are typing with the name of a player or a user."),
3100 N_(
"Width of the city dialog"),
3101 N_(
"This value is only used if the width of the city "
3102 "dialog is saved."),
3107 N_(
"Height of the city dialog"),
3108 N_(
"This value is only used if the height of the city "
3109 "dialog is saved."),
3114 N_(
"Width of the help dialog"),
3115 N_(
"This value is only used if the width of the help "
3116 "dialog is saved."),
3121 N_(
"Height of the help dialog"),
3122 N_(
"This value is only used if the height of the help "
3123 "dialog is saved."),
3128 N_(
"Width of the options dialog"),
3134 N_(
"Height of the options dialog"),
3140 N_(
"Popup tech help when gained"),
3141 N_(
"Controls if tech help should be opened when "
3142 "new tech has been gained.\n"
3143 "'Ruleset' means that behavior suggested by "
3148 N_(
"Minimum surplus for a governor"),
3149 N_(
"The lower limit of the range for requesting surpluses "
3150 "from the governor."),
3155 N_(
"Maximum surplus for a governor"),
3156 N_(
"The higher limit of the range for requesting surpluses "
3157 "from the governor."),
3163 N_(
"This font is used to display the city labels on city "
3169 N_(
"This font is used to display server reports such "
3170 "as the demographic report or historian publications."),
3174 N_(
"Spaceship Label"),
3175 N_(
"This font is used to display the spaceship widgets."),
3180 N_(
"This font is used to display the help headers in the "
3186 N_(
"This font is used to display the help links in the "
3192 N_(
"This font is used to display the help body text in "
3193 "the help window."),
3197 N_(
"Chatline Area"),
3198 N_(
"This font is used to display the text in the "
3204 N_(
"This font is used to display the beta label."),
3209 N_(
"This font is used for any small font request. For "
3210 "example, it is used for display the building lists "
3211 "in the city dialog, the Economy report or the Units "
3216 N_(
"Comment Label"),
3217 N_(
"This font is used to display comment labels, such as "
3218 "in the governor page of the city dialogs."),
3223 N_(
"This font is used to the display the city names "
3226 "Sans Bold 10",
NULL),
3228 N_(
"City Productions"),
3229 N_(
"This font is used to display the city production "
3234 N_(
"Requirement Tree"),
3235 N_(
"This font is used to the display the requirement tree "
3236 "in the Research report."),
3242 N_(
"If this option is set the client will use the "
3243 "whole screen area for drawing."),
3246 N_(
"Disable this option to hide the scrollbars on the "
3250 N_(
"If this option is set then dialog windows will always "
3251 "remain in front of the main Freeciv window. "
3252 "Disabling this has no effect in fullscreen mode."),
3255 N_(
"Disabling this will turn off the unit and building "
3256 "icons in the worklist dialog and the production "
3257 "tab of the city dialog."),
3260 N_(
"If this option is enabled then report dialogs will "
3261 "be shown as separate tabs rather than in popup "
3265 N_(
"Show time for each chat message"),
3266 N_(
"If this option is enabled then all chat messages "
3267 "will be prefixed by a time string of the form "
3268 "[hour:minute:second]."),
3271 N_(
"New message events go to top of list"),
3272 N_(
"If this option is enabled, new events in the "
3273 "message window will appear at the top of the list, "
3274 "rather than being appended at the bottom."),
3277 N_(
"Show extra message window buttons"),
3278 N_(
"If this option is enabled, there will be two "
3279 "buttons displayed in the message window for "
3280 "inspecting a city and going to a location. If this "
3281 "option is disabled, these buttons will not appear "
3282 "(you can still double-click with the left mouse "
3283 "button or right-click on a row to inspect or goto "
3284 "respectively). This option will only take effect "
3285 "once the message window is closed and reopened."),
3288 N_(
"Metaserver tab first in network page"),
3289 N_(
"If this option is enabled, the metaserver tab will "
3290 "be the first notebook tab in the network page. This "
3291 "option requires a restart in order to take effect."),
3294 N_(
"Plain chat messages are sent to allies only"),
3295 N_(
"If this option is enabled, then plain messages "
3296 "typed into the chat entry while the game is "
3297 "running will only be sent to your allies. "
3298 "Otherwise plain messages will be sent as "
3299 "public chat messages. To send a public chat "
3300 "message with this option enabled, prefix the "
3301 "message with a single colon ':'. This option "
3302 "can also be set using a toggle button beside "
3303 "the chat entry (only visible in multiplayer "
3307 N_(
"Messages and Chat reports location"),
3310 N_(
"Controls where the Messages and Chat reports "
3311 "appear relative to the main view containing the map.\n"
3312 "'Split' allows all three to be seen simultaneously, "
3313 "which is best for multiplayer, but requires a large "
3314 "window to be usable.\n"
3315 "'Separate' puts Messages and Chat in a notebook "
3316 "separate from the main view, so that one of them "
3317 "can always be seen alongside the main view.\n"
3318 "'Merged' makes the Messages and Chat reports into "
3319 "tabs alongside the map and other reports; this "
3320 "allows a larger map view on small screens.\n"
3321 "This option requires a restart in order to take "
3326 N_(
"Arrange widgets for small displays"),
3327 N_(
"If this option is enabled, widgets in the main "
3328 "window will be arranged so that they take up the "
3329 "least amount of total screen space. Specifically, "
3330 "the left panel containing the overview, player "
3331 "status, and the unit information box will be "
3332 "extended over the entire left side of the window. "
3333 "This option requires a restart in order to take "
3336 N_(
"Mouse over the map widget selects it automatically"),
3337 N_(
"If this option is enabled, then the map will be "
3338 "focused when the mouse hovers over it."),
3341 N_(
"Player or user name autocompletion"),
3342 N_(
"If this option is turned on, the tabulation key "
3343 "will be used in the chatline to complete the word you "
3344 "are typing with the name of a player or a user."),
3347 N_(
"Width of the city dialog"),
3348 N_(
"This value is only used if the width of the city "
3349 "dialog is saved."),
3354 N_(
"Height of the city dialog"),
3355 N_(
"This value is only used if the height of the city "
3356 "dialog is saved."),
3361 N_(
"Width of the help dialog"),
3362 N_(
"This value is only used if the width of the help "
3363 "dialog is saved."),
3368 N_(
"Height of the city dialog"),
3369 N_(
"This value is only used if the height of the city "
3370 "dialog is saved."),
3375 N_(
"Width of the options dialog"),
3381 N_(
"Height of the options dialog"),
3387 N_(
"Popup tech help when gained"),
3388 N_(
"Controls if tech help should be opened when "
3389 "new tech has been gained.\n"
3390 "'Ruleset' means that behavior suggested by "
3395 N_(
"Minimum surplus for a governor"),
3396 N_(
"The lower limit of the range for requesting surpluses "
3397 "from the governor."),
3402 N_(
"Maximum surplus for a governor"),
3403 N_(
"The higher limit of the range for requesting surpluses "
3404 "from the governor."),
3410 N_(
"This font is used to display the city labels on city "
3416 N_(
"This font is used to display server reports such "
3417 "as the demographic report or historian publications."),
3421 N_(
"Spaceship Label"),
3422 N_(
"This font is used to display the spaceship widgets."),
3427 N_(
"This font is used to display the help headers in the "
3433 N_(
"This font is used to display the help links in the "
3439 N_(
"This font is used to display the help body text in "
3440 "the help window."),
3444 N_(
"Chatline Area"),
3445 N_(
"This font is used to display the text in the "
3451 N_(
"This font is used to display the beta label."),
3456 N_(
"This font is used for any small font request. For "
3457 "example, it is used for display the building lists "
3458 "in the city dialog, the Economy report or the Units "
3463 N_(
"Comment Label"),
3464 N_(
"This font is used to display comment labels, such as "
3465 "in the governor page of the city dialogs."),
3470 N_(
"This font is used to the display the city names "
3473 "Sans Bold 10",
NULL),
3475 N_(
"City Productions"),
3476 N_(
"This font is used to display the city production "
3481 N_(
"Requirement Tree"),
3482 N_(
"This font is used to the display the requirement tree "
3483 "in the Research report."),
3500 N_(
"If this option is set the client will use the "
3501 "whole screen area for drawing."),
3504 N_(
"This option controls the resolution of the "
3505 "selected screen."),
3508 N_(
"Usually hardware rendering is used when possible. "
3509 "With this option set, software rendering is always used."),
3512 N_(
"If this option is disabled, the cursor will "
3513 "always be displayed as static."),
3516 N_(
"If this option is disabled, the cursor will "
3517 "always be displayed in black and white."),
3521 N_(
"The size of font used to the display the city names "
3526 N_(
"City Productions"),
3527 N_(
"The size of font used to the display the city "
3528 "production names on the map."),
3531 GEN_BOOL_OPTION(gui_sdl2_use_theme_font_size,
N_(
"Use theme defined font size"),
3532 N_(
"Disable this to override base font size set by theme "
3533 "by the setting below."),
3536 N_(
"Base Font Size. All the fonts' sizes are defined relative "
3537 "to this. This option has effect only if theme font sizes "
3538 "option is disabled."),
3543 N_(
"If this option is set the client will use the "
3544 "whole screen area for drawing."),
3547 N_(
"This option controls the resolution of the "
3548 "selected screen."),
3551 N_(
"If this option is disabled, the cursor will "
3552 "always be displayed as static."),
3555 N_(
"If this option is disabled, the cursor will "
3556 "always be displayed in black and white."),
3560 N_(
"The size of font used to the display the city names "
3565 N_(
"City Productions"),
3566 N_(
"The size of font used to the display the city "
3567 "production names on the map."),
3570 GEN_BOOL_OPTION(gui_sdl3_use_theme_font_size,
N_(
"Use theme defined font size"),
3571 N_(
"Disable this to override base font size set by theme "
3572 "by the setting below."),
3575 N_(
"Base Font Size. All the fonts' sizes are defined relative "
3576 "to this. This option has effect only if theme font sizes "
3577 "option is disabled."),
3582 N_(
"If this option is set the client will use the "
3583 "whole screen area for drawing."),
3586 N_(
"If this option is set the client will show a titlebar. "
3587 "If disabled, then no titlebar will be shown, and "
3588 "minimize/maximize/etc buttons will be placed on the "
3593 N_(
"This is default font"),
3595 "Sans Serif,10,-1,5,75,0,0,0,0,0",
font_changed_callback),
3598 N_(
"This font is used to display server reports such "
3599 "as the demographic report or historian publications."),
3601 "Monospace,9,-1,5,75,0,0,0,0,0",
font_changed_callback),
3604 N_(
"This font is used to display the help labels in the "
3607 "Sans Serif,9,-1,5,50,0,0,0,0,0",
font_changed_callback),
3610 N_(
"This font is used to display the help body text in "
3611 "the help window."),
3613 "Monospace,8,-1,5,50,0,0,0,0,0",
font_changed_callback),
3615 N_(
"Chatline Area"),
3616 N_(
"This font is used to display the text in the "
3619 "Monospace,8,-1,5,50,0,0,0,0,0",
font_changed_callback),
3622 N_(
"This font is used to the display the city names "
3625 "Sans Serif,10,-1,5,75,0,0,0,0,0",
font_changed_callback),
3627 N_(
"City Productions"),
3628 N_(
"This font is used to display the city production "
3631 "Sans Serif,10,-1,5,50,1,0,0,0,0",
font_changed_callback),
3633 N_(
"Requirement Tree"),
3634 N_(
"This font is used to the display the requirement tree "
3635 "in the Research report."),
3637 "Sans Serif,10,-1,5,50,1,0,0,0,0",
font_changed_callback),
3639 N_(
"If this option is set the client will show "
3640 "information and map preview of current savegame."),
3643 N_(
"If this option is set, the sidebar will be to the left "
3644 "of the map, otherwise to the right."),
3647 N_(
"Wake up sequence"),
3648 N_(
"String which will trigger sound in pregame page; "
3649 "%1 stands for username."),
3653 N_(
"Enable svgflags features, such as bigger flags "
3654 "on the diplomacy dialog. Change to this comes "
3655 "to an effect on next client start."),
3657 N_(
"Enable svgflags features, such as bigger flags "
3658 "on the diplomacy dialog. This has no effect on "
3659 "this freeciv build, as the svg support has not "
3667#define client_options_iterate_all(poption) \
3669 const struct client_option *const poption##_max = \
3670 client_options + client_options_num; \
3671 struct client_option *client_##poption = client_options; \
3672 struct option *poption; \
3673 for (; client_##poption < poption##_max; client_##poption++) { \
3674 poption = OPTION(client_##poption);
3676#define client_options_iterate_all_end \
3734 return _(
"Graphics");
3737 return Q_(
"?map:Overview");
3741 return _(
"Interface");
3743 return _(
"Map Image");
3745 return _(
"Network");
3752 log_error(
"%s: invalid option category number %d.",
3837 if (*
pcoption->boolean.pvalue == val) {
3887 || *
pcoption->integer.pvalue == val) {
3915static const struct strvec *
3959static const struct strvec *
3973 if (*
pcoption->enumerator.pvalue == val
3979 *
pcoption->enumerator.pvalue = val;
4018static const struct strvec *
4032 if (*
pcoption->bitwise.pvalue == val) {
4120 bool changed =
FALSE;
4122#define color_set(color_tgt, color) \
4123 if (NULL == color_tgt) { \
4124 if (NULL != color) { \
4125 color_tgt = fc_strdup(color); \
4129 if (NULL == color) { \
4130 free((void *) color_tgt); \
4133 } else if (0 != strcmp(color_tgt, color)) { \
4134 free((void *) color_tgt); \
4135 color_tgt = fc_strdup(color); \
4180 *
pcoption->video_mode.pvalue = mode;
4198 const char *
old_paths =
"draw_roads_rails";
4263 return ((
color.foreground =
4266 && (
color.background =
4419static const struct strvec *
4432static const struct strvec *
4446static const struct strvec *
4499 struct strvec *support_names;
4500 struct strvec *pretty_names;
4505#define SERVER_OPTION(poption) ((struct server_option *) (poption))
4528 switch (
poption->base_option.type) {
4669#define handle_server_setting_common(psoption, packet) \
4670 psoption->is_changeable = packet->is_changeable; \
4671 psoption->setdef = packet->setdef; \
4672 if (psoption->is_visible != packet->is_visible) { \
4673 if (psoption->is_visible) { \
4674 need_gui_remove = TRUE; \
4675 } else if (packet->is_visible) { \
4676 need_gui_add = TRUE; \
4678 psoption->is_visible = packet->is_visible; \
4683 if (!psoption->desired_sent \
4684 && psoption->is_visible \
4685 && psoption->is_changeable \
4686 && gui_options.send_desired_settings \
4687 && is_server_running() \
4688 && packet->initial_setting) { \
4694 desired_settable_option_send(OPTION(poption)); \
4695 dsend_packet_sync_serial(&client.conn, ++sync_serial); \
4696 psoption->desired_sent = TRUE; \
4700 if (need_gui_remove) { \
4701 option_gui_remove(poption); \
4702 } else if (need_gui_add) { \
4703 option_gui_add(poption); \
4705 option_gui_update(poption); \
4729 "Server setting \"%s\" (nb %d) has type %s (%d), "
4764 "Server setting \"%s\" (nb %d) has type %s (%d), "
4801 "Server setting \"%s\" (nb %d) has type %s (%d), "
4846 "Server setting \"%s\" (nb %d) has type %s (%d), "
4935 "Server setting \"%s\" (nb %d) has type %s (%d), "
5142 if (
psoption->boolean.value == val) {
5147 val ?
"enabled" :
"disabled");
5195 ||
psoption->integer.value == val) {
5225static const struct strvec *
5269static const struct strvec *
5284 if (val ==
psoption->enumerator.value
5300 const char **pvalue,
5304 const struct strvec *values =
psoption->enumerator.support_names;
5306 if (
NULL != pvalue) {
5334static const struct strvec *
5351 if ((1 <<
bit) & val) {
5352 if (
'\0' !=
buf[0]) {
5369 if (val ==
psoption->bitwise.value) {
5504 "%s.message_where_%02d", prefix,
i);
5519 p =
"E_UNIT_WIN_DEF";
5523 log_error(
"Event not supported: %s", p);
5528 "messages.event%d.where",
i)) {
5548 "messages.event%d.name",
i);
5550 "messages.event%d.where",
i);
5565 "cma.preset%d.name",
i);
5599 "cma.preset%d.minsurp%d",
i,
o);
5601 "cma.preset%d.factor%d",
i,
o);
5604 "cma.preset%d.reqhappy",
i);
5606 "cma.preset%d.happyfactor",
i);
5617 _(
"If you add a preset by hand,"
5618 " also update \"number_of_presets\""),
5619 "cma.number_of_presets");
5626#define MID_OPTION_FILE_NAME ".freeciv-client-rc-%d.%d"
5627#define NEW_OPTION_FILE_NAME "freeciv-client-rc-%d.%d"
5630#define FIRST_MAJOR_NEW_OPTION_FILE_NAME 2
5631#define FIRST_MINOR_NEW_OPTION_FILE_NAME 6
5633#define FIRST_MAJOR_MID_OPTION_FILE_NAME 2
5634#define FIRST_MINOR_MID_OPTION_FILE_NAME 2
5636#define FIRST_MAJOR_NEW_BOOLEAN 2
5637#define FIRST_MINOR_NEW_BOOLEAN 3
5656#ifdef OPTION_FILE_NAME
5661 log_error(
_(
"Cannot find freeciv storage directory"));
5691#if MINOR_VERSION >= 90
5697 *allow_digital_boolean =
FALSE;
5702#ifdef OPTION_FILE_NAME
5710 log_error(
_(
"Cannot find freeciv storage directory"));
5727 "loading from '%s' instead."),
5741 log_error(
_(
"Cannot find your home directory"));
5757 "loading from '%s' instead."),
5762 *allow_digital_boolean =
TRUE;
5775#undef MID_OPTION_FILE_NAME
5776#undef NEW_OPTION_FILE_NAME
5777#undef FIRST_MAJOR_NEW_OPTION_FILE_NAME
5778#undef FIRST_MINOR_NEW_OPTION_FILE_NAME
5779#undef FIRST_MAJOR_MID_OPTION_FILE_NAME
5780#undef FIRST_MINOR_MID_OPTION_FILE_NAME
5781#undef FIRST_MINOR_NEW_BOOLEAN
5787#define SPECHASH_TAG settable_options
5788#define SPECHASH_ASTR_KEY_TYPE
5789#define SPECHASH_ASTR_DATA_TYPE
5791#define settable_options_hash_iterate(hash, name, value) \
5792 TYPED_HASH_ITERATE(const char *, const char *, hash, name, value)
5793#define settable_options_hash_iterate_end HASH_ITERATE_END
5803 const struct section *psection;
5814 if (
NULL == psection) {
5853 if (
NULL ==
string) {
5854 log_error(
"Entry type variant of \"%s.%s\" is not supported.",
5949 log_error(
"Option type %s (%d) not supported for '%s'.",
5988#define SETTING_CASE(ARG_name, ...) \
5989 if (0 == strcmp(ARG_name, name)) { \
5990 static const char *values[] = { __VA_ARGS__ }; \
5991 if (0 <= old_value && old_value < ARRAY_SIZE(values) \
5992 && NULL != values[old_value]) { \
5993 fc_strlcpy(buf, values[old_value], buf_len); \
6000 SETTING_CASE(
"topology",
"",
"WRAPX",
"WRAPY",
"WRAPX|WRAPY",
"ISO",
6001 "WRAPX|ISO",
"WRAPY|ISO",
"WRAPX|WRAPY|ISO",
"HEX",
6002 "WRAPX|HEX",
"WRAPY|HEX",
"WRAPX|WRAPY|HEX",
"ISO|HEX",
6003 "WRAPX|ISO|HEX",
"WRAPY|ISO|HEX",
"WRAPX|WRAPY|ISO|HEX");
6005 SETTING_CASE(
"startpos",
"DEFAULT",
"SINGLE",
"2or3",
"ALL",
"VARIABLE");
6006 SETTING_CASE(
"borders",
"DISABLED",
"ENABLED",
"SEE_INSIDE",
"EXPAND");
6007 SETTING_CASE(
"diplomacy",
"ALL",
"HUMAN",
"AI",
"TEAM",
"DISABLED");
6008 SETTING_CASE(
"citynames",
"NO_RESTRICTIONS",
"PLAYER_UNIQUE",
6009 "GLOBAL_UNIQUE",
"NO_STEALING");
6010 SETTING_CASE(
"barbarians",
"DISABLED",
"HUTS_ONLY",
"NORMAL",
"FREQUENT",
6013 SETTING_CASE(
"compresstype",
"PLAIN",
"LIBZ",
"BZIP2");
6099 log_error(
"Option type %s (%d) not supported for '%s'.",
6143#define SPECHASH_TAG dialog_options
6144#define SPECHASH_ASTR_KEY_TYPE
6145#define SPECHASH_IDATA_TYPE bool
6146#define SPECHASH_UDATA_TO_IDATA FC_INT_TO_PTR
6147#define SPECHASH_IDATA_TO_UDATA FC_PTR_TO_INT
6148#define SPECHASH_VPTR_TO_IDATA FC_PTR_TO_INT
6150#define dialog_options_hash_iterate(hash, column, visible) \
6151 TYPED_HASH_ITERATE(const char *, intptr_t, hash, column, visible)
6152#define dialog_options_hash_iterate_end HASH_ITERATE_END
6162 const char *
prefixes[] = {
"player_dlg_",
"city_report_",
NULL };
6163 const char **prefix;
6270 const char *
const prefix =
"client";
6275 log_normal(
_(
"Didn't find the option file. Creating a new one."));
6309 "%s.save_options_on_exit", prefix);
6312 "%s.fullscreen_mode", prefix);
6317 "%s.migration_gtk3_from_gtk2", prefix);
6320 "%s.migration_gtk3_22_from_gtk3", prefix);
6323 "%s.migration_gtk4_from_gtk3_22", prefix);
6326 "%s.migration_gtk5_from_gtk4", prefix);
6329 "%s.migration_sdl2_from_sdl", prefix);
6332 "%s.migration_sdl3_from_sdl2", prefix);
6335 "%s.migration_gtk2_from_2_5", prefix);
6338 "%s.migration_gtk3_from_2_5", prefix);
6341 "%s.migration_qt_from_2_5", prefix);
6346 "%s.flag_qt_default_fonts_set", prefix);
6349 "%s.flag_sdl2_default_screen_size_set", prefix);
6352 "%s.flag_sdl3_default_screen_size_set", prefix);
6359 "%s.zoom_default_level", prefix);
6363 "%s.gui_qt_show_relations_panel", prefix);
6366 "%s.gui_qt_show_techs_panel", prefix);
6369 "%s.gui_qt_show_wonders_panel", prefix);
6375 "client.default_topology");
6393 "%s.popup_caravan_arrival", prefix);
6406 "%s.do_combat_animation", prefix)) {
6416 for (
i = num - 1;
i >= 0;
i--) {
6434 const char *msg, ...)
6468 log_debug(
"Pop queued options saving.");
6486 if (log_cb ==
NULL) {
6492 log_cb(
LOG_ERROR,
_(
"Save failed, cannot find a filename."));
6500 "client.save_options_on_exit");
6502 "deprecated",
"client.fullscreen_mode");
6506 "client.migration_gtk3_from_gtk2");
6508 "client.migration_gtk3_22_from_gtk3");
6510 "client.migration_gtk4_from_gtk3_22");
6512 "client.migration_gtk5_from_gtk4");
6514 "client.migration_sdl2_from_sdl");
6516 "client.migration_sdl3_from_sdl2");
6518 "client.migration_gtk2_from_2_5");
6520 "client.migration_gtk3_from_2_5");
6522 "client.migration_qt_from_2_5");
6526 "client.flag_qt_default_fonts_set");
6528 "client.flag_sdl2_default_screen_size_set");
6530 "client.flag_sdl3_default_screen_size_set");
6546 "client.zoom_default_level");
6549 "client.gui_qt_show_relations_panel");
6551 "client.gui_qt_show_techs_panel");
6553 "client.gui_qt_show_wonders_panel");
6557 "client.default_topology");
6560 "client.default_topology");
6582 log_cb(
LOG_ERROR,
_(
"Saving options failed, cannot create directory %s"),
6591 log_cb(
LOG_ERROR,
_(
"Saving options failed, cannot write to file %s"),
name);
6610 for (val = 0; (
name =
acc(val)); val++) {
6640 log_error(
"option %s has default value of %d, which is "
6641 "out of its range [%d; %d], changing to %d.",
6652 *((
const char **) &(
pcoption->string.def)) =
6660 log_error(
"Invalid NULL default string for option %s.",
6663 *((
const char **) &(
pcoption->string.def)) =
6673 &
pcoption->enumerator.support_names,
6674 &
pcoption->enumerator.pretty_names);
6833#ifndef FREECIV_NDEBUG
6837 log_normal(
"Error setting the value for %s (%s). Restoring the default "
6841#ifndef FREECIV_NDEBUG
6847 "Failed to reset the option \"%s\".",
6849#ifndef FREECIV_NDEBUG
6855 "Failed to restore mapimg definition for option \"%s\".",
6944 const char *
optname =
"<not set>";
6950 optname =
"default_tileset_square_name";
6954 optname =
"default_tileset_hex_name";
6958 optname =
"default_tileset_isohex_name";
6965 log_error(
"Unknown option name \"%s\" in option_set_default_ts()",
optname);
6989 val =
opt->str_vtable->get(
opt);
6991 if (val ==
NULL || val[0] ==
'\0') {
7013 log_debug(
"Setting tileset for square topologies.");
7018 log_debug(
"Setting tileset for hex topology.");
7022 log_debug(
"Setting tileset for isohex topology.");
struct @130::my_agent entries[MAX_AGENTS]
void audio_set_volume(double volume)
const struct strvec * get_musicset_list(const struct option *poption)
const struct strvec * get_soundset_list(const struct option *poption)
const struct strvec * get_soundplugin_list(const struct option *poption)
struct canvas int int int int struct sprite *sprite struct canvas struct color * pcolor
int send_chat_printf(const char *format,...)
void output_window_vprintf(const struct ft_color color, const char *format, va_list args)
static int cmp(int v1, int v2)
#define output_type_iterate(output)
#define output_type_iterate_end
int num_city_report_spec(void)
const char * city_report_spec_tagname(int i)
bool * city_report_spec_show_ptr(int i)
void user_ended_turn(void)
enum client_states client_state(void)
char fc_password[MAX_LEN_PASSWORD]
bool mapimg_client_define(void)
void cm_init_parameter(struct cm_parameter *dest)
char * cmafec_preset_get_descr(int idx)
const struct cm_parameter * cmafec_preset_get_parameter(int idx)
void cmafec_preset_add(const char *descr_name, struct cm_parameter *pparam)
int cmafec_preset_num(void)
void create_default_cma_presets(void)
bool is_server_running(void)
#define log_deprecation(message,...)
const struct ft_color ftc_client
static struct ft_color ft_color_construct(const char *foreground, const char *background)
static bool static void void global_worklists_init(void)
void global_worklists_load(struct section_file *file)
void global_worklists_free(void)
void global_worklists_save(struct section_file *file)
enum gui_type get_gui_type(void)
void options_extra_init(void)
static GtkTextBuffer * help_text
void option_gui_remove(struct option *poption)
void option_dialog_popdown(const struct option_set *poptset)
void option_gui_update(struct option *poption)
void science_report_dialog_redraw(void)
void voteinfo_gui_update(void)
#define fc_assert_msg(condition, message,...)
#define fc_assert_ret(condition)
#define log_verbose(message,...)
#define fc_assert(condition)
#define fc_assert_ret_msg(condition, message,...)
#define fc_assert_ret_val(condition, val)
#define fc_assert_action(condition, action)
#define log_debug(message,...)
#define log_normal(message,...)
#define log_error(message,...)
#define FC_STATIC_ASSERT(cond, tag)
void update_turn_done_button_state(void)
bool mapimg_initialised(void)
const struct strvec * mapimg_get_format_list(void)
const char * mapimg_error(void)
void update_map_canvas_visible(void)
#define fc_calloc(n, esz)
void musicspec_reread_callback(struct option *poption)
void start_menu_music(const char *const tag, char *const alt_tag)
void stop_menu_music(void)
void start_style_music(void)
void stop_style_music(void)
str prefix(str prefix, str text)
static struct option * client_optset_option_first(void)
void handle_server_setting_const(const struct packet_server_setting_const *packet)
void handle_server_setting_int(const struct packet_server_setting_int *packet)
static int server_option_int_max(const struct option *poption)
static bool client_option_font_set(struct option *poption, const char *font)
unsigned option_bitwise_mask(const struct option *poption)
void fill_topo_ts_default(void)
#define FIRST_MAJOR_MID_OPTION_FILE_NAME
#define client_options_iterate_all_end
static const struct strvec * server_option_str_values(const struct option *poption)
static int client_option_enum_get(const struct option *poption)
void resend_desired_settable_options(void)
const struct strvec * option_str_values(const struct option *poption)
static void desired_settable_option_send(struct option *poption)
static const char * client_option_name(const struct option *poption)
static unsigned server_option_bitwise_def(const struct option *poption)
#define FIRST_MAJOR_NEW_OPTION_FILE_NAME
static const struct option_video_mode_vtable client_option_video_mode_vtable
#define GEN_STR_OPTION(oname, odesc, ohelp, ocat, ospec, odef, ocb, cbd)
static struct dialog_options_hash * dialog_options_hash
void option_changed(struct option *poption)
static void menu_music_enable_callback(struct option *poption)
static bool options_fully_initialized
static const struct option_str_vtable client_option_str_vtable
unsigned option_bitwise_def(const struct option *poption)
int option_enum_str_to_int(const struct option *poption, const char *str)
static const char * client_option_description(const struct option *poption)
int option_int_min(const struct option *poption)
static void option_save_output_window_callback(enum log_level lvl, const char *msg,...)
static void message_options_save(struct section_file *file, const char *prefix)
bool option_bool_def(const struct option *poption)
static struct option * client_option_next(const struct option *poption)
static const char * server_option_name(const struct option *poption)
const char * option_font_def(const struct option *poption)
const char * tileset_name_for_topology(int topology_id)
static const struct copt_val_name * gui_gtk_message_chat_location_name(int value)
static bool server_option_str_set(struct option *poption, const char *str)
static const struct copt_val_name * gui_popup_tech_help_name(int value)
struct option * optset_option_first(const struct option_set *poptset)
static const char * server_optset_category_name(int category)
const struct option_set * server_optset
static void view_option_changed_callback(struct option *poption)
static const char * client_option_font_target(const struct option *poption)
static void server_option_enum_support_name(const struct option *poption, const char **pvalue, const char **pdefault)
#define GEN_INT_OPTION(oname, odesc, ohelp, ocat, ospec, odef, omin, omax, ocb)
static const char * server_option_description(const struct option *poption)
static unsigned server_option_bitwise_get(const struct option *poption)
static bool client_option_is_changeable(const struct option *poption)
static int server_option_int_min(const struct option *poption)
static const char * client_optset_category_name(int category)
static struct option * server_option_next(const struct option *poption)
static struct client_option client_options[]
#define SERVER_OPTION(poption)
static void settable_options_save(struct section_file *sf)
static bool server_option_bool_get(const struct option *poption)
bool option_reset(struct option *poption)
const char * option_description(const struct option *poption)
const char * option_help_text(const struct option *poption)
#define settable_options_hash_iterate_end
static const char * client_option_font_get(const struct option *poption)
static int server_option_enum_def(const struct option *poption)
static int server_option_int_def(const struct option *poption)
#define client_options_iterate_all(poption)
static int client_option_int_min(const struct option *poption)
static int server_options_categories_num
const char * option_enum_get_str(const struct option *poption)
static struct ft_color client_option_color_def(const struct option *poption)
static const struct strvec * client_option_enum_pretty_names(const struct option *poption)
static bool server_option_enum_set(struct option *poption, int val)
static void save_cma_presets(struct section_file *file)
struct ft_color option_color_get(const struct option *poption)
static struct video_mode client_option_video_mode_def(const struct option *poption)
static int client_option_int_get(const struct option *poption)
static char ** server_options_categories
int option_enum_get_int(const struct option *poption)
static void settable_options_load(struct section_file *sf)
int option_number(const struct option *poption)
static struct option * server_optset_option_first(void)
static struct settable_options_hash * settable_options_hash
int option_category(const struct option *poption)
static struct server_option * server_options
static const struct option_int_vtable server_option_int_vtable
static void options_dialogs_save(struct section_file *sf)
static struct option_set client_optset_static
void options_sync_reply(int serial)
static bool client_option_color_set(struct option *poption, struct ft_color color)
#define dialog_options_hash_iterate_end
static void save_cma_preset(struct section_file *file, int i)
static int client_optset_category_number(void)
static const char * client_option_str_def(const struct option *poption)
static bool client_option_video_mode_set(struct option *poption, struct video_mode mode)
void handle_server_setting_bitwise(const struct packet_server_setting_bitwise *packet)
static const struct option_font_vtable client_option_font_vtable
static bool client_option_enum_set(struct option *poption, int val)
void desired_settable_option_update(const char *op_name, const char *op_value, bool allow_replace)
void option_set_default_ts(struct tileset *t)
bool option_str_set(struct option *poption, const char *str)
void handle_server_setting_bool(const struct packet_server_setting_bool *packet)
static const struct strvec * client_option_str_values(const struct option *poption)
const struct option_set * client_optset
static const struct option_bool_vtable server_option_bool_vtable
static const struct option_bitwise_vtable server_option_bitwise_vtable
const char * option_name(const struct option *poption)
static const char * client_option_help_text(const struct option *poption)
static void message_options_init(void)
static int client_option_number(const struct option *poption)
void handle_server_setting_str(const struct packet_server_setting_str *packet)
int option_int_get(const struct option *poption)
static void client_option_save(struct option *poption, struct section_file *sf)
static int client_option_int_def(const struct option *poption)
static int server_option_category(const struct option *poption)
#define FIRST_MINOR_MID_OPTION_FILE_NAME
static const struct option_enum_vtable client_option_enum_vtable
static const struct option_str_vtable server_option_str_vtable
static int server_options_num
#define handle_server_setting_common(psoption, packet)
static const struct option_color_vtable client_option_color_vtable
bool option_enum_set_str(struct option *poption, const char *str)
static const struct strvec * server_option_enum_pretty(const struct option *poption)
static void server_option_bitwise_support_name(const struct option *poption, char *val_buf, size_t val_len, char *def_buf, size_t def_len)
bool option_color_set(struct option *poption, struct ft_color color)
#define SETTING_CASE(ARG_name,...)
static struct video_mode client_option_video_mode_get(const struct option *poption)
static bool is_ts_option_unset(const char *optname)
void option_set_changed_callback(struct option *poption, void(*callback)(struct option *))
#define NEW_OPTION_FILE_NAME
static bool server_option_bool_set(struct option *poption, bool val)
bool option_bool_set(struct option *poption, bool val)
bool option_is_changeable(const struct option *poption)
#define GEN_ENUM_OPTION(oname, odesc, ohelp, ocat, ospec, odef, oacc, ocb)
bool option_video_mode_set(struct option *poption, struct video_mode mode)
#define MID_OPTION_FILE_NAME
static int server_option_number(const struct option *poption)
#define dialog_options_hash_iterate(hash, column, visible)
#define FIRST_MINOR_NEW_BOOLEAN
static const char * server_option_str_get(const struct option *poption)
#define settable_options_hash_iterate(hash, name, value)
void option_set_gui_data(struct option *poption, void *data)
#define FIRST_MINOR_NEW_OPTION_FILE_NAME
#define GEN_BOOL_OPTION(oname, odesc, ohelp, ocat, ospec, odef, ocb)
const char * option_str_get(const struct option *poption)
struct option * optset_option_by_number(const struct option_set *poptset, int id)
static bool client_option_bool_get(const struct option *poption)
void * option_get_gui_data(const struct option *poption)
static const char * server_option_str_def(const struct option *poption)
static const struct option_common_vtable client_option_common_vtable
static bool settable_option_upgrade_value(const struct option *poption, int old_value, char *buf, size_t buf_len)
const struct strvec * option_enum_values(const struct option *poption)
static const struct strvec * get_mapimg_format_list(const struct option *poption)
static void sound_volume_callback(struct option *poption)
bool option_enum_set_int(struct option *poption, int val)
bool option_bool_get(const struct option *poption)
int optset_category_number(const struct option_set *poptset)
#define color_set(color_tgt, color)
static bool client_option_bool_def(const struct option *poption)
static const struct strvec * server_option_bitwise_pretty(const struct option *poption)
void server_options_init(void)
enum option_type option_type(const struct option *poption)
static int client_option_enum_def(const struct option *poption)
const char * option_enum_int_to_str(const struct option *poption, int val)
void options_dialogs_update(void)
int option_get_cb_data(const struct option *poption)
bool video_mode_to_string(char *buf, size_t buf_len, struct video_mode *mode)
static void options_dialogs_load(struct section_file *sf)
const struct option_set * option_optset(const struct option *poption)
void server_options_free(void)
struct video_mode option_video_mode_get(const struct option *poption)
static int server_option_enum_get(const struct option *poption)
struct option * option_next(const struct option *poption)
static struct option * client_optset_option_by_number(int id)
static void font_changed_callback(struct option *poption)
const char * option_str_def(const struct option *poption)
const char * optset_category_name(const struct option_set *poptset, int category)
int option_int_max(const struct option *poption)
#define GEN_COLOR_OPTION(oname, odesc, ohelp, ocat, ospec, odef_fg, odef_bg, ocb)
const char * option_enum_def_str(const struct option *poption)
static const char * client_option_str_get(const struct option *poption)
static option_save_log_callback queued_cb
static const struct option_common_vtable server_option_common_vtable
static int server_optset_category_number(void)
static bool client_option_bool_set(struct option *poption, bool val)
static const char * server_option_help_text(const struct option *poption)
static const struct option_bool_vtable client_option_bool_vtable
static bool client_option_load(struct option *poption, struct section_file *sf)
bool option_font_set(struct option *poption, const char *font)
static bool server_option_bitwise_set(struct option *poption, unsigned val)
const char * option_font_target(const struct option *poption)
static const char * client_option_enum_secfile_str(secfile_data_t data, int val)
static struct server_option * server_option_next_valid(struct server_option *poption)
static void server_option_bitwise_support_base(const struct strvec *values, unsigned val, char *buf, size_t buf_len)
void queue_options_save(option_save_log_callback log_cb)
static void voteinfo_bar_callback(struct option *poption)
static struct option * server_optset_option_by_number(int id)
void options_save(option_save_log_callback log_cb)
static void message_options_free(void)
static const struct option_enum_vtable server_option_enum_vtable
bool string_to_video_mode(const char *buf, struct video_mode *mode)
const struct strvec * option_bitwise_values(const struct option *poption)
static bool server_option_int_set(struct option *poption, int val)
int messages_where[E_COUNT]
static void message_options_load(struct section_file *file, const char *prefix)
struct client_options gui_options
static void server_option_free(struct server_option *poption)
#define CLIENT_OPTION(poption)
#define GEN_FONT_OPTION(oname, otgt, odesc, ohelp, ocat, ospec, odef, ocb)
static struct option_set server_optset_static
void handle_server_setting_control(const struct packet_server_setting_control *packet)
static void mapimg_changed_callback(struct option *poption)
bool option_bitwise_set(struct option *poption, unsigned val)
static int server_option_int_get(const struct option *poption)
static void manual_turn_done_callback(struct option *poption)
static void reqtree_show_icons_callback(struct option *poption)
const char * option_font_get(const struct option *poption)
void desired_settable_options_update(void)
static void load_cma_preset(struct section_file *file, int i)
static bool client_option_str_set(struct option *poption, const char *str)
void handle_server_setting_enum(const struct packet_server_setting_enum *packet)
struct ft_color option_color_def(const struct option *poption)
static int client_option_int_max(const struct option *poption)
#define GEN_STR_LIST_OPTION(oname, odesc, ohelp, ocat, ospec, odef, oacc, ocb, cbd)
unsigned option_bitwise_get(const struct option *poption)
static bool server_option_is_changeable(const struct option *poption)
static struct ft_color client_option_color_get(const struct option *poption)
int option_enum_def_int(const struct option *poption)
struct option * optset_option_by_name(const struct option_set *poptset, const char *name)
static const int client_options_num
static bool client_option_int_set(struct option *poption, int val)
void options_dialogs_set(void)
bool option_int_set(struct option *poption, int val)
static struct client_option * client_option_next_valid(struct client_option *poption)
static const char * client_option_bitwise_secfile_str(secfile_data_t data, int val)
#define GEN_VIDEO_OPTION(oname, odesc, ohelp, ocat, ospec, odef_width, odef_height, ocb)
static const struct option_int_vtable client_option_int_vtable
static const char * client_option_font_def(const struct option *poption)
static const char * get_last_option_file_name(bool *allow_digital_boolean)
const char * option_category_name(const struct option *poption)
static void game_music_enable_callback(struct option *poption)
static const char * get_current_option_file_name(void)
int option_int_def(const struct option *poption)
static void options_init_names(const struct copt_val_name *(*acc)(int), struct strvec **support, struct strvec **pretty)
struct video_mode option_video_mode_def(const struct option *poption)
static bool server_option_bool_def(const struct option *poption)
#define GUI_GTK5_OPTIONSDLG_MIN_YSIZE
#define GUI_GTK3_CITYDLG_DEFAULT_XSIZE
#define GUI_GTK3_22_GOV_RANGE_MIN_DEFAULT
#define GUI_GTK5_CITYDLG_DEFAULT_XSIZE
#define GUI_GTK3_CITYDLG_MAX_YSIZE
#define GUI_GTK3_22_OPTIONSDLG_MAX_XSIZE
#define GUI_GTK3_22_OPTIONSDLG_DEFAULT_YSIZE
#define GUI_GTK3_22_GOV_RANGE_MIN_MIN
@ GUI_POPUP_TECH_HELP_RULESET
#define GUI_GTK3_GOV_RANGE_MIN_DEFAULT
#define GUI_GTK3_22_HELPDLG_MIN_YSIZE
#define GUI_GTK4_GOV_RANGE_MIN_MAX
#define GUI_GTK3_22_CITYDLG_MIN_YSIZE
#define GUI_GTK4_CITYDLG_MAX_XSIZE
#define GUI_GTK4_GOV_RANGE_MIN_DEFAULT
#define GUI_GTK5_CITYDLG_MAX_XSIZE
#define GUI_GTK3_GOV_RANGE_MAX_DEFAULT
void(* option_save_log_callback)(enum log_level lvl, const char *msg,...)
#define GUI_GTK4_OPTIONSDLG_MIN_XSIZE
#define GUI_GTK4_CITYDLG_DEFAULT_XSIZE
#define FC_SDL3_DEFAULT_THEME_NAME
#define GUI_GTK2_CITYDLG_DEFAULT_YSIZE
#define GUI_GTK5_GOV_RANGE_MAX_MAX
#define GUI_GTK4_HELPDLG_MAX_YSIZE
#define FC_GTK3_22_DEFAULT_THEME_NAME
#define GUI_GTK3_22_CITYDLG_DEFAULT_XSIZE
#define FC_QT_DEFAULT_THEME_NAME
#define GUI_GTK3_22_HELPDLG_MIN_XSIZE
#define GUI_GTK4_OPTIONSDLG_DEFAULT_YSIZE
#define GUI_GTK3_CITYDLG_MIN_YSIZE
#define GUI_GTK3_CITYDLG_MIN_XSIZE
#define GUI_GTK3_22_CITYDLG_DEFAULT_YSIZE
#define GUI_GTK5_OPTIONSDLG_DEFAULT_XSIZE
#define GUI_GTK4_OPTIONSDLG_MIN_YSIZE
#define GUI_GTK5_OPTIONSDLG_MAX_XSIZE
#define GUI_GTK4_CITYDLG_MIN_YSIZE
#define DEFAULT_FOLLOWTAG_OPTION
#define GUI_GTK5_CITYDLG_DEFAULT_YSIZE
#define GUI_GTK2_CITYDLG_MIN_YSIZE
#define GUI_GTK5_OPTIONSDLG_MIN_XSIZE
#define options_iterate(poptset, poption)
#define GUI_GTK3_22_OPTIONSDLG_MAX_YSIZE
#define GUI_GTK2_CITYDLG_MAX_XSIZE
#define GUI_DEFAULT_CHAT_LOGFILE
#define GUI_GTK5_CITYDLG_MAX_YSIZE
#define GUI_GTK3_22_HELPDLG_DEFAULT_YSIZE
#define GUI_GTK4_HELPDLG_MIN_XSIZE
#define GUI_GTK3_GOV_RANGE_MAX_MAX
#define GUI_GTK4_CITYDLG_MIN_XSIZE
#define GUI_GTK4_HELPDLG_MIN_YSIZE
#define GUI_GTK3_22_GOV_RANGE_MAX_DEFAULT
#define DEFAULT_METASERVER_OPTION
#define GUI_GTK3_CITYDLG_DEFAULT_YSIZE
static struct video_mode video_mode_construct(int width, int height)
#define GUI_GTK3_22_CITYDLG_MAX_XSIZE
#define GUI_GTK4_OPTIONSDLG_MAX_XSIZE
#define GUI_GTK3_22_GOV_RANGE_MAX_MIN
#define GUI_GTK5_GOV_RANGE_MAX_MIN
#define GUI_GTK3_GOV_RANGE_MIN_MIN
#define GUI_GTK3_GOV_RANGE_MIN_MAX
#define GUI_GTK3_22_CITYDLG_MIN_XSIZE
#define GUI_GTK5_HELPDLG_MIN_XSIZE
@ GUI_GTK_MSGCHAT_SEPARATE
#define FC_GTK5_DEFAULT_THEME_NAME
#define GUI_GTK5_HELPDLG_DEFAULT_XSIZE
#define GUI_GTK4_GOV_RANGE_MAX_DEFAULT
#define MAJOR_NEW_OPTION_FILE_NAME
#define GUI_GTK4_HELPDLG_DEFAULT_YSIZE
#define GUI_GTK3_22_HELPDLG_DEFAULT_XSIZE
#define GUI_GTK3_22_OPTIONSDLG_MIN_YSIZE
#define GUI_GTK3_GOV_RANGE_MAX_MIN
#define GUI_GTK2_CITYDLG_MAX_YSIZE
#define GUI_DEFAULT_MAPIMG_FILENAME
#define GUI_GTK5_CITYDLG_MIN_XSIZE
#define GUI_GTK3_22_HELPDLG_MAX_YSIZE
#define GUI_GTK3_22_CITYDLG_MAX_YSIZE
#define GUI_GTK4_HELPDLG_MAX_XSIZE
#define GUI_GTK4_GOV_RANGE_MIN_MIN
#define GUI_GTK5_GOV_RANGE_MIN_DEFAULT
#define GUI_GTK4_CITYDLG_MAX_YSIZE
#define GUI_GTK5_GOV_RANGE_MAX_DEFAULT
#define GUI_GTK5_HELPDLG_MAX_XSIZE
#define GUI_GTK4_CITYDLG_DEFAULT_YSIZE
#define options_iterate_end
#define GUI_GTK5_GOV_RANGE_MIN_MAX
#define GUI_GTK3_22_OPTIONSDLG_MIN_XSIZE
#define GUI_GTK5_HELPDLG_MIN_YSIZE
#define GUI_GTK4_GOV_RANGE_MAX_MAX
#define FC_GTK4_DEFAULT_THEME_NAME
#define GUI_GTK3_22_GOV_RANGE_MIN_MAX
#define GUI_GTK4_HELPDLG_DEFAULT_XSIZE
#define MINOR_NEW_OPTION_FILE_NAME
#define GUI_GTK5_OPTIONSDLG_DEFAULT_YSIZE
#define GUI_GTK2_CITYDLG_DEFAULT_XSIZE
#define FC_SDL2_DEFAULT_THEME_NAME
#define GUI_GTK3_22_GOV_RANGE_MAX_MAX
#define GUI_GTK5_HELPDLG_MAX_YSIZE
#define GUI_GTK3_22_OPTIONSDLG_DEFAULT_XSIZE
#define GUI_GTK5_OPTIONSDLG_MAX_YSIZE
#define VIDEO_MODE(ARG_width, ARG_height)
#define GUI_GTK5_GOV_RANGE_MIN_MIN
@ OLAYER_BORDERS_ON_OCEAN
#define GUI_GTK5_HELPDLG_DEFAULT_YSIZE
#define GUI_GTK4_OPTIONSDLG_MAX_YSIZE
#define GUI_GTK3_CITYDLG_MAX_XSIZE
#define GUI_GTK3_22_HELPDLG_MAX_XSIZE
#define GUI_GTK4_GOV_RANGE_MAX_MIN
#define GUI_GTK4_OPTIONSDLG_DEFAULT_XSIZE
#define GUI_GTK5_CITYDLG_MIN_YSIZE
#define GUI_GTK2_CITYDLG_MIN_XSIZE
void overview_redraw_callback(struct option *option)
int dsend_packet_sync_serial(struct connection *pc, int serial)
struct player_dlg_column player_dlg_columns[]
const int num_player_dlg_columns
struct section_file * secfile_load(const char *filename, bool allow_duplicates)
void secfile_allow_digital_boolean(struct section_file *secfile, bool allow_digital_boolean) fc__attribute((nonnull(1)))
struct section_file * secfile_new(bool allow_duplicates)
const char * secfile_error(void)
const char * section_name(const struct section *psection)
void secfile_destroy(struct section_file *secfile)
bool entry_bool_get(const struct entry *pentry, bool *value)
bool secfile_lookup_int(const struct section_file *secfile, int *ival, const char *path,...)
bool secfile_lookup_enum_data(const struct section_file *secfile, int *pvalue, bool bitwise, secfile_enum_name_data_fn_t name_fn, secfile_data_t data, const char *path,...)
const struct entry_list * section_entries(const struct section *psection)
const char * entry_name(const struct entry *pentry)
bool entry_str_get(const struct entry *pentry, const char **value)
const char * secfile_lookup_str(const struct section_file *secfile, const char *path,...)
float secfile_lookup_float_default(const struct section_file *secfile, float def, const char *path,...)
bool secfile_save(const struct section_file *secfile, const char *filename, int compression_level, enum fz_method compression_method)
bool secfile_lookup_bool_default(const struct section_file *secfile, bool def, const char *path,...)
int secfile_lookup_int_default(const struct section_file *secfile, int def, const char *path,...)
bool entry_int_get(const struct entry *pentry, int *value)
const char * secfile_name(const struct section_file *secfile)
struct section * secfile_section_by_name(const struct section_file *secfile, const char *name)
const char * secfile_lookup_str_default(const struct section_file *secfile, const char *def, const char *path,...)
bool secfile_lookup_bool(const struct section_file *secfile, bool *bval, const char *path,...)
enum entry_type entry_type_get(const struct entry *pentry)
#define secfile_insert_int(secfile, value, path,...)
#define secfile_insert_bool_comment(secfile, value, comment, path,...)
#define entry_list_iterate_end
#define secfile_insert_str(secfile, string, path,...)
#define secfile_insert_bool(secfile, value, path,...)
#define entry_list_iterate(entlist, pentry)
#define secfile_insert_enum_data(secfile, value, bitwise, name_fn, data, path,...)
#define secfile_insert_int_comment(secfile, value, comment, path,...)
#define secfile_insert_float(secfile, value, path,...)
const void * secfile_data_t
char * user_home_dir(void)
bool str_to_int(const char *str, int *pint)
bool make_dir(const char *pathname, int mode)
char * freeciv_storage_dir(void)
#define DIR_SEPARATOR_CHAR
void strvec_destroy(struct strvec *psv)
bool strvec_set(struct strvec *psv, size_t svindex, const char *string)
void strvec_append(struct strvec *psv, const char *string)
void strvec_reserve(struct strvec *psv, size_t reserve)
const char * strvec_get(const struct strvec *psv, size_t svindex)
struct strvec * strvec_new(void)
size_t strvec_size(const struct strvec *psv)
struct client_option::@239::@246 font
struct client_option::@239::@242 integer
struct client_option::@239::@243 string
struct ft_color *const pvalue
struct video_mode *const pvalue
struct option base_option
enum client_option_category category
bool gui_gtk3_22_migrated_from_gtk3
bool gui_gtk2_migrated_from_2_5
bool gui_sdl2_migrated_from_sdl
bool sound_enable_menu_music
char default_tileset_hex_name[512]
bool gui_qt_show_relations_panel
char default_tileset_iso_name[512]
bool gui_qt_show_techs_panel
char default_tileset_name[512]
bool gui_gtk5_migrated_from_gtk4
bool send_desired_settings
char default_tileset_overhead_name[512]
bool gui_gtk3_migrated_from_2_5
char default_tileset_square_name[512]
bool save_options_on_exit
bool gui_sdl2_default_screen_size_set
bool gui_sdl3_default_screen_size_set
int smooth_combat_step_msec
char default_tileset_isohex_name[512]
bool gui_qt_migrated_from_2_5
bool gui_sdl3_migrated_from_sdl2
bool gui_qt_show_wonders_panel
bool sound_enable_game_music
bool gui_qt_default_fonts_set
bool gui_gtk3_migrated_from_gtk2
char default_user_name[512]
bool gui_gtk4_migrated_from_gtk3_22
int minimal_surplus[O_LAST]
int(* number)(const struct option *)
int(* category)(const struct option *)
bool(* is_changeable)(const struct option *)
struct option *(* option_by_number)(int)
struct option *(* option_first)(void)
const char *(* category_name)(int)
int(* category_number)(void)
const struct option::@237::option_color_vtable * color_vtable
const struct option::option_common_vtable * common_vtable
const struct option::@237::option_int_vtable * int_vtable
const struct option::@237::option_bitwise_vtable * bitwise_vtable
const struct option::@237::option_font_vtable * font_vtable
const struct option_set * poptset
const struct option::@237::option_bool_vtable * bool_vtable
const struct option::@237::option_enum_vtable * enum_vtable
const struct option::@237::option_video_mode_vtable * video_mode_vtable
void(* changed_callback)(struct option *option)
const struct option::@237::option_str_vtable * str_vtable
bool layers[OLAYER_COUNT]
char support_names[64][MAX_LEN_NAME]
char pretty_names[64][MAX_LEN_ENUM]
char short_help[MAX_LEN_PACKET]
char extra_help[MAX_LEN_PACKET]
char category_names[256][MAX_LEN_NAME]
char pretty_names[64][MAX_LEN_ENUM]
char support_names[64][MAX_LEN_NAME]
char default_val[MAX_LEN_PACKET]
bool allow_digital_boolean
struct strvec * support_names
struct strvec * pretty_names
enum setting_default_level setdef
struct server_option::@249::@252 integer
struct option base_option
int fc_snprintf(char *str, size_t n, const char *format,...)
size_t fc_strlcpy(char *dest, const char *src, size_t n)
int fc_strcasecmp(const char *str0, const char *str1)
size_t fc_strlcat(char *dest, const char *src, size_t n)
int fc_stat(const char *filename, struct stat *buf)
#define sz_strlcpy(dest, src)
#define fc_strncmp(_s1_, _s2_, _len_)
void theme_reread_callback(struct option *poption)
const struct strvec * get_themes_list(const struct option *poption)
bool tilespec_try_read(const char *tileset_name, bool verbose, int topo_id, bool global_default)
const struct strvec * get_tileset_list(const struct option *poption)
const char * tileset_basename(const struct tileset *t)
void tilespec_reread_callback(struct option *poption)
int tileset_topo_index(struct tileset *t)