You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.0 KiB
45 lines
1.0 KiB
/** |
|
* @file gmenu.h |
|
* |
|
* Interface of the in-game navigation and interaction. |
|
*/ |
|
#ifndef __GMENU_H__ |
|
#define __GMENU_H__ |
|
|
|
#include "engine.h" |
|
|
|
DEVILUTION_BEGIN_NAMESPACE |
|
|
|
#ifdef __cplusplus |
|
extern "C" { |
|
#endif |
|
|
|
typedef struct TMenuItem { |
|
Uint32 dwFlags; |
|
const char *pszStr; |
|
void (*fnMenu)(BOOL); |
|
} TMenuItem; |
|
|
|
extern TMenuItem *sgpCurrentMenu; |
|
|
|
void gmenu_draw_pause(CelOutputBuffer out); |
|
void FreeGMenu(); |
|
void gmenu_init_menu(); |
|
BOOL gmenu_is_active(); |
|
void gmenu_set_items(TMenuItem *pItem, void (*gmFunc)(TMenuItem *)); |
|
void gmenu_draw(CelOutputBuffer out); |
|
BOOL gmenu_presskeys(int vkey); |
|
BOOL gmenu_on_mouse_move(); |
|
BOOL gmenu_left_mouse(BOOL isDown); |
|
void gmenu_enable(TMenuItem *pMenuItem, BOOL enable); |
|
void gmenu_slider_set(TMenuItem *pItem, int min, int max, int gamma); |
|
int gmenu_slider_get(TMenuItem *pItem, int min, int max); |
|
void gmenu_slider_steps(TMenuItem *pItem, int dwTicks); |
|
|
|
#ifdef __cplusplus |
|
} |
|
#endif |
|
|
|
DEVILUTION_END_NAMESPACE |
|
|
|
#endif /* __GMENU_H__ */
|
|
|