Freeciv-3.2
Loading...
Searching...
No Matches
Functions | Variables
gotodlg.c File Reference
#include <stdlib.h>
#include <SDL3/SDL.h>
#include "bitvector.h"
#include "fcintl.h"
#include "log.h"
#include "game.h"
#include "fc_types.h"
#include "nation.h"
#include "unitlist.h"
#include "client_main.h"
#include "control.h"
#include "goto.h"
#include "colors.h"
#include "graphics.h"
#include "gui_id.h"
#include "gui_main.h"
#include "gui_tilespec.h"
#include "mapview.h"
#include "sprite.h"
#include "widget.h"
#include "gotodlg.h"

Go to the source code of this file.

Functions

static void update_goto_dialog (void)
 
static int goto_dialog_window_callback (struct widget *pwindow)
 
static int exit_goto_dialog_callback (struct widget *pwidget)
 
static int toggle_goto_nations_cities_dialog_callback (struct widget *pwidget)
 
static int goto_city_callback (struct widget *pwidget)
 
static void popup_goto_airlift_dialog (void)
 
void popup_goto_dialog (void)
 
void popup_airlift_dialog (void)
 
void popdown_goto_airlift_dialog (void)
 

Variables

static struct advanced_dialoggoto_dlg = NULL
 
bv_player all_players
 
static bool GOTO = TRUE
 

Function Documentation

◆ exit_goto_dialog_callback()

static int exit_goto_dialog_callback ( struct widget pwidget)
static

Close goto dialog.

Definition at line 72 of file gotodlg.c.

◆ goto_city_callback()

static int goto_city_callback ( struct widget pwidget)
static

User has selected city for unit to go to.

Definition at line 104 of file gotodlg.c.

◆ goto_dialog_window_callback()

static int goto_dialog_window_callback ( struct widget pwindow)
static

User interacted with goto dialog window.

Definition at line 60 of file gotodlg.c.

◆ popdown_goto_airlift_dialog()

void popdown_goto_airlift_dialog ( void  )

Popdown goto/airlift to a city dialog.

Definition at line 420 of file gotodlg.c.

◆ popup_airlift_dialog()

void popup_airlift_dialog ( void  )

Popup a dialog to have the focus unit airlift to a city.

Definition at line 404 of file gotodlg.c.

◆ popup_goto_airlift_dialog()

static void popup_goto_airlift_dialog ( void  )
static

Popup a dialog to have the focus unit goto to a city.

Definition at line 242 of file gotodlg.c.

◆ popup_goto_dialog()

void popup_goto_dialog ( void  )

Popup a dialog to have the focus unit goto to a city.

Definition at line 389 of file gotodlg.c.

◆ toggle_goto_nations_cities_dialog_callback()

static int toggle_goto_nations_cities_dialog_callback ( struct widget pwidget)
static

Toggle whether player cities are listed as possible destinations.

Definition at line 85 of file gotodlg.c.

◆ update_goto_dialog()

static void update_goto_dialog ( void  )
static

Refresh goto dialog.

Definition at line 131 of file gotodlg.c.

Variable Documentation

◆ all_players

bv_player all_players

Definition at line 52 of file gotodlg.c.

◆ GOTO

bool GOTO = TRUE
static

Definition at line 53 of file gotodlg.c.

◆ goto_dlg

struct advanced_dialog* goto_dlg = NULL
static

Definition at line 51 of file gotodlg.c.