Verified Commit ff0202a2 authored by Merathilis's avatar Merathilis

Let the options for Role Icons work again.

parent eed79f76
local MER, E, L, V, P, G = unpack(select(2, ...))
local UF = E:GetModule('UnitFrames')
local COMP = MER:GetModule("mUICompatibility")
local module = MER:GetModule("muiUnits")
--Cache global variables
--Lua Variables
--WoW API / Variables
-- GLOBALS:
UF.RoleIconTextures = {
TANK = [[Interface\AddOns\ElvUI_MerathilisUI\media\textures\Tank.tga]],
HEALER = [[Interface\AddOns\ElvUI_MerathilisUI\media\textures\Healer.tga]],
DAMAGER = [[Interface\AddOns\ElvUI_MerathilisUI\media\textures\Dps.tga]]
}
function module:Configure_RoleIcons()
if E.db.mui.unitframes.roleIcons ~= true then return end
UF.RoleIconTextures = {
TANK = [[Interface\AddOns\ElvUI_MerathilisUI\media\textures\Tank.tga]],
HEALER = [[Interface\AddOns\ElvUI_MerathilisUI\media\textures\Healer.tga]],
DAMAGER = [[Interface\AddOns\ElvUI_MerathilisUI\media\textures\Dps.tga]]
}
end
......@@ -87,6 +87,9 @@ function module:Initialize()
-- RaidIcons
hooksecurefunc(UF, "Configure_RaidIcon", module.Configure_RaidIcon)
-- RoleIcons
self:Configure_RoleIcons()
-- Health Prediction
self:HealPrediction()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment