git
/
wowui.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
02682ca
)
05a8f26 - Show original unit name when in vehicle
author
Aleksi Blinnikka <aleksi.blinnikka@gmail.com>
Sat, 10 Mar 2018 07:23:14 +0000
committer
Aleksi Blinnikka <aleksi.blinnikka@gmail.com>
Sat, 10 Mar 2018 07:23:14 +0000
OmaRF/Events.lua
patch
|
blob
|
history
diff --git
a/OmaRF/Events.lua
b/OmaRF/Events.lua
index
2cbcb41
..
af49cd4
100644
(file)
--- a/
OmaRF/Events.lua
+++ b/
OmaRF/Events.lua
@@
-162,6
+162,7
@@
local function updatePowerColor(frame, unit)
frame.mana:SetVertexColor(unpack(powerColors[UnitPowerType(unit)]));
end
frame.mana:SetVertexColor(unpack(powerColors[UnitPowerType(unit)]));
end
+-- TODO maybe add a prefix when in vehicle
local function updateName(frame, unit)
local name = UnitName(unit);
if not name then return end
local function updateName(frame, unit)
local name = UnitName(unit);
if not name then return end
@@
-331,9
+332,10
@@
local eventFuncs = {
updateShield(frame, frame.displayed);
updateHealAbsorb(frame, frame.displayed);
-- no heal prediction update, that doesn't overflow too much
updateShield(frame, frame.displayed);
updateHealAbsorb(frame, frame.displayed);
-- no heal prediction update, that doesn't overflow too much
- -- raid marker update here, because marker is removed when unit dies
+ -- raid marker update here, if needed
+ -- because marker is removed when unit dies
-- without a RAID_TARGET_UPDATE event
-- without a RAID_TARGET_UPDATE event
- updateRaidMarker(frame, frame.unit);
+
--
updateRaidMarker(frame, frame.unit);
end,
["UNIT_POWER"] = function(frame)
updatePower(frame, frame.displayed);
end,
["UNIT_POWER"] = function(frame)
updatePower(frame, frame.displayed);
@@
-370,7
+372,7
@@
local eventFuncs = {
updatePower(frame, frame.displayed);
end,
["UNIT_NAME_UPDATE"] = function(frame)
updatePower(frame, frame.displayed);
end,
["UNIT_NAME_UPDATE"] = function(frame)
- updateName(frame, frame.
displayed
);
+ updateName(frame, frame.
unit
);
end,
["UNIT_CONNECTION"] = function(frame)
updateText(frame, frame.displayed);
end,
["UNIT_CONNECTION"] = function(frame)
updateText(frame, frame.displayed);
@@
-405,7
+407,7
@@
local eventFuncs = {
updateHealPred(frame, frame.displayed);
updateHealAbsorb(frame, frame.displayed);
updateAggro(frame, frame.displayed);
updateHealPred(frame, frame.displayed);
updateHealAbsorb(frame, frame.displayed);
updateAggro(frame, frame.displayed);
- updateName(frame, frame.
displayed
);
+ updateName(frame, frame.
unit
);
updateReadyCheck(frame, frame.unit);
updateRaidMarker(frame, frame.displayed);
end,
updateReadyCheck(frame, frame.unit);
updateRaidMarker(frame, frame.displayed);
end,