local UnitIsConnected = UnitIsConnected;
local UnitIsDeadOrGhost = UnitIsDeadOrGhost;
local CompactRaidFrameContainer_ApplyToFrames = CompactRaidFrameContainer_ApplyToFrames;
+local format = string.format;
+local unpack = unpack;
-- list of important auras TODO try to use spellIDs
local centerAuras = {
local text;
local remaining = expires - current;
if remaining > 60 then
- text = string.format("%dm", ceil(remaining/60));
+ text = format("%dm", ceil(remaining/60));
else
- text = string.format("%d", floor(remaining+0.5));
+ text = format("%d", floor(remaining+0.5));
end
if count > 1 and config.stack then
if text then
local UnitGroupRolesAssigned = UnitGroupRolesAssigned;
local CompactUnitFrame_UpdateHealthColor = CompactUnitFrame_UpdateHealthColor;
local CompactRaidFrameContainer_ApplyToFrames = CompactRaidFrameContainer_ApplyToFrames;
+local unpack = unpack;
-- TODO remove 1px border
hooksecurefunc("CompactRaidFrameContainer_LayoutFrames", function(frame)
UpdateStatusTextHook.lua
UpdateDispellableDebuffsHook.lua
LayoutFramesHook.lua
+PlayerFrameHooks.lua
--- /dev/null
+hooksecurefunc("UnitFramePortrait_Update", function(self)
+ if self.unit == "player" then
+ SetPortraitToTexture(self.portrait, "Interface\\ICONS\\6BF_Blackrock_Nova");
+ end
+end);
local dispelBackColor = OmaRF.dispelBackColor;
local UnitDebuff = UnitDebuff;
local CompactUnitFrame_UpdateHealthColor = CompactUnitFrame_UpdateHealthColor;
+local unpack = unpack;
hooksecurefunc("CompactUnitFrame_UpdateDispellableDebuffs", function(frame)
-- allowClassColorsForNPCs only in regular raid frames,