| AbilityList.as | |
| Variables | |
| FriendlyName | Code for all the logic in the AbilityList |
| m_Spells | |
| m_NumSpells | |
| m_AbilityHeight | |
| m_AbilityWidth | |
| m_AbilityListOpenDValue | |
| m_PassiveListOpenDValue | |
| s_ResolutionScaleMonitor | |
| Functions | |
| onLoad | |
| onResize | listener for stage resize |
| openAbilityList | Button click handler for opening and closing the AbilityList |
| openPassiveList | |
| SlotAbilityListOpenValueChanged | |
| SlotPassiveListOpenValueChanged | when the passive list is opened or closed, hide and show the Abilities tab |
| SlotReslolutionValueChanged | On changes to the resolution, update this. |
| OnSignalSpellUpdate | |
| PopulateMenu | Populate s the menu |
| CreateScrollbar | method that creates the scrollbar this fires upon changes to the resolution and the screen size |
| OnScrollbarUpdate | when interacting with the scrollbar |
| CreateSingleSpell | Creates a new icon from the spell object by attaching the icon button and then load the correct icon graphics onto it |
| RemoveScrollBar | position |
| CloseMenu | Fires when the abilitymenu is closed |
| SetupDragClip | Creates the icon that will be dragged when equipping an ability |
| OnDragEnd | load the icon on to the newly created icon background |
| onUnload |
function CreateSingleSpell( i: Number, spellObj: com.GameInterface.SpellData ) : MovieClip
Creates a new icon from the spell object by attaching the icon button and then load the correct icon graphics onto it
| i | :Number index in the m_SpellArray where the spellobject is retrieved |
mainClip:MovieClip - the newly created clip
Code for all the logic in the AbilityList
var FriendlyName: String
var m_Spells: Array
var m_NumSpells: Number
var m_AbilityHeight: Number
var m_AbilityWidth: Number
var m_AbilityListOpenDValue: DistributedValue
var m_PassiveListOpenDValue: DistributedValue
var s_ResolutionScaleMonitor: DistributedValue
function onLoad()
listener for stage resize
function onResize( visibleRect: Rectangle )
Button click handler for opening and closing the AbilityList
function openAbilityList() : Void
function openPassiveList( e: Object )
function SlotAbilityListOpenValueChanged( value: DistributedValue )
when the passive list is opened or closed, hide and show the Abilities tab
function SlotPassiveListOpenValueChanged( value: DistributedValue ) : Void
On changes to the resolution, update this.
function SlotReslolutionValueChanged( value: DistributedValue ) : Void
function OnSignalSpellUpdate()
Populate s the menu
function PopulateMenu()
method that creates the scrollbar this fires upon changes to the resolution and the screen size
function CreateScrollbar()
when interacting with the scrollbar
function OnScrollbarUpdate( event: Object )
Creates a new icon from the spell object by attaching the icon button and then load the correct icon graphics onto it
function CreateSingleSpell( i: Number, spellObj: com.GameInterface.SpellData ) : MovieClip
position
function RemoveScrollBar()
Fires when the abilitymenu is closed
function CloseMenu( ) : Void
Creates the icon that will be dragged when equipping an ability
function SetupDragClip( clip: MovieClip ) : MovieClip
load the icon on to the newly created icon background
function OnDragEnd( event: Object )
function onUnload()