| com. | |
| Variables | |
| m_ShortcutList | Associavite array of all the shortcut the player has |
| Functions | |
| RefreshShortcuts | Forces the client to send add or remove signal for each of the slots in the range. |
| MoveShortcut | Try to move a shortcut to a new pos. |
| RemoveFromShortcutBar | Try to remove a shortcut. |
| RemoveAugment | Try to remove an augment SignalShortcutRemoved will be triggered if the remove was legal. |
| UseShortcut | Try to use a shortcut. |
| AddSpell | Add a spell to a slot. |
| AddAugment | Add an augment to a slot. |
| AddItem | Add an item to a slot. |
| GetNumPocketSlots | Gets the number of usable pocket slots |
| GetMaxPocketSlots | Gets the max number of pocket slots |
| IsSpellEquipped | |
| Variables | |
| SignalShortcutAdded | Signal sent when a shortcut has been added. |
| SignalShortcutRemoved | Signal sent when a shortcut has been removed. |
| SignalShortcutMoved | Signal sent when a shortcut has been move to some other spot. |
| SignalHotkeyChanged | Signal sent when a hotkey is changed |
| SignalShortcutStatChanged | Signal sent when a shortcut changed one of it’s stats. |
| SignalShortcutEnabled | Signal sent when a shortcut is enabled/disabled. |
| SignalShortcutRangeEnabled | Signal sent when a shortcut is enabled/disabled via range. |
| SignalShortcutUsed | Signal sent when a shortcut is used |
| SignalShortcutAddedToQueue | Signal sent when a shortcut is added to the queue |
| SignalShortcutRemovedFromQueue | Signal sent when a shortcut is removed from the queue |
| SignalCooldownTime | Signal sent when a shortcut enters cooldown. |
| SignalShortcutsRefresh | Signal sent when the shortcut list has been loaded or when something else has forced it to be refreshed. |
| SignalSwapShortcut | Signal sent when a shortcut enters or exits max momentum (all resources filled up or not). |
| SignalSwapBar | |
| SignalRestoreSwapBar | |
| SignalNumPocketSlotsChanged |
public static function AddItem( shortcutPos: Number, inventoryId: ID32, itemPos: Number ) : Void
Add an item to a slot. SignalShortcutAdded will be called on success.
| shortcutPos | :Number The position on the bar. |
| inventoryId | :Number From which inventory its added. |
| itemPos | :Number The itemposition in the inventory to add. |
public static var SignalShortcutAdded: Signal
Signal sent when a shortcut has been added. This also happens when you teleport to a new pf. Note that you might get an SignalShortcutEnabled right afterward if the shortcut is disabled. And SignalCooldownTime if it’s in cooldown.
| itemPos | :Number The position the item was added to. This is used for refering to this item. |
| name | :String The name of the item in LDB format. |
| icon | :String The icon resource information. |
| itemClass | :Number The type of shortcut. See Enums.StatItemClass |
public static var SignalShortcutStatChanged: Signal
Signal sent when a shortcut changed one of it’s stats. Probably most usefull for stacksize changes.
| itemPos | :Number The position of the item. |
| stat | :Number The stat that changed. See Enums/Stats.as |
| value | :Number The new value for the stat. |
public static var SignalCooldownTime: Signal
Signal sent when a shortcut enters cooldown. Will also be send when you enter a new playfield.
| itemPos | :Number The position of the item. |
| seconds | :Number The cooldown time in seconds left. |
| cooddownType | :Number The cooldown type from Enums.TemplateLock... |
public static var SignalSwapShortcut: Signal
Signal sent when a shortcut enters or exits max momentum (all resources filled up or not). / @param itemPos:Number The position of the item. public static var SignalShortcutMaxMomentumEnabled:Signal; // -> SlotSignalShortcutMaxMomentumEnabled( itemPos:Number, enabled:Boolean )
Associavite array of all the shortcut the player has
public static var m_ShortcutList: Object
Forces the client to send add or remove signal for each of the slots in the range.
public static function RefreshShortcuts( fromPos: Number, count: Number ) : Void
Try to move a shortcut to a new pos.
public static function MoveShortcut( fromPos: Number, toPos: Number ) : Void
Try to remove a shortcut.
public static function RemoveFromShortcutBar( itemPos: Number ) : Boolean
Try to remove an augment SignalShortcutRemoved will be triggered if the remove was legal.
public static function RemoveAugment( itemPos: Number ) : Boolean
Try to use a shortcut.
public static function UseShortcut( itemPos: Number ) : Void
Add a spell to a slot.
public static function AddSpell( itemPos: Number, spellId: Number ) : Void
Add an augment to a slot.
public static function AddAugment( itemPos: Number, spellId: Number ) : Void
Add an item to a slot.
public static function AddItem( shortcutPos: Number, inventoryId: ID32, itemPos: Number ) : Void
Gets the number of usable pocket slots
public static function GetNumPocketSlots( ) : Number
Gets the max number of pocket slots
public static function GetMaxPocketSlots( ) : Number
public static function IsSpellEquipped( spellId: Number ):Boolean
Signal sent when a shortcut has been added.
public static var SignalShortcutAdded: Signal
Signal sent when a shortcut has been removed.
public static var SignalShortcutRemoved: Signal
Signal sent when a shortcut has been move to some other spot.
public static var SignalShortcutMoved: Signal
Signal sent when a hotkey is changed
public static var SignalHotkeyChanged: Signal
Signal sent when a shortcut changed one of it’s stats.
public static var SignalShortcutStatChanged: Signal
Signal sent when a shortcut is enabled/disabled.
public static var SignalShortcutEnabled: Signal
Signal sent when a shortcut is enabled/disabled via range.
public static var SignalShortcutRangeEnabled: Signal
Signal sent when a shortcut is used
public static var SignalShortcutUsed: Signal
Signal sent when a shortcut is added to the queue
public static var SignalShortcutAddedToQueue: Signal
Signal sent when a shortcut is removed from the queue
public static var SignalShortcutRemovedFromQueue: Signal
Signal sent when a shortcut enters cooldown.
public static var SignalCooldownTime: Signal
Signal sent when the shortcut list has been loaded or when something else has forced it to be refreshed.
public static var SignalShortcutsRefresh: Signal
Signal sent when a shortcut enters or exits max momentum (all resources filled up or not).
public static var SignalSwapShortcut: Signal
public static var SignalSwapBar: Signal
public static var SignalRestoreSwapBar: Signal
public static var SignalNumPocketSlotsChanged