Freeciv-3.3
|
#include <SDL3/SDL.h>
#include "fcintl.h"
#include "log.h"
#include "diptreaty.h"
#include "game.h"
#include "research.h"
#include "client_main.h"
#include "climisc.h"
#include "packhand.h"
#include "chatline.h"
#include "colors.h"
#include "dialogs.h"
#include "graphics.h"
#include "gui_id.h"
#include "gui_main.h"
#include "gui_tilespec.h"
#include "mapview.h"
#include "themespec.h"
#include "widget.h"
#include "diplodlg.h"
#include "speclist.h"
Go to the source code of this file.
Data Structures | |
struct | diplomacy_dialog |
Macros | |
#define | SPECLIST_TAG dialog |
#define | SPECLIST_TYPE struct diplomacy_dialog |
#define | dialog_list_iterate(dialoglist, pdialog) TYPED_LIST_ITERATE(struct diplomacy_dialog, dialoglist, pdialog) |
#define | dialog_list_iterate_end LIST_ITERATE_END |
Variables | |
static struct dialog_list * | dialog_list |
static struct small_dialog * | spy_dlg = NULL |
#define dialog_list_iterate | ( | dialoglist, | |
pdialog | |||
) | TYPED_LIST_ITERATE(struct diplomacy_dialog, dialoglist, pdialog) |
Definition at line 60 of file diplodlg.c.
#define dialog_list_iterate_end LIST_ITERATE_END |
Definition at line 62 of file diplodlg.c.
#define SPECLIST_TAG dialog |
Definition at line 56 of file diplodlg.c.
#define SPECLIST_TYPE struct diplomacy_dialog |
Definition at line 57 of file diplodlg.c.
User interacted with accept treaty -widget.
Definition at line 238 of file diplodlg.c.
User interacted with call meeting -widget.
Definition at line 1409 of file diplodlg.c.
User interacted with cancel meeting -widget.
Definition at line 225 of file diplodlg.c.
User interacted with cancel pact -widget.
Definition at line 1392 of file diplodlg.c.
User interacted with cancel small diplomacy dialog -widget.
Definition at line 1428 of file diplodlg.c.
User interacted with city -widget.
Definition at line 446 of file diplodlg.c.
Close all open diplomacy dialogs, for when client disconnects from game.
Definition at line 1337 of file diplodlg.c.
|
static |
Open new diplomacy dialog between players.
Definition at line 909 of file diplodlg.c.
Free resources allocated for diplomacy dialog system.
Definition at line 87 of file diplodlg.c.
Initialialize diplomacy dialog system.
Definition at line 79 of file diplodlg.c.
User interacted with Diplomacy meeting -window.
Definition at line 468 of file diplodlg.c.
User interacted with Embassy -widget.
Definition at line 308 of file diplodlg.c.
|
static |
Get diplomacy dialog between client user and other player.
Definition at line 95 of file diplodlg.c.
User interacted with gold -widget.
Definition at line 403 of file diplodlg.c.
Handle the start of a diplomacy meeting - usually by popping up a diplomacy dialog.
Definition at line 1273 of file diplodlg.c.
Prepare to clause creation or removal.
Definition at line 170 of file diplodlg.c.
Update a player's acceptance status of a treaty (traditionally shown with the thumbs-up/thumbs-down sprite).
Definition at line 113 of file diplodlg.c.
void gui_recv_cancel_meeting | ( | struct treaty * | ptreaty, |
struct player * | they, | ||
struct player * | initiator | ||
) |
Update the diplomacy dialog when the meeting is canceled (the dialog should be closed).
Definition at line 130 of file diplodlg.c.
Update the diplomacy dialog by adding a clause.
Definition at line 191 of file diplodlg.c.
Update the diplomacy dialog by removing a clause.
Definition at line 208 of file diplodlg.c.
User interacted with map -widget.
Definition at line 350 of file diplodlg.c.
User interacted with pact selection -widget.
Definition at line 253 of file diplodlg.c.
|
static |
Close diplomacy dialog between client user and given counterpart.
Definition at line 1300 of file diplodlg.c.
Popdown all diplomacy dialogs
Definition at line 1325 of file diplodlg.c.
Close small diplomacy dialog.
Definition at line 1351 of file diplodlg.c.
Open diplomacy dialog between client user and given player.
Definition at line 1560 of file diplodlg.c.
|
static |
Create treaty widgets. Pact (that will always be both ways) related widgets are created only when pplayer0 is client user.
Definition at line 477 of file diplodlg.c.
Open war declaring dialog after some incident caused by pplayer.
Definition at line 1441 of file diplodlg.c.
User interacted with remove clause -widget.
Definition at line 147 of file diplodlg.c.
|
static |
Remove widget related to clause from list of widgets.
Definition at line 1215 of file diplodlg.c.
User interacted with small diplomacy window.
Definition at line 1363 of file diplodlg.c.
User interacted with Shared Tiles -widget.
Definition at line 329 of file diplodlg.c.
User interacted with tech -widget.
Definition at line 381 of file diplodlg.c.
|
static |
Update treaty acceptance icons (accepted / rejected)
Definition at line 1105 of file diplodlg.c.
|
static |
Refresh diplomacy dialog when list of clauses has been changed.
Definition at line 1152 of file diplodlg.c.
|
static |
Update diplomacy dialog information.
Definition at line 927 of file diplodlg.c.
User interacted with shared vision -widget.
Definition at line 287 of file diplodlg.c.
User interacted with withdraw vision -widget.
Definition at line 1375 of file diplodlg.c.
|
static |
Definition at line 64 of file diplodlg.c.
|
static |
Definition at line 1346 of file diplodlg.c.