LibDruidMana-1.0
From WowAce Wiki
| Summary | |
|---|---|
| Lib: DruidMana-1.0 | |
| A library to provide data on mana for druids in bear or cat form. | |
| TOC | 2.4 (20400) |
| Category | Libraries |
| Author | ckknight |
| Details | |
| Version | 1.0 |
| OptionalDeps | LibStub |
| Links | |
| Betas | Ace SVN Zip |
| Changelog | FishEye |
Contents |
[edit]
API Documentation
Note: This documentation is auto-generated. Please note that direct modifications may be overwritten on next autogenerate.
[edit]
:AddListener(tab , "method")
[edit]
Arguments
- tab
- table or function - the object method is harbored in or the function to directly call
- "method"
- string - the method name to be called on table
[edit]
Notes
Add a listener that will be called when mana updates
[edit]
Example
LibStub("LibDruidMana-1.0"):AddListener(function(currMana, maxMana)
-- do something here
end)
LibStub("LibDruidMana-1.0"):AddListener(MyAddon, "MethodName")
[edit]
:GetCurrentMana()
[edit]
Returns
number - the current amount of mana the druid would have in normal form
[edit]
Example
local mana = LibStub("LibDruidMana-1.0"):GetCurrentMana()
[edit]
:GetMaximumMana()
[edit]
Returns
number - the maximum amount of mana the druid would have in normal form
[edit]
Example
local maxmana = LibStub("LibDruidMana-1.0"):GetMaximumMana()

