Handles the info menu.
More...
#include "SDL_keycode.h"
Go to the source code of this file.
Handles the info menu.
Definition in file info.h.
◆ INFO_CARGO
Cargo info window.
Definition at line 11 of file info.h.
◆ INFO_DEFAULT
Default window (only when opening.
Definition at line 16 of file info.h.
◆ INFO_MAIN
Main info window.
Definition at line 8 of file info.h.
◆ INFO_MISSIONS
Missions info window.
Definition at line 12 of file info.h.
◆ INFO_SHIP
◆ INFO_SHIPLOG
◆ INFO_STANDINGS
Standings info window.
Definition at line 13 of file info.h.
◆ INFO_WEAPONS
Weapons info window.
Definition at line 10 of file info.h.
◆ 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
-
| caption | Caption to give the button. |
| priority | Button priority, lower is more important. |
| key | Hotkey 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
-
| id | ID 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.