Quantcast WoWInterface - View Single Post - Assorted 5.4.0 API changes
View Single Post
09-14-13, 01:07 PM   #25
dandraffbal
A Defias Bandit
Join Date: Dec 2010
Posts: 3
xCT+ author here. There are some floating combat text features that were not documented:

New CVars
Code:
CombatHealingAbsorbTarget
CombatHealingAbsorbSelf
which in turn, updates these globals when changed:
Code:
SHOW_COMBAT_HEALING_ABSORB_SELF == 1 or 0 
SHOW_COMBAT_HEALING_ABSORB_TARGET == 1 or 0
New Interface Controls
Code:
InterfaceOptionsCombatTextPanelHealingAbsorbTarget
InterfaceOptionsCombatTextPanelHealingAbsorbSelf
New Sub-Event for COMBAT_TEXT_UPDATE
Code:
ABSORB_ADDED
This can be implement exactly like the sub-event "HEAL."
Code:
function CombatTextUpdated_Handle(event, ...)
	local subEvent = ...
	
	if subEvent == "ABSORB_ADDED" then
		local healerName, amount = ...
		
		print(("%s placed a %s shield on you."):format(healerName, amount))
	end
end

Take care!

Last edited by dandraffbal : 09-14-13 at 01:15 PM.
  Reply With Quote