plugins/include/menus.inc
changeset 1259 472c5e61cdc8
parent 1163 0bb03cb6277b
child 1269 27397584df9c
     1.1 --- a/plugins/include/menus.inc	Fri Aug 03 11:14:56 2007 +0000
     1.2 +++ b/plugins/include/menus.inc	Fri Aug 03 11:40:21 2007 +0000
     1.3 @@ -64,6 +64,10 @@
     1.4  #define ITEMDRAW_IGNORE	((1<<1)|(1<<2))	/**< Item should be completely ignored (rawline + notext) */
     1.5  #define ITEMDRAW_CONTROL		(1<<4)	/**< Item is control text (back/next/exit) */
     1.6  
     1.7 +#define MENUFLAG_BUTTON_EXIT		(1<<0)	/**< Menu has an "exit" button */
     1.8 +#define MENUFLAG_BUTTON_EXITBACK	(1<<1)	/**< Menu has an "exit back" button */
     1.9 +#define MENUFLAG_NO_SOUND			(1<<2)	/**< Menu will not have any select sounds */
    1.10 +
    1.11  /**
    1.12   * Reasons a menu can be cancelled.
    1.13   */
    1.14 @@ -325,6 +329,28 @@
    1.15  native CancelMenu(Handle:menu);
    1.16  
    1.17  /**
    1.18 + * Retrieves a menu's option flags.
    1.19 + *
    1.20 + * @param menu				Menu Handle.
    1.21 + * @return					A bitstring of MENUFLAG bits.
    1.22 + * @error					Invalid Handle.
    1.23 + */
    1.24 +native GetMenuOptionFlags(Handle:menu);
    1.25 +
    1.26 +/**
    1.27 + * Sets a menu's option flags.
    1.28 + *
    1.29 + * If a certain bit is not supported, it will be stripped before
    1.30 + * being set.
    1.31 + *
    1.32 + * @param menu				Menu Handle.
    1.33 + * @param flags				A new bitstring of MENUFLAG bits.
    1.34 + * @noreturn
    1.35 + * @error					Invalid Handle.
    1.36 + */
    1.37 +native SetMenuOptionFlags(Handle:menu, flags);
    1.38 +
    1.39 +/**
    1.40   * Returns whether a vote is in progress on the given menu.
    1.41   *
    1.42   * @param menu				Menu Handle.