Gump Creator

Version 2.02

 

The Property Bars and Option Definitions

Elements Of The Property Bar
Page Selection Box The first combo box in the Property Bar allows you to select a gump page to edit.  When the gump page is selected, the gump components are displayed in the workspace.  If the gump page selected is not page 0 (Background) the background page is also painted as readonly so that you can efficently design your additional pages.
Component Selection Box The second combo box in the Property Bar allows you to select a component to edit.  The first option in the component combo box is always the gump definition (described below).  Each option in the component combo box includes a dexcription of the type of control. For example, (Gump) or (Image).
Property Options Grid The last section of the Property Bar is a property grid that allows you to modify properties of every aspect of the gump that you are designing.  Properties for each type of gump element aare displayed below.

 

Gump Property Options - (Gump)
Name Enter the name of the gump. The default gump name is newgump1, but should be changed to something more meaningful.  This will also be the name of the class of your gump in RunUO.
X Enter the initial starting X location where the gump will be displayed onscreen.
Y Enter the initial starting Y location where the gump will be displayed onscreen.
Closable Specify whether the RunUO gump will be able to be closed by right-clicking on the open gump.
Disposable Specify whether the RunUO gump is disposable.
Dragable Specify whether the RunUO gump can the dragged by the player/
Resizable Specify whether the RunUO gump can be resized.
Namespace Specify the namespace that will be used when creating th RunUO script.  The default namespace if Custom.Gumps, but it can be changed to any namespac you desire ( Server.Gumps for example ).
Class Params You can define any additional parameters used when calling the gump in RunUO.  The gumps are always created with "Mobile owner" as a parameter, but you can use this field to specify additional parameters also. (Advanced designs only)
Includes Click on the Edit Button to specify additional include statements when the RunUO script is created. (Advanced designs only)
Class Variables Click on the Edit Button to specify class variable definitions using private/public statements. (Advanced designs only)
Initialization Click on the Edit Button to specify code that will be added to the beginning of the class code block. (Advanced designs only)
Termination Click on the Edit Button to specify code that will be added to the end of the case code block. (Advanced designs only)

 

Property Options Used By All Gump Components
Name Internal name that is used in the component combo box that identifies the component.  (Not used for script creation)
X Enter the X location when the component will be displayed onscreen relative to the starting X location of the gump itself.  This is just an offset location for design and will not be the actual X location in the RunUO script.  The actual X location of the component will be the gump's X location + the component's X location.
Y Enter the Y location when the component will be displayed onscreen relative to the starting Y location of the gump itself.  This is just an offset location for design and will not be the actual Y location in the RunUO script.  The actual Y location of the component will be the gump's Y location + the component's Y location.
Z Enter the Z plane used to control the order in which component's are drawn onscreen  and added to the RunUO script.  A Z value of 0 is drawn first and a Z value of 100 is drawn last.
Initialization Click on the Edit Button to specify code that will be added between the component's X/Y definition script line and the script line containing the component definition. (Advanced designs only)
Termination Click on the Edit Button to specify code that will be added after the component definition in the script. (Advanced designs only)

 

Image Property Options - (Image)
Gump ID Enter the ID of the Gump Image to display for this image component or click on the ... button to select an image from the image library.
Hue Enter the Hue Number used to color the image or click on the ... button to pick a hue from the Hue Picker window.

 

Tiled Image Property Options - (TiledImage)
Width Enter the width of the tiled image.
Height Enter the height of the tiled image.
Gump ID Enter the ID of the Gump Image to display for this tiled image component or click on the ... button to select an image from the image library.

 

Background Property Options - (Background)
Width Enter the width of the background display.
Height Enter the height of the background display.
Gump ID Enter the ID of the Gump Image used as the upper left image of the background or click on the ... button to select an image from the image library.  Backgrounds are creating using a series of nine images in the image library that are used to create a box.  The Gump ID should be the first image in the series.

 

Alpha Region Property Options - (AlphaRegion)
Width Enter the width of the alpha region.
Height Enter the height of the alpha region.

 

Button Property Options - (Button)
Normal ID Enter the ID of the Gump Image used for the unclicked button or click on the ... button to select an image from the image library.
Pressed ID Enter the ID of the Gump Image used for the clicked button or click on the ... button to select an image from the image library.  If you want to create a button that does not appear to depress, then be sure to use the same Gump ID in both the Normal ID and Pressed ID properties.
Button ID Enter the number used to identify this button in the OnResponse section of the script. (Only valid if the button is defined as a Reply button.)
Button Type Select whether this button is a Reply Button or a Page Button.
Param Enter the page number to jump to if this button is clicked. (Only valid if the button is defined as a Page button.)
Response Code Click on the Edit Button to specify code that will be added to the OnResponse section of the script when this button is clicked. (Only valid if the button is defined as a Reply button.)  (Advanced designs only)

 

