Packagecom.divillysausages.gameobjeditor.component
Classpublic class ColourComponent
InheritanceColourComponent Inheritance GOEComponent Inheritance Object

The component we use when we're looking to select colours (uints)



Public Properties
 PropertyDefined By
 InheritedhasReadAccess : Boolean
[read-only] Does this component edit a variable that has read access?
GOEComponent
 Inheritedheight : Number
[read-only] The height of the component
GOEComponent
 Inheritedtype : String
[read-only] The type of the component.
GOEComponent
  width : Number
[override] [read-only] The width of the component
ColourComponent
Protected Properties
 PropertyDefined By
 Inheritedm_component : Component = null
GOEComponent
 Inheritedm_editVar : EditableVar = null
GOEComponent
 Inheritedm_obj : * = null
GOEComponent
 Inheritedm_spacing : Number = 5.0
GOEComponent
Public Methods
 MethodDefined By
  
ColourComponent(obj:*, variable:EditableVar, parent:DisplayObjectContainer = null, x:Number = 0.0, y:Number = 0.0)
Creates a new ColourComponent
ColourComponent
  
destroy():void
[override] Destroys the ColourComponent and clears it for garbage collection
ColourComponent
  
update():void
[override] Updates the ColourComponent to always match our object's variable
ColourComponent
Property Detail
widthproperty
width:Number  [read-only] [override]

The width of the component


Implementation
    public function get width():Number
Constructor Detail
ColourComponent()Constructor
public function ColourComponent(obj:*, variable:EditableVar, parent:DisplayObjectContainer = null, x:Number = 0.0, y:Number = 0.0)

Creates a new ColourComponent

Parameters
obj:* — The object that we're dealing with
 
variable:EditableVar — The EditableVar object that holds our variable info
 
parent:DisplayObjectContainer (default = null) — The DisplayObjectContainer to add this component to
 
x:Number (default = 0.0) — The component x position
 
y:Number (default = 0.0) — The component y position
Method Detail
destroy()method
override public function destroy():void

Destroys the ColourComponent and clears it for garbage collection

update()method 
override public function update():void

Updates the ColourComponent to always match our object's variable