User Guide
275
The on getPropertyDescriptionList message is sent when any action that causes the
Behavior Inspector to open occurs: either when the user drags a behavior to the Score or the user
double-clicks a behavior in the Behavior Inspector.
The
#default, #format, and #comment settings are mandatory for each parameter. The
following are possible values for these settings:
Example
The following handler defines a behavior’s parameters that appear in the Parameters dialog box.
Each statement that begins with
addProp adds a parameter to the list named description. Each
element added to the list defines a property and the property’s #default, #format, and
#comment values:
on getPropertyDescriptionList
description = [:]
addProp description,#dynamic, [#default:1, #format:#boolean,
#comment:"Dynamic"]
addProp description,#fieldNum, [#default:1, #format:#integer, \
#comment:"Scroll which sprite:"]
addProp description, #extentSprite,[#default:1,#format:#integer, \
#comment: "Extend Sprite:"]
addProp description,#proportional,[#default:1,#format:#boolean, \
#comment: "Proportional:"]
return description
end
See also
addProp, on getBehaviorDescription, on runPropertyDialog
getRendererServices()
Syntax
getRendererServices()
getRendererServices().whichGetRendererServicesProperty
Description
3D command; returns the rendererServices object. This object contains hardware information
and properties that affect all 3D sprites and cast members.
The
rendererServices object has the following properties:
• renderer indicates the software rasterizer used to render all 3D sprites.
• rendererDeviceList returns a list of software rasterizers available on the user’s system.
Possible values include
#openGL, #directX5_2, #directX7_0, and #software. The value of
renderer must be one of these. This property can be tested but not set.
#default The parameter’s initial setting.
#format #integer #float #string #symbol #member #bitmap #filmloop #field #palette
#picture #sound #button #shape #movie #digitalvideo #script #richtext
#ole #transition #xtra #frame #marker #ink #boolean
#comment A descriptive string that appears to the left of the parameter’s editable field in the Parameters
dialog box.
#range A range of possible values that can be assigned to a property. The range is specified as a linear
list with several values or as a minimum and maximum in the form of a property list: [#min:
minValue, #max: maxValue].