Register to post in forums, or Log in to your existing account
 

 Related 
Contents
See also:
  Editing Menus
Feature Reference
  Aliases
  Macros
  Variables
  Functions
  Classes
  Triggers
  Buttons
  Gauges
  Paths
  Menus
  Events
  Modules
  Windows
  Packages
  Shared Package Library
  Package Editor
  Docked Windows
  Customizeable Toolbars
  Sessions
  Expressions
  Automapper Module
  Database Module
  Syntax Checking
  Tab Completion
  Status items
  Preferences
  Simutronics Support
  Pueblo Emulation
  Keyboard shortcuts
  MXP
  Threads
  ATCP
  Script Debugger
  Timestamps
  Lua Scripting
Related Links:
  #T+
  Create/Modify Settings
  Introduction to Buttons
  Predefined Variables
Menus [[cmud_menus]] 
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.
Viewer Comments [0 - Post your comments]

Jump to:  

© 2009 Zugg Software. Hosted by Wolfpaw.net