Menubar » History » Version 7
Per Amundsen, 08/30/2015 04:55 AM
| 1 | 1 | Per Amundsen | _Added in 1.9.0_ |
|---|---|---|---|
| 2 | |||
| 3 | 6 | Per Amundsen | */menubar [-adisht] [N|on|off|name] [name|text]* |
| 4 | 1 | Per Amundsen | |
| 5 | 4 | Per Amundsen | Enables or disables Menubar. |
| 6 | |||
| 7 | [[$menubar]] can be used to determine it's state. |
||
| 8 | 1 | Per Amundsen | |
| 9 | 5 | Per Amundsen | If no parameter is defined, prints current Menubar visibility status. |
| 10 | |||
| 11 | 3 | Per Amundsen | *Switches* |
| 12 | 1 | Per Amundsen | |
| 13 | 6 | Per Amundsen | (AdiIRC only) |
| 14 | -a - Add a new topmenu. |
||
| 15 | -d - Delete a topmenu. |
||
| 16 | -i - Inserts a topmenu at position [N]. |
||
| 17 | -s - Shows a hidden topmenu. |
||
| 18 | -h - Hides a topmenu. |
||
| 19 | -t - Changes the text of a topmenu. |
||
| 20 | 1 | Per Amundsen | |
| 21 | *Parameters* |
||
| 22 | |||
| 23 | 6 | Per Amundsen | [N] - Position to insert at when using -i. (AdiIRC only) |
| 24 | 1 | Per Amundsen | [on] - Enables Menubar. |
| 25 | [off] - Disables Menubar. |
||
| 26 | 6 | Per Amundsen | [name] - Name of a topmenu item to add/delete/modify. (AdiIRC only) |
| 27 | |||
| 28 | [text] - Text for the new topmenu to add/edit. (AdiIRC only) |
||
| 29 | 3 | Per Amundsen | |
| 30 | *Example* |
||
| 31 | |||
| 32 | <pre> |
||
| 33 | ; Setup a custom menu for the 'mymenu' topbar. |
||
| 34 | menu mymenu { |
||
| 35 | Hello World:echo -ag Hello world |
||
| 36 | } |
||
| 37 | |||
| 38 | ; Adda a new top menu named 'mymenu' with the text 'Top Menu Test'. |
||
| 39 | /menubar -a mymenu Top Menu Test |
||
| 40 | |||
| 41 | 7 | Per Amundsen | ; Changes the text of the topmenu named 'mymenu' to 'Top Menu Test2'. |
| 42 | /menubar -t mymenu Top Menu Test2 |
||
| 43 | |||
| 44 | 3 | Per Amundsen | ; Delete the topmenu named 'mymenu'. |
| 45 | /menubar -d mymenu |
||
| 46 | </pre> |