Class: RectangleEditor

Components.RectangleEditor

the rectangle editor component.

new Components.RectangleEditor (owner, color)

Name Type Description
owner Core.Entity the entity the component's being applied to.
color String of the editor

Members

Components.RectangleEditor.component_name String static

the component name

Components.RectangleEditor.currently_selected Core.Entity static

the currently selected object

Methods

deselectOwner ()

deselects the owner

isSelected ()Boolean

gets whether or not the owner is selected
Returns:
Type Description
Boolean True if selected; false otherwise

render ()

renders the rectangle editor

selectOwner ()

selects the owner

setDimentions (width, height)

set dimentions of rectangle editor
Name Type Description
width Number desired width
height Number desire height

update ()

updates rect editor component