ControlIcon (of IconItem
)¶
-
class
ControlIcon
¶ Defined in GameControls.sc.
Extends
IconItem
by having a object and selector.When clicked (selected), the selector property will be invoked on theObj.
Example:
(instance iconRestart of ControlIcon (properties view 995 loop 4 cel 0 nsLeft 80 nsTop 82 message 8 signal $01c3 noun N_RESTART helpVerb V_HELP ) ) ; then later... (iconRestart theObj: gGame selector: #restart )
Properties¶
Inherited from IconItem
:
Property | Description |
---|---|
view | |
loop | |
cel | |
nsLeft | |
nsTop | |
nsRight | |
nsBottom | |
state | |
cursor | |
type | |
message | |
modifiers | |
signal | |
maskView | |
maskLoop | |
maskCel | |
highlightColor | |
lowlightColor | |
noun | |
modNum | |
helpVerb | |
name |
Defined in ControlIcon:
Property | Description |
---|---|
theObj | An object that gets notified when this icon is pressed. |
selector | A method selector (e.g. #doit) on theObj. |