naev 0.12.6
info.h
Go to the documentation of this file.
1/*
2 * See Licensing and Copyright notice in naev.h
3 */
4#pragma once
5
6#include "SDL_keycode.h"
7
8#define INFO_MAIN 0
9#define INFO_SHIP 1
10#define INFO_WEAPONS 2
11#define INFO_CARGO 3
12#define INFO_MISSIONS 4
13#define INFO_STANDINGS 5
14#define INFO_SHIPLOG 6
15
16#define INFO_DEFAULT -1
17
18/*
19 * Menu opening routines.
20 */
21void menu_info( int window );
22void info_update( void );
23
24/* Custom buttons. */
25int info_buttonRegister( const char *caption, int priority, SDL_Keycode key );
26int info_buttonUnregister( int id );
27void info_buttonClear( void );
int info_buttonRegister(const char *caption, int priority, SDL_Keycode key)
Registers a button in the info menu.
Definition info.c:189
void info_update(void)
Updates the info windows.
Definition info.c:367
int info_buttonUnregister(int id)
Unregisters a button in the info menu.
Definition info.c:222
void info_buttonClear(void)
Clears all the registered buttons.
Definition info.c:244
void menu_info(int window)
Opens the information menu.
Definition info.c:282