Package | com.divillysausages.gameobjeditor |
Class | public class ObjHighlighter |
Inheritance | ObjHighlighter ![]() |
Property | Defined By | ||
---|---|---|---|
highlight : Boolean
Should we highlight the current object?
| ObjHighlighter | ||
lineAlpha : Number [write-only]
The alpha of the line to draw when we're highlighting the current object
| ObjHighlighter | ||
lineColour : uint [write-only]
The colour of the line to draw when we're highlighting the current object
| ObjHighlighter | ||
lineSize : Number [write-only]
The size of the line to draw when we're highlighting the current object
| ObjHighlighter |
Method | Defined By | ||
---|---|---|---|
ObjHighlighter(s:Stage)
Creates the ObjHighlighter object
| ObjHighlighter | ||
clear():void
Clears the highlight graphics
| ObjHighlighter | ||
update(obj:*):void
Updates the ObjHighlighter. | ObjHighlighter |
highlight | property |
highlight:Boolean
Should we highlight the current object?
The default value is false
.
public function get highlight():Boolean
public function set highlight(value:Boolean):void
lineAlpha | property |
lineAlpha:Number
[write-only] The alpha of the line to draw when we're highlighting the current object
The default value is 0.5
.
public function set lineAlpha(value:Number):void
lineColour | property |
lineColour:uint
[write-only] The colour of the line to draw when we're highlighting the current object
The default value is 0xff0000
.
public function set lineColour(value:uint):void
lineSize | property |
lineSize:Number
[write-only] The size of the line to draw when we're highlighting the current object
The default value is 1.0
.
public function set lineSize(value:Number):void
ObjHighlighter | () | Constructor |
public function ObjHighlighter(s:Stage)
Creates the ObjHighlighter object
Parameterss:Stage — A reference to the Stage so we can add/remove ourselves
|
clear | () | method |
public function clear():void
Clears the highlight graphics
update | () | method |
public function update(obj:*):void
Updates the ObjHighlighter. If we're meant to highlight the current object, then we draw a rectangle around it so we can see where it is
Parameters
obj:* — The object we want to draw around
|