06208b1 - Add global table entries for debug profilers
[wowui.git] / OmaRF / Events.lua
index 204ac8b..3098918 100644 (file)
@@ -79,10 +79,12 @@ local function updateText(frame, unit)
         frame.text:Hide();
     end
 end
+M.UpdateText = updateText;
 
 local function updateMaxHealth(frame, unit)
     frame.health.max = UnitHealthMax(unit);
 end
+M.UpdateMaxHealth = updateMaxHealth;
 
 local function updateHealth(frame, unit)
     local current, max = UnitHealth(unit), frame.health.max;
@@ -106,6 +108,7 @@ local function updateHealth(frame, unit)
         updateText(frame, unit); -- update revive
     end
 end
+M.UpdateHealth = updateHealth;
 
 -- TODO maybe add a prefix when in vehicle
 local function updateName(frame, unit)
@@ -117,6 +120,7 @@ local function updateName(frame, unit)
     local color = RAID_CLASS_COLORS[class];
     if color then frame.name:SetVertexColor(color.r, color.g, color.b) end
 end
+M.UpdateName = updateName;
 
 local function updateHealPred(frame, unit)
     local incoming = UnitGetIncomingHeals(unit) or 0;
@@ -130,6 +134,7 @@ local function updateHealPred(frame, unit)
         frame.healpred:Hide();
     end
 end
+M.UpdateHealPred = updateHealPred;
 
 local function updateShield(frame, unit)
     local shield = UnitGetTotalAbsorbs(unit) or 0;
@@ -153,6 +158,7 @@ local function updateShield(frame, unit)
         frame.shieldhl:Hide();
     end
 end
+M.UpdateShield = updateShield;
 
 local function updateHealAbsorb(frame, unit)
     local absorb = UnitGetTotalHealAbsorbs(unit) or 0;
@@ -165,6 +171,7 @@ local function updateHealAbsorb(frame, unit)
         frame.healabsorb:Hide();
     end
 end
+M.UpdateHealAbsorb = updateHealAbsorb;
 
 local function updateAuras(frame, unit)
     local alert = checkIndicators(frame, unit);
@@ -195,6 +202,7 @@ local function updateAuras(frame, unit)
         end
     end
 end
+M.UpdateAuras = updateAuras;
 
 local function updateAggro(frame, unit)
     local status = UnitThreatSituation(unit);
@@ -204,6 +212,7 @@ local function updateAggro(frame, unit)
         frame.base:SetVertexColor(unpack(baseColor));
     end
 end
+M.UpdateAggro = updateAggro;
 
 local function updateVehicle(frame)
     local shouldTargetVehicle = UnitHasVehicleUI(frame.unit) and
@@ -220,6 +229,7 @@ local function updateVehicle(frame)
         registerUnitEvents(frame);
     end
 end
+M.UpdateVehicle = updateVehicle;
 
 local function updateRole(frame, unit)
     local role = UnitGroupRolesAssigned(unit);
@@ -233,6 +243,7 @@ local function updateRole(frame, unit)
         frame.role:Hide();
     end
 end
+M.UpdateRole = updateRole;
 
 local function updateReadyCheck(frame, unit)
     local status = GetReadyCheckStatus(unit);
@@ -249,6 +260,7 @@ local function updateReadyCheck(frame, unit)
         frame.ready:Hide()
     end
 end
+M.UpdateReadyCheck = updateReadyCheck;
 
 local function updateRaidMarker(frame, unit)
     local index = GetRaidTargetIndex(unit);
@@ -259,6 +271,7 @@ local function updateRaidMarker(frame, unit)
         frame.targeticon:Hide();
     end
 end
+M.UpdateRaidMarker = updateRaidMarker;
 
 local eventFuncs = {
     ["UNIT_HEALTH"] = function(frame)