View Single Post
06/22/15, 12:21 PM   #3
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
Lua Code:
  1. EVENT_ACTION_LAYER_POPPED (integer eventCode, integer layerIndex, integer activeLayerIndex)
  2. EVENT_ACTION_LAYER_PUSHED (integer eventCode, integer layerIndex, integer activeLayerIndex)

Then there is a lot of API to find out information about it, below is only a few examples (there is more layer API than this), search the wiki API page for "layer" and just go through looking for the API that gives you the info you need.
Lua Code:
  1. GetNumActionLayers()
  2.         Returns: integer actionLayers
  3.  
  4.     GetActionLayerInfo(integer layerIndex)
  5.         Returns: string layerName, integer numLayerCategories
  6.  
  7.     GetActionLayerCategoryInfo(integer layerIndex, integer categoryIndex)
  8.         Returns: string categoryName, integer numActions
  9.  
  10.     GetActionInfo(integer layerIndex, integer categoryIndex, integer actionIndex)
  11.         Returns: string actionName, boolean isRebindable, boolean isHidden
  Reply With Quote