plugins/include/menus.inc
changeset 1361 591f6d2fd11d
parent 1330 ab94316bb52b
child 1484 8e3b343cbfaa
     1.1 --- a/plugins/include/menus.inc	Sun Aug 19 17:31:26 2007 +0000
     1.2 +++ b/plugins/include/menus.inc	Sun Aug 19 18:34:36 2007 +0000
     1.3 @@ -645,6 +645,20 @@
     1.4  native bool:SendPanelToClient(Handle:panel, client, MenuHandler:handler, time);
     1.5  
     1.6  /**
     1.7 + * @brief Returns the amount of text the menu can still hold.  If this is 
     1.8 + * limit is reached or overflowed, the text is silently truncated.  
     1.9 + *
    1.10 + * Radio menus: Currently 511 characters (512 bytes).
    1.11 + * Valve menus: Currently -1 (no meaning).
    1.12 + *
    1.13 + * @param panel			A MenuPanel Handle.
    1.14 + * @return				Number of characters that the menu can still hold, 
    1.15 + *						or -1 if there is no known limit.
    1.16 + * @error				Invalid Handle.
    1.17 + */
    1.18 +native GetPanelTextRemaining(Handle:panel);
    1.19 +
    1.20 +/**
    1.21   * @brief Returns the current key position.
    1.22   *
    1.23   * @param panel			A MenuPanel Handle.