Freeciv-3.1
|
#include <SDL2/SDL.h>
#include "fcintl.h"
#include "log.h"
#include "clientutils.h"
#include "game.h"
#include "road.h"
#include "traderoutes.h"
#include "unitlist.h"
#include "client_main.h"
#include "climisc.h"
#include "control.h"
#include "dialogs.h"
#include "gotodlg.h"
#include "graphics.h"
#include "gui_id.h"
#include "gui_main.h"
#include "gui_tilespec.h"
#include "mapctrl.h"
#include "mapview.h"
#include "pages.h"
#include "widget.h"
#include "menu.h"
Go to the source code of this file.
Macros | |
#define | local_show(id) |
#define | local_hide(id) |
Functions | |
static int | unit_order_callback (struct widget *order_widget) |
static Uint16 | redraw_order_widgets (void) |
static void | set_new_order_widget_start_pos (void) |
void | create_units_order_widgets (void) |
void | delete_units_order_widgets (void) |
void | update_order_widgets (void) |
void | undraw_order_widgets (void) |
void | real_menus_init (void) |
void | real_menus_update (void) |
void | disable_order_buttons (void) |
void | enable_order_buttons (void) |
Variables | |
struct widget * | options_button |
static struct widget * | begin_order_widget_list |
static struct widget * | end_order_widget_list |
static struct widget * | order_fallout_button |
static struct widget * | order_pollution_button |
static struct widget * | order_airbase_button |
static struct widget * | order_fortress_button |
static struct widget * | order_build_add_to_city_button |
static struct widget * | order_mine_button |
static struct widget * | order_irrigation_button |
static struct widget * | order_cultivate_button |
static struct widget * | order_plant_button |
static struct widget * | order_road_button |
static struct widget * | order_transform_button |
static struct widget * | order_trade_button |
#define local_hide | ( | id | ) |
#define local_show | ( | id | ) |
void create_units_order_widgets | ( | void | ) |
void delete_units_order_widgets | ( | void | ) |
Free resources allocated for unit order widgets.
Definition at line 958 of file menu.c.
Referenced by close_game_page().
void disable_order_buttons | ( | void | ) |
Disable all unit order buttons.
Definition at line 1494 of file menu.c.
Referenced by disable_main_widgets().
void enable_order_buttons | ( | void | ) |
Enable all unit order buttons.
Definition at line 1504 of file menu.c.
Referenced by enable_main_widgets(), and show_game_page().
void real_menus_init | ( | void | ) |
Initialize menus (sensitivity, name, etc.) based on the current state and current ruleset, etc. Call menus_update().
void real_menus_update | ( | void | ) |
|
static |
Refresh order widgets.
Definition at line 277 of file menu.c.
Referenced by disable_order_buttons(), enable_order_buttons(), real_menus_update(), and update_order_widgets().
|
static |
Reposition order widgets as they fit.
Definition at line 305 of file menu.c.
Referenced by real_menus_update(), and update_order_widgets().
void undraw_order_widgets | ( | void | ) |
Clear unit order widgets from view.
Definition at line 979 of file menu.c.
Referenced by disable_order_buttons(), enable_order_buttons(), popdown_all_game_dialogs(), real_menus_update(), toggle_map_window_callback(), and toggle_unit_info_window_callback().
|
static |
User interacted with some unit order widget.
Definition at line 93 of file menu.c.
Referenced by create_units_order_widgets().
void update_order_widgets | ( | void | ) |
Draw order widgets to their currently correct place.
Definition at line 970 of file menu.c.
Referenced by real_resize_window_callback(), toggle_map_window_callback(), and toggle_unit_info_window_callback().
|
static |
Definition at line 65 of file menu.c.
Referenced by create_units_order_widgets(), delete_units_order_widgets(), disable_order_buttons(), enable_order_buttons(), real_menus_update(), redraw_order_widgets(), set_new_order_widget_start_pos(), and undraw_order_widgets().
|
static |
Definition at line 66 of file menu.c.
Referenced by create_units_order_widgets(), delete_units_order_widgets(), disable_order_buttons(), enable_order_buttons(), real_menus_update(), redraw_order_widgets(), set_new_order_widget_start_pos(), and undraw_order_widgets().
|
extern |
Definition at line 103 of file optiondlg.c.
Referenced by back_callback(), disable_options_button(), enable_options_button(), init_options_button(), and real_menus_update().
|
static |
Definition at line 70 of file menu.c.
Referenced by create_units_order_widgets(), and real_menus_update().
|
static |
Definition at line 72 of file menu.c.
Referenced by create_units_order_widgets(), and real_menus_update().
|
static |
Definition at line 75 of file menu.c.
Referenced by create_units_order_widgets(), and real_menus_update().
|
static |
Definition at line 68 of file menu.c.
Referenced by create_units_order_widgets(), and real_menus_update().
|
static |
Definition at line 71 of file menu.c.
Referenced by create_units_order_widgets(), and real_menus_update().
|
static |
Definition at line 74 of file menu.c.
Referenced by create_units_order_widgets(), and real_menus_update().
|
static |
Definition at line 73 of file menu.c.
Referenced by create_units_order_widgets(), and real_menus_update().
|
static |
Definition at line 76 of file menu.c.
Referenced by create_units_order_widgets(), and real_menus_update().
|
static |
Definition at line 69 of file menu.c.
Referenced by create_units_order_widgets(), and real_menus_update().
|
static |
Definition at line 77 of file menu.c.
Referenced by create_units_order_widgets(), and real_menus_update().
|
static |
Definition at line 79 of file menu.c.
Referenced by create_units_order_widgets(), and real_menus_update().
|
static |
Definition at line 78 of file menu.c.
Referenced by create_units_order_widgets(), and real_menus_update().