|
|
1.1 ! root 1: ! 2: enum { ! 3: PMENU_ALIGN_LEFT, ! 4: PMENU_ALIGN_CENTER, ! 5: PMENU_ALIGN_RIGHT ! 6: }; ! 7: ! 8: typedef struct pmenuhnd_s { ! 9: struct pmenu_s *entries; ! 10: int cur; ! 11: int num; ! 12: void *arg; ! 13: } pmenuhnd_t; ! 14: ! 15: typedef void (*SelectFunc_t)(edict_t *ent, pmenuhnd_t *hnd); ! 16: ! 17: typedef struct pmenu_s { ! 18: char *text; ! 19: int align; ! 20: SelectFunc_t SelectFunc; ! 21: } pmenu_t; ! 22: ! 23: pmenuhnd_t *PMenu_Open(edict_t *ent, pmenu_t *entries, int cur, int num, void *arg); ! 24: void PMenu_Close(edict_t *ent); ! 25: void PMenu_UpdateEntry(pmenu_t *entry, const char *text, int align, SelectFunc_t SelectFunc); ! 26: void PMenu_Do_Update(edict_t *ent); ! 27: void PMenu_Update(edict_t *ent); ! 28: void PMenu_Next(edict_t *ent); ! 29: void PMenu_Prev(edict_t *ent); ! 30: void PMenu_Select(edict_t *ent);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.