git
/
wowui.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f571b92
)
06208b1 - Add global table entries for debug profilers
author
Aleksi Blinnikka <aleksi.blinnikka@gmail.com>
Thu, 15 Mar 2018 09:14:50 +0000
committer
Aleksi Blinnikka <aleksi.blinnikka@gmail.com>
Thu, 15 Mar 2018 09:14:50 +0000
OmaRF/Events.lua
patch
|
blob
|
history
diff --git
a/OmaRF/Events.lua
b/OmaRF/Events.lua
index
204ac8b
..
3098918
100644
(file)
--- a/
OmaRF/Events.lua
+++ b/
OmaRF/Events.lua
@@
-79,10
+79,12
@@
local function updateText(frame, unit)
frame.text:Hide();
end
end
frame.text:Hide();
end
end
+M.UpdateText = updateText;
local function updateMaxHealth(frame, unit)
frame.health.max = UnitHealthMax(unit);
end
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;
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
updateText(frame, unit); -- update revive
end
end
+M.UpdateHealth = updateHealth;
-- TODO maybe add a prefix when in vehicle
local function updateName(frame, unit)
-- 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
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;
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
frame.healpred:Hide();
end
end
+M.UpdateHealPred = updateHealPred;
local function updateShield(frame, unit)
local shield = UnitGetTotalAbsorbs(unit) or 0;
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
frame.shieldhl:Hide();
end
end
+M.UpdateShield = updateShield;
local function updateHealAbsorb(frame, unit)
local absorb = UnitGetTotalHealAbsorbs(unit) or 0;
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
frame.healabsorb:Hide();
end
end
+M.UpdateHealAbsorb = updateHealAbsorb;
local function updateAuras(frame, unit)
local alert = checkIndicators(frame, unit);
local function updateAuras(frame, unit)
local alert = checkIndicators(frame, unit);
@@
-195,6
+202,7
@@
local function updateAuras(frame, unit)
end
end
end
end
end
end
+M.UpdateAuras = updateAuras;
local function updateAggro(frame, unit)
local status = UnitThreatSituation(unit);
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
frame.base:SetVertexColor(unpack(baseColor));
end
end
+M.UpdateAggro = updateAggro;
local function updateVehicle(frame)
local shouldTargetVehicle = UnitHasVehicleUI(frame.unit) and
local function updateVehicle(frame)
local shouldTargetVehicle = UnitHasVehicleUI(frame.unit) and
@@
-220,6
+229,7
@@
local function updateVehicle(frame)
registerUnitEvents(frame);
end
end
registerUnitEvents(frame);
end
end
+M.UpdateVehicle = updateVehicle;
local function updateRole(frame, unit)
local role = UnitGroupRolesAssigned(unit);
local function updateRole(frame, unit)
local role = UnitGroupRolesAssigned(unit);
@@
-233,6
+243,7
@@
local function updateRole(frame, unit)
frame.role:Hide();
end
end
frame.role:Hide();
end
end
+M.UpdateRole = updateRole;
local function updateReadyCheck(frame, unit)
local status = GetReadyCheckStatus(unit);
local function updateReadyCheck(frame, unit)
local status = GetReadyCheckStatus(unit);
@@
-249,6
+260,7
@@
local function updateReadyCheck(frame, unit)
frame.ready:Hide()
end
end
frame.ready:Hide()
end
end
+M.UpdateReadyCheck = updateReadyCheck;
local function updateRaidMarker(frame, unit)
local index = GetRaidTargetIndex(unit);
local function updateRaidMarker(frame, unit)
local index = GetRaidTargetIndex(unit);
@@
-259,6
+271,7
@@
local function updateRaidMarker(frame, unit)
frame.targeticon:Hide();
end
end
frame.targeticon:Hide();
end
end
+M.UpdateRaidMarker = updateRaidMarker;
local eventFuncs = {
["UNIT_HEALTH"] = function(frame)
local eventFuncs = {
["UNIT_HEALTH"] = function(frame)