local media = LibStub:GetLibrary("LibSharedMedia-3.0");
-local f = RaidFrameCustomization.frames;
-local positions = RaidFrameCustomization.positions;
+local f = OmaRF.frames;
+local positions = OmaRF.positions;
local pad = 2;
local paddings = {
TOPLEFT = {pad, -pad},
};
local watchedAuras; -- all watched auras
local auraFilters = {"HELPFUL", "HARMFUL"};
-local DEFAULT_ICON = "Interface\\AddOns\\RaidFrameCustomization\\images\\rhomb";
+local DEFAULT_ICON = "Interface\\AddOns\\OmaRF\\images\\rhomb";
local _;
-- global functions used every update
local frameName = name or frame:GetName();
if not f[frameName] then return end
- local config = RaidFrameCustomization.db.profile;
+ local config = OmaRF.db.profile;
local font = media and media:Fetch('font', config.indicatorFont) or STANDARD_TEXT_FONT;
for pos, ind in pairs(f[frameName]) do
ind.text:SetFont(font, config[pos]["textSize"]);
if not id then break end
local pos = watchedAuras[name] or watchedAuras[id] or watchedAuras[debuff];
if pos then
- local config = RaidFrameCustomization.db.profile[pos];
+ local config = OmaRF.db.profile[pos];
if not config.mine or UnitIsPlayer(caster) then
if config.showIcon and not config.useDefaultIcon then
-- show icon
end
-- Update all indicators
-function RaidFrameCustomization:UpdateAllIndicators()
+function OmaRF:UpdateAllIndicators()
CompactRaidFrameContainer_ApplyToFrames(CompactRaidFrameContainer, "normal", updateIndicators);
if self.running then
C_TimerAfter(0.15, self:UpdateAllIndicators);
end
-- Used to update everything that is affected by the configuration
-function RaidFrameCustomization:RefreshConfig()
+function OmaRF:RefreshConfig()
self:OnDisable(); -- clear everything
if self.db.profile.enabled then
CompactRaidFrameContainer_ApplyToFrames(CompactRaidFrameContainer, "normal", configureIndicators);