end
local currentSpec = 0; -- 0 is invalid
-local Indicators = CreateFrame("Frame", "OmaTMW");
+local Indicators = CreateFrame("Frame", "OmaTMW", UIParent);
local function updateAuraFrame(frame)
local unit = frame.unit;
end
end
-local function createTMW(name, config)
- local frame = CreateFrame("Frame", name, UIParent);
- frame:SetPoint("TOPLEFT", UIParent, "BOTTOMLEFT", config.x, config.y+config.height);
- frame:SetPoint("BOTTOMRIGHT", UIParent, "BOTTOMLEFT", config.x+config.width, config.y);
+local function createTMW(name, config, parent)
+ local frame = CreateFrame("Frame", name, parent);
+ frame:SetPoint("TOPLEFT", parent, "BOTTOMLEFT", config.x, config.y+config.height);
+ frame:SetPoint("BOTTOMRIGHT", parent, "BOTTOMLEFT", config.x+config.width, config.y);
frame.unit = config.unit;
frame.spec = config.spec;
frame.auras = config.auras;
local function initialize()
Indicators:SetFrameStrata("LOW");
+ Indicators:SetPoint("BOTTOMLEFT");
+ Indicators:SetWidth(1);
+ Indicators:SetHeight(1);
currentSpec = GetSpecialization();
local name, realm = UnitFullName("player");
if chars[realm] and chars[realm][name] then
table.insert(totems[slot], i);
end
end
- frames[i] = createTMW("OmaTMW"..i, config);
+ frames[i] = createTMW("OmaTMW"..i, config, Indicators);
end
for _, frame in pairs(frames) do