Skip to content

Commit

Permalink
Fix some desc typos & some visual changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Amaroq7 committed Aug 13, 2016
1 parent 2584e85 commit ccd4e45
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions plugins/include/newmenus.inc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
* unloads.
* @error Function name not found.
*/
native menu_create(const title[], const handler[], ml=0);
native menu_create(const title[], const handler[], ml = 0);

/**
* Creates a menu item callback handler.
Expand All @@ -82,7 +82,7 @@ native menu_create(const title[], const handler[], ml=0);
native menu_makecallback(const function[]);

/**
* Adds an menu to a menu.
* Adds an item to a menu.
*
* @param menu Menu resource identifier.
* @param name Item text to display.
Expand All @@ -94,10 +94,10 @@ native menu_makecallback(const function[]);
* @error Invalid menu resource.
*/
#pragma deprecated Use menu_additem2 instead.
native menu_additem(menu, const name[], const info[]="", paccess=0, callback=-1);
native menu_additem(menu, const name[], const info[] = "", paccess = 0, callback = -1);

/**
* Adds an menu to a menu.
* Adds an item to a menu.
*
* @param menu Menu resource identifier.
* @param name Item text to display.
Expand Down Expand Up @@ -147,7 +147,7 @@ native menu_items(menu);
* @noreturn
* @error Invalid menu resource or client index.
*/
native menu_display(id, menu, page=0, time=-1);
native menu_display(id, menu, page = 0, time = -1);

/**
* Given a page on a menu and a keypress on that page, returns the item id selected.
Expand Down Expand Up @@ -175,8 +175,8 @@ native menu_find_id(menu, page, key);
* @return 1 on success, 0 on failure.
* @error Invalid menu resource.
*/
#pragma deprecated Item info can be retrieved from datapack passed as parameter in handler or callback function.
native menu_item_getinfo(menu, item, &access, info[], infolen, name[]="", namelen=0, &callback);
#pragma deprecated Item info can be retrieved from data parameter passed in handler or callback function.
native menu_item_getinfo(menu, item, &access, info[], infolen, name[] = "", namelen = 0, &callback);

/**
* Sets an item's display text.
Expand All @@ -198,7 +198,7 @@ native menu_item_setname(menu, item, const name[]);
* @return 1 on success, 0 on failure.
* @error Invalid menu resource.
*/
#pragma deprecated Write info directly to datapack passed as parameter in handler or callback function.
#pragma deprecated Item info can be written directly to data parameter passed in handler or callback function.
native menu_item_setcmd(menu, item, const info[]);

/**
Expand All @@ -210,7 +210,7 @@ native menu_item_setcmd(menu, item, const info[]);
* @return 1 on success, 0 on failure.
* @error Invalid menu resource.
*/
native menu_item_setcall(menu, item, callback=-1);
native menu_item_setcall(menu, item, callback = -1);

/**
* Destroys a menu. Player menus will be cancelled (although may still linger
Expand Down Expand Up @@ -246,7 +246,7 @@ native menu_destroy(menu);
* @return 1 if the player is viewing a menu, 0 otherwise.
* @error Invalid client.
*/
native player_menu_info(id, &menu, &newmenu, &menupage=0);
native player_menu_info(id, &menu, &newmenu, &menupage = 0);

/**
* Adds a blank line to a menu.
Expand All @@ -260,7 +260,7 @@ native player_menu_info(id, &menu, &newmenu, &menupage=0);
* @noreturn
* @error Invalid menu resource.
*/
native menu_addblank(menu, slot=1);
native menu_addblank(menu, slot = 1);

/**
* Adds a text line to a menu. Only available in amxmodx 1.8.1 and above.
Expand All @@ -275,7 +275,7 @@ native menu_addblank(menu, slot=1);
* @noreturn
* @error Invalid menu resource.
*/
native menu_addtext(menu, const text[], slot=1);
native menu_addtext(menu, const text[], slot = 1);

/**
* Adds a blank line to a menu, always shifting the numbering down.
Expand All @@ -292,7 +292,7 @@ native menu_addtext(menu, const text[], slot=1);
* @error Invalid menu resource.
* Too many items on non-paginated menu (max is 10)
*/
native menu_addblank2( menu );
native menu_addblank2(menu);

/**
* Adds a text line to a menu, always shifting the numbering down.
Expand All @@ -310,7 +310,7 @@ native menu_addblank2( menu );
* @error Invalid menu resource.
* Too many items on non-paginated menu (max is 10)
*/
native menu_addtext2( menu, const text[] );
native menu_addtext2(menu, const text[]);

/**
* Sets a menu property.
Expand Down

0 comments on commit ccd4e45

Please sign in to comment.