Object that controls an ability,
| GUI. | Object that controls an ability, |
| Variables | |
| SWAP_ANIMATION_DURATION | |
| m_IsActive | |
| m_IconPath | |
| m_HitPos | |
| m_IsBeingDragged | |
| m_ColorLine | |
| m_DisabledColor | |
| m_SlotMC | |
| m_SlotId | |
| m_Icon | |
| m_WasHit | |
| m_IsUnderMouse | |
| m_Tooltip | |
| m_TooltipTimeout | |
| m_UseEffects | |
| m_ResourceGenerator | |
| m_Ability | |
| m_SwappedAbility | |
| m_Reflection | |
| m_Enabled | |
| m_RangedEnabled | |
| m_IsCooldown | |
| m_DragType | |
| m_LinkageId | |
| m_SpellType | |
| m_Id | |
| m_ShowAugments | |
| Functions and Properties | |
| AbilitySlot | |
| OnMouseUp | |
| OnMouseDown | |
| GetTooltipData | |
| GetAugmentData | |
| StartTooltipTimeout | |
| StopTooltipTimeout | |
| CloseTooltip | |
| OpenTooltip | |
| OnMouseOver | |
| OnMouseOut | |
| OnDragOut | |
| OnUnload | |
| OnMouseMove | |
| SlotItemDroppedOnDesktop | |
| SlotDragHandled | |
| CanDragAbility | |
| SetAbilityData | sets up the visuals for the ability |
| SwapAbilityData | |
| Clear | clears the class intance of all variables that needs to be nulled when the class is reset |
| AddEffects | |
| RemoveEffects | |
| UpdateAlpha | |
| RemoveIcon | when an ability is removed from the slot, the ability is cleared from the AbilitySlot |
| SetVisible | |
| GetSlotId | |
| Slot | |
| SwapEffect | |
| SwapBackTimerEffect | |
| Ability | |
| IsActive |
public function SetAbilityData( p_icon: String, p_ColorLine: Number, spellId: Number, spellType: Number, linkageId: String, useEffects: Boolean, resourceGenerator: Number ) : Void
sets up the visuals for the ability
| p_icon | :String - the rdb id of the icon |
| p_ColorLine | :Number - id of the colour, no real value |
| spellType | :Number - the spelltype, used to identify elite abilities |
| linkageId | :String - Linkage name in the library for the ability icon |
| useEffects | :Boolean - wether or not to display effects (reflections...) |
var SWAP_ANIMATION_DURATION: Number
private var m_IsActive: Boolean
private var m_IconPath: String
private var m_HitPos: Point
private var m_IsBeingDragged: Boolean
public var m_ColorLine: Number
public var m_DisabledColor: Number
private var m_SlotMC: MovieClip
private var m_SlotId: Number
private var m_Icon: MovieClip
private var m_WasHit: Boolean
private var m_IsUnderMouse: Boolean
private var m_Tooltip: TooltipInterface
private var m_TooltipTimeout: Number
private var m_UseEffects: Boolean
private var m_ResourceGenerator: Number
public var m_Ability: AbilityBase
public var m_SwappedAbility: AbilityBase
public var m_Reflection: AbilityBase
public var m_Enabled: Boolean
public var m_RangedEnabled: Boolean
private var m_IsCooldown: Boolean
public var m_DragType: String
private var m_LinkageId: String
private var m_SpellType: Number
private var m_Id: Number
public var m_ShowAugments: Boolean
public function AbilitySlot( p_mc: MovieClip, p_id: Number )
private function OnMouseUp() :Void
private function OnMouseDown() : Void
function GetTooltipData()
function GetAugmentData()
private function StartTooltipTimeout()
private function StopTooltipTimeout()
public function CloseTooltip() : Void
public function OpenTooltip() : Void
private function OnMouseOver() : Void
private function OnMouseOut() : Void
private function OnDragOut() : Void
private function OnUnload() : Void
private function OnMouseMove() : Void
public function SlotItemDroppedOnDesktop()
public function SlotDragHandled()
private function CanDragAbility():Boolean
sets up the visuals for the ability
public function SetAbilityData( p_icon: String, p_ColorLine: Number, spellId: Number, spellType: Number, linkageId: String, useEffects: Boolean, resourceGenerator: Number ) : Void
public function SwapAbilityData( p_icon: String, p_ColorLine: Number, spellId: Number, spellType: Number, linkageId: String, useEffects: Boolean, swapBackTime: Number, resourceGenerator ) : Void
clears the class intance of all variables that needs to be nulled when the class is reset
public function Clear() : Void
private function AddEffects( iconPath: String )
private function RemoveEffects():Void
private function UpdateAlpha() : Void
when an ability is removed from the slot, the ability is cleared from the AbilitySlot
private function RemoveIcon() : Void
public function SetVisible( val: Boolean ):Void
public function GetSlotId() : Number
public function get Slot() : MovieClip
public function SwapEffect( duration: Number ):Void
public function SwapBackTimerEffect( swapBackTime: Number ):Void
public function get Ability() : MovieClip
public function get IsActive() :Boolean