![](templates/Classic/images/spacer.gif) |
PHLN Adept
Joined: 30 Dec 2001 Posts: 220 Location: Canada
|
Posted: 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
|
|
|
![](templates/Classic/images/spacer.gif) |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
![](templates/Classic/images/spacer.gif) |
PHLN Adept
Joined: 30 Dec 2001 Posts: 220 Location: Canada
|
Posted: 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...
|
|
|
![](templates/Classic/images/spacer.gif) |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
![](templates/Classic/images/spacer.gif) |
PHLN Adept
Joined: 30 Dec 2001 Posts: 220 Location: Canada
|
Posted: Mon Oct 14, 2002 5:24 am |
thanks
|
|
|
![](templates/Classic/images/spacer.gif) |
|
|