LibActionButton-1.0

  • 3 pages found
NameAuthorLast updated byUpdated on
NameAuthorLast updated byUpdated on
API Nevcairiel Nevcairiel Aug 27, 2012
LibActionButton-1.0 provides a fully functional action button on which you can base complete Action Button addons, or simple helper addons providing extra action buttons. Usage You need a secure header to drive this button. To change the buttons state, execute a childupdate handler on the "state" attribute. Basic sample code: -- Create a Header to drive this CreateFrame("Frame", "LABTestHeader", UIParent, "SecureHandlerStateTemplate") RegisterStateDriver(LABTestHeader, "page", "[mod:alt]2;1")...
Button Configuration Nevcairiel Nevcairiel Aug 27, 2012
Configuration Table Button configuration is done with a basic table that contains the configuration flags. The default values are shown in this table: local DefaultConfig = { outOfRangeColoring = "button", tooltip = "enabled", showGrid = false, colors = { range = { 0.8, 0.1, 0.1 }, mana = { 0.5, 0.5, 1.0 } }, hideElements = { macro = false, hotkey = false, equipped = false, }, keyBoundTarget = false, clickOnDown = false, flyoutDirection = "UP", } If you want to change any of these values,...
Main Nevcairiel Nevcairiel Oct 06, 2010
LibActionButton-1.0 is a library that provides a button template which can work with actions, spells, items, macros, and anything else you could put on a secure button. This library exposes a simple interface to create new buttons, and will shield you from all the restricted environment magic needed to implement a truely generic action button. API
  • 3 pages found