naev 0.12.5
info.h File Reference

Handles the info menu. More...

#include "SDL_keycode.h"
Include dependency graph for info.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define INFO_MAIN   0
#define INFO_SHIP   1
#define INFO_WEAPONS   2
#define INFO_CARGO   3
#define INFO_MISSIONS   4
#define INFO_STANDINGS   5
#define INFO_SHIPLOG   6
#define INFO_DEFAULT   -1

Functions

void menu_info (int window)
 Opens the information menu.
void info_update (void)
 Updates the info windows.
int info_buttonRegister (const char *caption, int priority, SDL_Keycode key)
 Registers a button in the info menu.
int info_buttonUnregister (int id)
 Unregisters a button in the info menu.
void info_buttonClear (void)
 Clears all the registered buttons.

Detailed Description

Handles the info menu.

Definition in file info.h.

Macro Definition Documentation

◆ INFO_CARGO

#define INFO_CARGO   3

Cargo info window.

Definition at line 11 of file info.h.

◆ INFO_DEFAULT

#define INFO_DEFAULT   -1

Default window (only when opening.

Definition at line 16 of file info.h.

◆ INFO_MAIN

#define INFO_MAIN   0

Main info window.

Definition at line 8 of file info.h.

◆ INFO_MISSIONS

#define INFO_MISSIONS   4

Missions info window.

Definition at line 12 of file info.h.

◆ INFO_SHIP

#define INFO_SHIP   1

Ship info window.

Definition at line 9 of file info.h.

◆ INFO_SHIPLOG

#define INFO_SHIPLOG   6

Ship log info window.

Definition at line 14 of file info.h.

◆ INFO_STANDINGS

#define INFO_STANDINGS   5

Standings info window.

Definition at line 13 of file info.h.

◆ INFO_WEAPONS

#define INFO_WEAPONS   2

Weapons info window.

Definition at line 10 of file info.h.

Function Documentation

◆ info_buttonClear()

void info_buttonClear ( void )

Clears all the registered buttons.

Definition at line 244 of file info.c.

◆ info_buttonRegister()

int info_buttonRegister ( const char * caption,
int priority,
SDL_Keycode key )

Registers a button in the info menu.

Parameters
captionCaption to give the button.
priorityButton priority, lower is more important.
keyHotkey for using the button without it being focused (or SDLK_UNKNOWN or 0 if none).
Returns
Newly created button ID.

Definition at line 189 of file info.c.

◆ info_buttonUnregister()

int info_buttonUnregister ( int id)

Unregisters a button in the info menu.

Parameters
idID of the button to unregister and previously created by info_buttonRegister.
Returns
0 on success.

Definition at line 222 of file info.c.

◆ info_update()

void info_update ( void )

Updates the info windows.

Definition at line 367 of file info.c.

◆ menu_info()

void menu_info ( int window)

Opens the information menu.

Definition at line 282 of file info.c.