Freeciv-3.3
|
#include <stdio.h>
#include "fc_cmdline.h"
#include "fciconv.h"
#include "log.h"
#include "gui_stub.h"
#include "gui_cbsetter.h"
#include "client_main.h"
#include "editgui_g.h"
#include "options.h"
#include "gui_main.h"
Go to the source code of this file.
Variables | |
const char * | client_string = "gui-stub" |
const char *const | gui_character_encoding = "UTF-8" |
const bool | gui_use_transliteration = FALSE |
Enqueue a callback to be called during an idle moment. The 'callback' function should be called sometimes soon, and passed the 'data' pointer as its data.
Definition at line 220 of file gui_main.c.
Referenced by setup_gui_funcs().
Wait for data on the given socket. Call input_from_server() when data is ready to be read.
This function is called after the client has successfully connected to the server.
Definition at line 162 of file gui_main.c.
Referenced by setup_gui_funcs().
Stub for editor function
Definition at line 256 of file gui_main.c.
Referenced by setup_gui_funcs().
Stub for editor function
Definition at line 263 of file gui_main.c.
Referenced by setup_gui_funcs().
Stub for editor function
Definition at line 250 of file gui_main.c.
Referenced by setup_gui_funcs().
Stub for editor function
Definition at line 244 of file gui_main.c.
Referenced by setup_gui_funcs().
Stub for editor function
Definition at line 238 of file gui_main.c.
Referenced by setup_gui_funcs().
Stub for editor function
Definition at line 232 of file gui_main.c.
Referenced by setup_gui_funcs().
Updates a gui font style.
Definition at line 269 of file gui_main.c.
Referenced by setup_gui_funcs().
Insert build information to help
Definition at line 277 of file gui_main.c.
Referenced by setup_gui_funcs().
Extra initializers for client options.
Definition at line 117 of file gui_main.c.
Referenced by setup_gui_funcs().
Update the connected users list at pregame state.
Definition at line 141 of file gui_main.c.
Referenced by setup_gui_funcs().
Called when the set of units in focus (get_units_in_focus()) changes. Standard updates like update_unit_info_label() are handled in the platform- independent code, so some clients will not need to do anything here.
Definition at line 210 of file gui_main.c.
Referenced by setup_gui_funcs().
Stop waiting for any server network data. See add_net_input().
This function is called if the client disconnects from the server.
Definition at line 172 of file gui_main.c.
Referenced by setup_gui_funcs().
Set one of the unit icons (specified by idx) in the information area based on punit.
punit is the unit the information should be taken from. Use nullptr to clear the icon.
idx specified which icon should be modified. Use idx == -1 to indicate the icon for the active unit. Or idx in [0..num_units_below - 1] for secondary (inactive) units on the same tile.
Definition at line 188 of file gui_main.c.
Referenced by setup_gui_funcs().
Most clients use an arrow (e.g., sprites.right_arrow) to indicate when the units_below will not fit. This function is called to activate or deactivate the arrow.
Is disabled by default.
Definition at line 200 of file gui_main.c.
Referenced by setup_gui_funcs().
Define properties of this gui.
Definition at line 285 of file gui_main.c.
Referenced by setup_gui_funcs().
Make a bell noise (beep). This provides low-level sound alerts even if there is no real sound support.
Definition at line 150 of file gui_main.c.
Referenced by setup_gui_funcs().
Do any necessary UI-specific cleanup
Definition at line 125 of file gui_main.c.
Referenced by setup_gui_funcs().
Do any necessary pre-initialization of the UI, if necessary.
Definition at line 44 of file gui_main.c.
Referenced by setup_gui_funcs().
The main loop for the UI. This is called from main(), and when it exits the client will exit.
Definition at line 100 of file gui_main.c.
Referenced by setup_gui_funcs().
Entry point for whole freeciv client program.
Definition at line 52 of file gui_main.c.
Parse and enact any gui-specific command-line options.
Definition at line 76 of file gui_main.c.
Print extra usage information, including one line help on each option, to stderr.
Definition at line 62 of file gui_main.c.
Definition at line 36 of file gui_main.c.
Definition at line 38 of file gui_main.c.
Referenced by client_main().
Definition at line 39 of file gui_main.c.
Referenced by client_main().