Checkbox Property Options - (Check)
Inactive ID Enter the ID of the Gump Image used for the unchecked checkbox or click on the ... button to select an image from the image library.
Active ID Enter the ID of the Gump Image used for the checked checkbox or click on the ... button to select an image from the image library.
Initial State Specify whether the checkbox is initially displayed as checked or unchecked.
Switch ID Enter the number used to identify this checkbox in the OnResponse section of the script.
Response Code Click on the Edit Button to specify code that will be added to the OnResponse section of the script when this checkbox is checked.  (Advanced designs only)

 

Radio Button Property Options - (Radio)
Inactive ID Enter the ID of the Gump Image used for the unselected radio button or click on the ... button to select an image from the image library.
Active ID Enter the ID of the Gump Image used for the selected radio button or click on the ... button to select an image from the image library.
Initial State Specify whether the radio button is initially displayed as selected or unselected.
Switch ID Enter the number used to identify this radio button in the OnResponse section of the script.
Response Code Click on the Edit Button to specify code that will be added to the OnResponse section of the script when this radio button is selected.  (Advanced designs only)

 

HTML Text Property Options - (Html)
Width Enter the width of the HTML Text display.
Height Enter the height of the HTML Text display.
Text Enter the text that will be displayed in the HTML Text component on the RunUO gump.
Background Specify whether a background should be displayed on the RunUO gump.
Scroll Bar Specify whether scroll bars should be displayed on the RunUO gump.
Embed Quotes

Specify whether quotes are embedded in the RunUO script surrounding the Text Property.  If quotes are embedded, then the Text Property is treated as a literal.  If quotes are not embedded, the Text Property is treated as a function within the script.  For example, the following is valid if quotes are not embedded in the script to display the owner's name.    string.Format( "{0}", m_Owner.Name )

 

HTML Localized Property Options - (HtmlLocalized)
Width Enter the width of the HTML Localized display.
Height Enter the height of the HTML Localized display.
Local Number Enter the localized number that will be displayed on the RunUO gump.
Background Specify whether a background should be displayed on the RunUO gump.
Scroll Bar Specify whether scroll bars should be displayed on the RunUO gump.
Hue Specify the hue number used to color the localized text or click on the ... button to display the Hue Picker window.

 

Label Property Options - (Label)
Text Enter the text that will be displayed on the RunUO gump.
Hue Specify the hue number used to color the label text or click on the ... button to display the Hue Picker window.
Embed Quotes

Specify whether quotes are embedded in the RunUO script surrounding the Text Property.  If quotes are embedded, then the Text Property is treated as a literal.  If quotes are not embedded, the Text Property is treated as a function within the script.  For example, the following is valid if quotes are not embedded in the script to display the owner's name.    string.Format( "{0}", m_Owner.Name )

 

Label Property Options - (Label)
Width Enter the width of the Label display.
Height Enter the height of the Label display.
Text Enter the text that will be displayed on the RunUO gump.
Hue Specify the hue number used to color the label text or click on the ... button to display the Hue Picker window.
Embed Quotes

Specify whether quotes are embedded in the RunUO script surrounding the Text Property.  If quotes are embedded, then the Text Property is treated as a literal.  If quotes are not embedded, the Text Property is treated as a function within the script.  For example, the following is valid if quotes are not embedded in the script to display the owner's name.    string.Format( "{0}", m_Owner.Name )

 

Text Entry Options - (TextEntry)
Width Enter the width of the Text Entry display.
Height Enter the height of the Text Entry display.
Text Enter the text that will be displayed on the RunUO gump.
Entry ID Enter the number used to identify this text entry in the OnResponse section of the script.
Text Enter the text that will be displayed on the RunUO gump.
Hue Specify the hue number used to color the text entry text or click on the ... button to display the Hue Picker window.
Response Code Click on the Edit Button to specify code that will be added to the OnResponse section of the script when this text entry field is entered.  (Advanced designs only)
Embed Quotes

Specify whether quotes are embedded in the RunUO script surrounding the Text Property.  If quotes are embedded, then the Text Property is treated as a literal.  If quotes are not embedded, the Text Property is treated as a function within the script.  For example, the following is valid if quotes are not embedded in the script to display the owner's name.    string.Format( "{0}", m_Owner.Name )