-local function configureIndicators(frame, name)
- local frameName = name or frame:GetName();
- if not f[frameName] then return end
-
- local config = OmaRF.db.profile.indicators;
- for pos, ind in pairs(f[frameName]) do
- ind.text:SetFont(STANDARD_TEXT_FONT, config[pos]["textSize"]);
- ind.text:SetTextColor(unpack(config[pos]["textColor"]));
- ind.icon:SetWidth(config[pos]["iconSize"]);
- ind.icon:SetHeight(config[pos]["iconSize"]);
- ind.icon:SetTexture(DEFAULT_ICON);
- ind.icon:SetVertexColor(unpack(config[pos]["iconColor"]));
+ frame.majorBase = CreateFrame("Frame", nil, frame);
+ frame.majorBase:SetPoint("TOPLEFT", frame, "TOPLEFT", 4, -10);
+ frame.majorBase:SetPoint("BOTTOMRIGHT");
+ frame.majors = {};
+ for i = 1,3 do
+ local tex = frame.majorBase:CreateTexture(nil, "OVERLAY");
+ tex = frame.majorBase:CreateTexture(nil, "OVERLAY");
+ if i == 1 then tex:SetPoint("TOPLEFT", frame.majorBase, "TOPLEFT");
+ else tex:SetPoint("TOPLEFT", frame.majors[i-1], "TOPRIGHT"); end
+ tex:SetWidth(20);
+ tex:SetHeight(20);
+ tex:Hide();
+ tex.text = frame.majorBase:CreateFontString(nil, "OVERLAY", "GameFontHighlight");
+ tex.text:SetPoint("CENTER", tex, "BOTTOMRIGHT", -2, 2);
+ tex.text:Hide();
+ tex.stack = frame.majorBase:CreateFontString(nil, "OVERLAY", "GameFontHighlight");
+ tex.stack:SetPoint("CENTER", tex, "TOPLEFT", 1, 0);
+ tex.stack:Hide();
+ tex.icon = true;
+ frame.majors[i] = tex;