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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Daje
Newbie


Joined: 08 Oct 2007
Posts: 5

PostPosted: 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.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: 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
Reply with quote
Daje
Newbie


Joined: 08 Oct 2007
Posts: 5

PostPosted: Tue Oct 09, 2007 12:23 am   
 
thanks guys, that helped a bunch
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net