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
PHLN
Adept


Joined: 30 Dec 2001
Posts: 220
Location: Canada

PostPosted: Sun Oct 13, 2002 2:47 pm   

Mapper - Script --> Button,
 
Could someone help me figure out how to set up the width of the button in the room script? I got the button to appear and working, but I don't like how small the size of it
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Oct 14, 2002 1:16 am   
 
quote:

Could someone help me figure out how to set up the width of the button in the room script? I got the button to appear and working, but I don't like how small the size of it



On the menu bar for the main window (the one that shows when you're busy playing on the MUD), click on the Help menu. Somewhere near the middle of the popup should be something called Command Wizard; click on that and scroll down the list until you can see the word Button. Click on that to highlight it and then click on the More Help/More Info button. A help file with the #BUTTON syntax at the top will appear for easy viewing.

li'l shmoe of Dragon's Gate MUD
Reply with quote
PHLN
Adept


Joined: 30 Dec 2001
Posts: 220
Location: Canada

PostPosted: Mon Oct 14, 2002 3:46 am   
 
Oh neat, never seen that before. But then how do I incorporate it into my script? It doesn't give an example on how to set a button width...
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Oct 14, 2002 5:05 am   
 
quote:

Oh neat, never seen that before. But then how do I incorporate it into my script? It doesn't give an example on how to set a button width...



Hmm, forgot that the #BUTTON helpfile didn't have the full syntax and only explained them in the body of the text (most of the other entries at least have the entire syntax listed up at the top).

Anywho, to give you an idea of what to look for, the following button has a width of 59 and a height of 25:

#BUTTON 1 {} {} {_1} {} {} {} {} {Size} {59} {25} {} {} {} {} {} {} {} "" {} {} {}

That is what you want to change in your room script. Until you get a handle on #BUTTON syntax, you might want to create your buttons through the Settings Editor:

1)open settings editor
2)create new class (preference only, designed to make code-reading manageable)
3)create new button in class created in #2
4)position and set other features as desired
5)click on class created in #2
6)click on Script tab
7)highlight #BUTTON code, copy to clipboard
8)delete class
9)open up room script and paste #BUTTON code into it

li'l shmoe of Dragon's Gate MUD
Reply with quote
PHLN
Adept


Joined: 30 Dec 2001
Posts: 220
Location: Canada

PostPosted: Mon Oct 14, 2002 5:24 am   
 
thanks
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