indicators = {
['**'] = {
textSize = 10,
- color = {1, 1, 1, 1},
+ textColor = {1, 1, 1, 1},
mine = false,
stack = true,
showText = true,
showIcon = true,
useDefaultIcon = true,
iconSize = 10,
+ iconColor = {1, 1, 1, 1},
},
},
}
function RaidFrameCustomization:OnInitialize()
self.db = LibStub("AceDB-3.0"):New("RaidFrameCustomizationDB", defaults);
- self:SetupOptions();
self.db.RegisterCallback(self, "OnProfileChanged", "RefreshConfig");
self.db.RegisterCallback(self, "OnProfileCopied", "RefreshConfig");
self.db.RegisterCallback(self, "OnProfileReset", "RefreshConfig");
+ self:SetupOptions();
end
function RaidFrameCustomization:OnEnable()
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]["color"]));
+ 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();
else
step = 1,
width = "full",
},
- color = {
+ textColor = {
type = "color",
name = "Text color",
get = function(item)
- return unpack(self.db.profile[pos]["color"]);
+ return unpack(self.db.profile[pos]["textColor"]);
end,
set = function(item, r, g, b, a)
- self.db.profile[pos]["color"] = {r, g, b, a};
+ self.db.profile[pos]["textColor"] = {r, g, b, a};
self:RefreshConfig();
end,
},
step = 1,
width = "full",
},
+ iconColor = {
+ type = "color",
+ name = "Icon tint",
+ get = function(item)
+ return unpack(self.db.profile[pos]["iconColor"]);
+ end,
+ set = function(item, r, g, b, a)
+ self.db.profile[pos]["iconColor"] = {r, g, b, a};
+ self:RefreshConfig();
+ end,
+ },
}
};
end