 |
Daje Newbie
Joined: 08 Oct 2007 Posts: 5
|
Posted: Mon Oct 08, 2007 10:17 pm
Buttons, specifically menu buttons |
Ok so I want to make menu buttons but the zMud help file doesn't really state anything specific. So I was wondering what the correct syntax is for making a menu button. When I made one it had the name on the front and I left the command list blank because I don't really know what is should look like, I'm wondering how to get things like various commands in the drop list to show up. For instance, I want to eat something and use a menu to do so. I want to click the menu and see: Eat blah and then on the next line Eat Blah2.
|
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Mon Oct 08, 2007 11:34 pm |
First, create a new class folder. This class will have the Submenu option checked. This tells ZMud to ignore these menu options when compiling the right-click context menu you get when you right-click anywhere on the window textarea. All the menu items you want to associate with your button go into this folder.
Second, create the button. Set all the various properties and options, and in the command area type in the name of the folder containing your menus.
That's it. You'll need to re-edit the button in some situations to make changes appear, but other than that you should be all set. |
|
_________________ EDIT: I didn't like my old signature |
|
|
 |
Vijilante SubAdmin

Joined: 18 Nov 2001 Posts: 5187
|
Posted: Mon Oct 08, 2007 11:36 pm |
You need to make a class with the submenu option set. Then put the #MENU items into it. I believe the name of the class goes into the script section of the button.
|
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
 |
Daje Newbie
Joined: 08 Oct 2007 Posts: 5
|
Posted: Tue Oct 09, 2007 12:23 am |
thanks guys, that helped a bunch
|
|
|
 |
|
|