Freeciv-3.3: /fast/freeciv/nightly/main/client/gui-sdl2/dialogs.h File Reference

Freeciv-3.3

Loading...
Searching...
No Matches
Functions
dialogs.h File Reference
`#include <SDL2/SDL.h>`
`#include "dialogs_g.h"`

Go to the source code of this file.

## Functions

void | popup_advanced_terrain_dialog (struct tile *ptile, Uint16 pos_x, Uint16 pos_y)
void | popdown_advanced_terrain_dialog (void)
const char * | sdl_get_tile_defense_info_text (struct tile *ptile)
void | put_window_near_map_tile (struct widget *pwindow, int window_width, int window_height, struct tile *ptile)
void | popup_unit_upgrade_dlg (struct unit *punit, bool city)
void | popup_unit_disband_dlg (struct unit *punit, bool city)
void | popup_government_dialog (void)
void | popdown_notify_goto_dialog (void)
void | nationset_changed (void)

## Function Documentation

## ◆ nationset_changed()

void nationset_changed | ( | void |  | ) |

Nationset selection update

Definition at line 3565 of file dialogs.c.

## ◆ popdown_advanced_terrain_dialog()

void popdown_advanced_terrain_dialog | ( | void |  | ) |

Popdown a generic dialog to display some generic information about terrain : tile, units , cities, etc.

Definition at line 1417 of file dialogs.c.

## ◆ popdown_notify_goto_dialog()

void popdown_notify_goto_dialog | ( | void |  | ) |

Popdown the notify goto dialog.

Definition at line 459 of file dialogs.c.

## ◆ popup_advanced_terrain_dialog()

void popup_advanced_terrain_dialog | ( | struct tile * | ptile,
|  | Uint16 | pos_x,
|  | Uint16 | pos_y
| ) |  |

Popup a generic dialog to display some generic information about terrain : tile, units , cities, etc.

Definition at line 1697 of file dialogs.c.

## ◆ popup_government_dialog()

void popup_government_dialog | ( | void |  | ) |

Popup a dialog asking the player what government to switch to.

Definition at line 2452 of file dialogs.c.

## ◆ popup_unit_disband_dlg()

void popup_unit_disband_dlg | ( | struct unit * | punit,
|  | bool | city
| ) |  |

Open unit disband dialog.

Definition at line 878 of file dialogs.c.

## ◆ popup_unit_upgrade_dlg()

void popup_unit_upgrade_dlg | ( | struct unit * | punit,
|  | bool | city
| ) |  |

Open unit upgrade dialog.

Definition at line 683 of file dialogs.c.

## ◆ put_window_near_map_tile()

void put_window_near_map_tile | ( | struct widget * | pwindow,
|  | int | window_width,
|  | int | window_height,
|  | struct tile * | ptile
| ) |  |

Place window near given tile on screen.

Definition at line 109 of file dialogs.c.

## ◆ sdl_get_tile_defense_info_text()

const char * sdl_get_tile_defense_info_text | ( | struct tile * | ptile | ) |

Return a (static) string with terrain defense bonus. This does not include bonuses some units may get out of bases.

Definition at line 1306 of file dialogs.c.