- 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"]);
- 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"]));
- if config[pos]["showIcon"] then
- ind.icon:Show();
+ frame.inds = CreateFrame("Frame", nil, frame);
+ frame.inds:SetAllPoints();
+ frame.inds:Hide();
+ for _, pos in pairs(positions) do
+ frame.inds[pos] = frame.inds:CreateTexture(nil, "OVERLAY");
+ frame.inds[pos]:SetPoint(pos, frame.inds, pos);
+ frame.inds[pos]:SetWidth(indSize);
+ frame.inds[pos]:SetHeight(indSize);
+ frame.inds[pos]:SetTexture("Interface\\AddOns\\OmaRF\\images\\rhomb");
+ frame.inds[pos]:SetVertexColor(1, 0, 0);
+ frame.inds[pos]:Hide();
+ frame.inds[pos].text = frame.inds:CreateFontString(nil, "OVERLAY", "GameFontHighlight");
+ frame.inds[pos].text:SetPoint("BOTTOMRIGHT", frame.inds[pos], "BOTTOMRIGHT");
+ frame.inds[pos].text:Hide();
+ end
+ frame.major = CreateFrame("Frame", nil, frame);
+ frame.major:SetPoint("TOPLEFT", frame, "TOPLEFT", 4, -indSize + 4);
+ frame.major:SetPoint("BOTTOMRIGHT", frame, "BOTTOMRIGHT");
+ for i = 1,3 do
+ frame.major[i] = frame.major:CreateTexture(nil, "OVERLAY");
+ if i == 1 then
+ frame.major[i]:SetPoint("TOPLEFT", frame.major, "TOPLEFT");