Freeciv-3.2
Loading...
Searching...
No Matches
Functions
mapctrl.c File Reference
#include <stdlib.h>
#include "gui_stub.h"
#include "mapctrl.h"

Go to the source code of this file.

Functions

void popup_newcity_dialog (struct unit *punit, const char *suggestname)
 
void set_turn_done_button_state (bool state)
 
void create_line_at_mouse_pos (void)
 
void update_rect_at_mouse_pos (void)
 

Function Documentation

◆ create_line_at_mouse_pos()

void create_line_at_mouse_pos ( void  )

Draw a goto or patrol line at the current mouse position.

Definition at line 46 of file mapctrl.c.

◆ popup_newcity_dialog()

void popup_newcity_dialog ( struct unit punit,
const char suggestname 
)

Popup a dialog to ask for the name of a new city. The given string should be used as a suggestion.

Definition at line 29 of file mapctrl.c.

◆ set_turn_done_button_state()

void set_turn_done_button_state ( bool  state)

A turn done button should be provided for the player. This function is called to toggle it between active/inactive.

Definition at line 38 of file mapctrl.c.

◆ update_rect_at_mouse_pos()

void update_rect_at_mouse_pos ( void  )

The Area Selection rectangle. Called by center_tile_mapcanvas() and when the mouse pointer moves.

Definition at line 55 of file mapctrl.c.