|
|
|
When you right-click the mouse on the MUD output window, a context menu is displayed. Normally this popup menu just allows you to edit the properties of the window. However, you can also add your own items to this context menu using Menu objects.
Menu objects are defined using the #MENU command. For example:
#MENU kill {kill %selword}
will add an item called "kill" to the popup menu. The %selword function returns the current word under the mouse cursor. So, if you right click the mouse on the word "Zugg" and then select the "kill" item from the popup menu, the "kill Zugg" command will be sent to the MUD.
A menu caption of "-" (without the quotes) can be used to create a separator line between other menu items.
You can also define menu items using the Edit Menus screen of the Package Editor.
Using the Package Editor, you can nest menu items to form submenus. You can also place menu items into a Class folder, and then use this class folder as a submenu. |
|