LibGroupResources (2.0.0)
Change Log:
——————–
v2.0.0
– fixed value changes to 100% not getting sent when the increment is smaller than the configured threshold.
Description:
——————–
LibGroupResources provides a simple API for other addons to access the stamina and magicka values of other group members.
It doesn’t provide an UI by itself, so you’ll have to install another addon like GroupResources which actually visualizes the values.
It depends on LibGroupBroadcast for the actual data transmission.
The lib provides functions to get the last known value, last update time as well as registering and unregistering for changes.
The full list can be found in PublicApi.lua.
A simple example for listening to magicka and stamina updates:
local GroupResources = LibGroupBroadcast:GetHandlerApi(“GroupResources”)
GroupResources:RegisterForStaminaChanges(function(unitTag, unitName, current, maximum, percentage)
end)
GroupResources:RegisterForMagickaChanges(function(unitTag, unitName, current, maximum, percentage)
end)

