hudmenu.inc
Original include source with line numbers.
| 1 | #if defined _hudmenu_included |
| 2 | #endinput |
| 3 | #endif |
| 4 | |
| 5 | #define _hudmenu_included |
| 6 | |
| 7 | #include <amxmisc> |
| 8 | |
| 9 | // DON'T TOUCH |
| 10 | const KEYSMENU = MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4|MENU_KEY_5|MENU_KEY_6|MENU_KEY_7|MENU_KEY_8|MENU_KEY_9|MENU_KEY_0; |
| 11 | |
| 12 | #define hud_menu_register(%0,%1) register_menu(%0, KEYSMENU, %1, 1) |
| 13 | |
| 14 | // GET MENU INDEX |
| 15 | native hud_menu_get_menu_index(const iClient); |
| 16 | |
| 17 | // CREATE MENU TITLE |
| 18 | native hud_menu_create_title(const szText[], const iRed, const iGreen, const iBlue, const Float:fPosX = 0.0, const Float:fPosY = 0.4); |
| 19 | |
| 20 | // DESTROY MENU |
| 21 | native hud_menu_destroy(const iClient, const iStatic); |
| 22 | |
| 23 | // GET MENU PAGE |
| 24 | native hud_menu_get_page(const iClient); |
| 25 | |
| 26 | // BACK PAGE |
| 27 | native hud_menu_back_page(const iClient); |
| 28 | |
| 29 | // NEXT PAGE |
| 30 | native hud_menu_next_page(const iClient); |
| 31 | |
| 32 | // GET ITEM INDEX |
| 33 | native hud_menu_get_selected_option(const iClient, iKey); |
| 34 | |
| 35 | // GET MAX MENU ITEMS |
| 36 | native hud_menu_get_max_items(const iMenu); |
| 37 | |
| 38 | // GET MAX MENU ITEMS PER PAGE |
| 39 | native hud_menu_get_page_max_items() |
| 40 | |
| 41 | // GET ITEM NAME |
| 42 | native hud_menu_get_item_name(const iMenu, const iItem, szItem[], const iItemLenght); |
| 43 | |
| 44 | // ADD ITEM TO THE MENU |
| 45 | native hud_menu_additem(const iMenu, const szText[], const szPos[], const iRed = 255, const iGreen = 255, const iBlue = 255); |
| 46 | |
| 47 | // DISPLAY MENU |
| 48 | native hud_menu_display(const iClient, const iMenu, iPage); |