ADDON_LOADED was not actually late enough to have UnitFullName
available, it just fired multiple times so some later addon loading had
it already.
secure:SetAttribute("_onstate-vehicleui", vehicletoggle);
end
secure:SetAttribute("_onstate-vehicleui", vehicletoggle);
end
+local function loadCharSettings()
+ width, height = Settings.Character.Width, Settings.Character.Height;
+ anchorX, anchorY = Settings.Character.AnchorX, Settings.Character.AnchorY;
+ attributes = Settings.Character.Clickheal;
+ positions = Settings.Character.Positions;
+end
+
local function initialize()
local function initialize()
CFrame:SetPoint("CENTER", nil, "CENTER", anchorX, anchorY);
CFrame:SetHeight((height+2)*8);
CFrame:SetWidth((width+2)*5+1);
CFrame:SetPoint("CENTER", nil, "CENTER", anchorX, anchorY);
CFrame:SetHeight((height+2)*8);
CFrame:SetWidth((width+2)*5+1);
initializeFocus(CFrame);
end
initializeFocus(CFrame);
end
-local function loadCharSettings()
- width, height = Settings.Character.Width, Settings.Character.Height;
- anchorX, anchorY = Settings.Character.AnchorX, Settings.Character.AnchorY;
- attributes = Settings.Character.Clickheal;
- positions = Settings.Character.Positions;
-end
-
-- hiding Blizzard frames somewhat based on ShadowedUF
local function hideBlizzardRaidButton()
if InCombatLockdown() then return end
-- hiding Blizzard frames somewhat based on ShadowedUF
local function hideBlizzardRaidButton()
if InCombatLockdown() then return end
-CFrame:RegisterEvent("ADDON_LOADED");
CFrame:RegisterEvent("PLAYER_LOGIN");
CFrame:RegisterEvent("PLAYER_REGEN_ENABLED");
CFrame:SetScript("OnEvent", function(self, event, addon)
if event == "PLAYER_LOGIN" then
CFrame:RegisterEvent("PLAYER_LOGIN");
CFrame:RegisterEvent("PLAYER_REGEN_ENABLED");
CFrame:SetScript("OnEvent", function(self, event, addon)
if event == "PLAYER_LOGIN" then
+ OmaRFLoadChar();
+ OmaRFEvents.LoadChar();
+ OmaRFIndicators.LoadChar();
hideBlizzardRaid();
initialize();
hideBlizzardRaid();
initialize();
- elseif event == "ADDON_LOADED" and addon == "Blizzard_CompactRaidFrames" then
- -- never really happening unless load order changes
- hideBlizzardRaid();
elseif event == "PLAYER_REGEN_ENABLED" then
-- if CompactRaidFrameManager_UpdateOptionsFlowContainer was called in combat
-- couldn't hide the button
hideBlizzardRaidButton();
elseif event == "PLAYER_REGEN_ENABLED" then
-- if CompactRaidFrameManager_UpdateOptionsFlowContainer was called in combat
-- couldn't hide the button
hideBlizzardRaidButton();
- elseif event == "ADDON_LOADED" and addon == "OmaRF" then
- OmaRFLoadChar();
- loadCharSettings();
- OmaRFEvents.LoadChar();
- OmaRFIndicators.LoadChar();
while true do
_, _, icon, count, _, duration, expires, caster, _, _, id = UnitAura(unit, i, filter);
if not id or not auras[pos] then break end
while true do
_, _, icon, count, _, duration, expires, caster, _, _, id = UnitAura(unit, i, filter);
if not id or not auras[pos] then break end
+ -- aura filter self-applied, player-applied, list of important auras TODO
local aura = auras[pos];
aura.icon:SetTexture(icon);
aura.index = i;
local aura = auras[pos];
aura.icon:SetTexture(icon);
aura.index = i;
frame.overlay.color = overlayColorDispel;
end
-- don't overlay charmed when in vehicle
frame.overlay.color = overlayColorDispel;
end
-- don't overlay charmed when in vehicle
- elseif UnitIsCharmed(unit) and unit == frame.unit then
+ elseif UnitIsCharmed(unit) and not frame.inVehicle then
if frame.overlay.color ~= overlayColorCharm then
frame.overlay:SetVertexColor(unpack(overlayColorCharm));
frame.overlay:Show();
if frame.overlay.color ~= overlayColorCharm then
frame.overlay:SetVertexColor(unpack(overlayColorCharm));
frame.overlay:Show();
secure:SetAttribute("_onstate-vehicleui", vehicletoggle);
end
secure:SetAttribute("_onstate-vehicleui", vehicletoggle);
end
-local function initialize()
- initializePlayer(UIParent);
- initializeTarget(UIParent);
- -- TODO boss frames, pet frame, (arena frames)
-end
-
local function loadCharSettings()
width, height = Settings.Character.Width, Settings.Character.Height;
anchorX, anchorY = Settings.Character.AnchorX, Settings.Character.AnchorY;
attributes = Settings.Character.Clickheal;
end
local function loadCharSettings()
width, height = Settings.Character.Width, Settings.Character.Height;
anchorX, anchorY = Settings.Character.AnchorX, Settings.Character.AnchorY;
attributes = Settings.Character.Clickheal;
end
+local function initialize()
+ loadCharSettings();
+ initializePlayer(UIParent);
+ initializeTarget(UIParent);
+ -- TODO boss frames, pet frame, (arena frames)
+end
+
local hidden = false;
local function hideBlizzardFrames()
if hidden then return end
local hidden = false;
local function hideBlizzardFrames()
if hidden then return end
PlayerFrame:SetDontSavePosition(true);
end
PlayerFrame:SetDontSavePosition(true);
end
-UnitFrames:RegisterEvent("ADDON_LOADED");
UnitFrames:RegisterEvent("PLAYER_LOGIN");
UnitFrames:SetScript("OnEvent", function(self, event)
if event == "PLAYER_LOGIN" then
UnitFrames:RegisterEvent("PLAYER_LOGIN");
UnitFrames:SetScript("OnEvent", function(self, event)
if event == "PLAYER_LOGIN" then
- hideBlizzardFrames();
- initialize();
- elseif event == "ADDON_LOADED" then
+ hideBlizzardFrames();
+ initialize();