Freeciv-3.3
|
Go to the source code of this file.
Get information about starting the action in the current situation. Suitable for a tool tip for the button that starts it.
Not re-entrant
Definition at line 1836 of file text.c.
Referenced by action_entry(), action_entry(), action_entry_update(), and action_entry_update().
const char * get_act_sel_action_custom_text | ( | struct action * | paction, |
const struct act_prob | prob, | ||
const struct unit * | actor_unit, | ||
const struct city * | target_city | ||
) |
Returns custom part of the action selection dialog button text for the specified action (given that the action is possible).
Not re-entrant
Definition at line 1757 of file text.c.
Referenced by action_entry(), action_selection_refresh(), and popup_action_selection().
Describe the airlift capacity of a city for the given units (from their current positions). If pdest is non-NULL, describe its capacity as a destination, otherwise describe the capacity of the city the unit's currently in (if any) as a source. (If the units in the list are in different cities, this will probably not give a useful result in this case.) If not all of the listed units can be airlifted, return the description for those that can. Returns NULL if an airlift is not possible for any of the units.
Not re-entrant
Definition at line 592 of file text.c.
Referenced by goto_dialog::fill_tab(), refresh_airlift_column(), and update_source_label().
Get a tooltip text for the info panel research indicator. See client_research_sprite().
Not re-entrant
Get a tooltip text for the info panel global warning indicator. See also client_warming_sprite().
Not re-entrant
Return the text for the label on the info panel. (This is traditionally shown to the left of the mapview.)
Clicking on this text should bring up the get_info_label_text_popup() text.
Not re-entrant
Returns the text describing the city and its distance.
Not re-entrant
Definition at line 488 of file text.c.
Referenced by create_present_supported_units_widget_list(), and unit_description().
Get a tooltip text for the info panel nuclear winter indicator. See also client_cooling_sprite().
Not re-entrant
Return text giving the ping time for the player. This is generally used in the playerdlg. This should only be used in plrdlg_common.c.
Not re-entrant
const char * get_science_goal_text | ( | Tech_type_id | goal | ) |
Set the science-goal-label text as if we're researching the given goal.
Not re-entrant
Definition at line 913 of file text.c.
Referenced by real_science_report_dialog_update(), science_report_update(), and science_report::update_report().
Get the short science-target text. This is usually shown directly in the progress bar.
5/28 - 3 turns
The "percent" value, if given, will be set to the completion percentage of the research target (actually it's a [0,1] scale not a percent).
Not re-entrant
Definition at line 867 of file text.c.
Referenced by get_info_label_text_popup(), real_science_report_dialog_update(), science_report_update(), and science_report::update_report().
Return text giving the score of the player. This should only be used in plrdlg_common.c.
Not re-entrant
const char * get_spaceship_descr | ( | struct player_spaceship * | pship | ) |
Returns a description of the given spaceship. If there is no spaceship (pship is NULL) then text with dummy values is returned.
Not re-entrant
Definition at line 1547 of file text.c.
Referenced by create_spaceship_dialog(), popup_spaceship_dialog(), refresh_spaceship_dialog(), spaceship_dialog_update_info(), and ss_report::update_report().
Return a (static) string with a tile's food/prod/trade
Not re-entrant
Definition at line 63 of file text.c.
Referenced by popup_info_text(), popup_terrain_info(), and redraw_unit_info_label().
Return the title text for the unit info shown in the info panel.
Not re-entrant
FIXME: this should be renamed.
Definition at line 1101 of file text.c.
Referenced by update_unit_info_label().
Return the text body for the unit info shown in the info panel.
Not re-entrant
FIXME: this should be renamed.
Definition at line 1126 of file text.c.
Referenced by redraw_unit_info_label(), and update_unit_info_label().
Fill buffer with text about disbanding units on the list.
Returns TRUE iff any units can be disbanded.
Definition at line 1370 of file text.c.
Referenced by popup_disband_dialog(), and popup_unit_disband_dlg().
Fill buffer with text about upgrading units on the list.
Returns TRUE iff any units can be upgraded.
Definition at line 1304 of file text.c.
Referenced by popup_upgrade_dialog().
Text to popup on a middle-click in the mapview.
Not re-entrant
Definition at line 147 of file text.c.
Referenced by info_tile::calc_size(), popit(), popit(), popup_terrain_info_dialog(), and hud_units::update_actions().
Fill provided buffer with relatively short (not full) helptext of the universal.
Definition at line 2137 of file text.c.
Referenced by drag_drop(), menu_item_callback(), menu_item_callback(), and refresh_worklist().
Tooltip for the player row on reports. Negative score is not shown.
Not re-entrant
Definition at line 2174 of file text.c.
Referenced by endgame_report_dialog_player(), and fill_row().
Describe buildings that affect happiness.
Not re-entrant
Definition at line 1847 of file text.c.
Referenced by show_happiness_popup(), show_happiness_popup(), and city_dialog::update_citizens().
Describe luxuries that affect happiness.
Not re-entrant
Definition at line 2120 of file text.c.
Referenced by show_happiness_popup(), show_happiness_popup(), and city_dialog::update_citizens().
Describe nationality effects that affect happiness.
Not re-entrant
Definition at line 1875 of file text.c.
Referenced by show_happiness_popup(), show_happiness_popup(), and city_dialog::update_citizens().
Describe units that affect happiness.
Not re-entrant
Definition at line 2081 of file text.c.
Referenced by show_happiness_popup(), show_happiness_popup(), and city_dialog::update_citizens().
Describe wonders that affect happiness.
Not re-entrant
Definition at line 1917 of file text.c.
Referenced by show_happiness_popup(), show_happiness_popup(), and city_dialog::update_citizens().
Returns a unit description. Used in e.g. city report tooltips.
Not re-entrant
Definition at line 522 of file text.c.
Referenced by city_dialog_update_present_units(), city_dialog_update_supported_units(), unit_item::unit_item(), and units_orders_city_dlg_callback().