mirror of
https://github.com/blendogames/thirtyflightsofloving.git
synced 2024-11-15 00:41:21 +00:00
9481c7c513
Changed Zaero and 3ZB2 game DLLs to use WORLD_SIZE for various calculations instead of 8192. Cleaned up string handling in 3ZB2 game DLL. Added func_plat2, func_door_secret2, and func_force_wall from Rogue to 3ZB2 game DLL. Added alternate attack contact explode for grenade launcher in 3ZB2 game DLL. Added awakening2 game DLL source.
33 lines
722 B
C
33 lines
722 B
C
// p_menu.h
|
|
|
|
enum {
|
|
PMENU_ALIGN_LEFT,
|
|
PMENU_ALIGN_CENTER,
|
|
PMENU_ALIGN_RIGHT
|
|
};
|
|
|
|
typedef struct pmenuhnd_s
|
|
{
|
|
struct pmenu_s *entries;
|
|
int cur;
|
|
int num;
|
|
void *arg;
|
|
} pmenuhnd_t;
|
|
|
|
typedef void (*SelectFunc_t)(edict_t *ent, pmenuhnd_t *hnd);
|
|
|
|
typedef struct pmenu_s
|
|
{
|
|
char *text;
|
|
int align;
|
|
SelectFunc_t SelectFunc;
|
|
} pmenu_t;
|
|
|
|
pmenuhnd_t *PMenu_Open(edict_t *ent, pmenu_t *entries, int cur, int num, void *arg);
|
|
void PMenu_Close(edict_t *ent);
|
|
void PMenu_UpdateEntry(pmenu_t *entry, const char *text, int align, SelectFunc_t SelectFunc);
|
|
void PMenu_Do_Update(edict_t *ent);
|
|
void PMenu_Update(edict_t *ent);
|
|
void PMenu_Next(edict_t *ent);
|
|
void PMenu_Prev(edict_t *ent);
|
|
void PMenu_Select(edict_t *ent);
|