Commit 495ff96a authored by Merathilis's avatar Merathilis

Grab the position for the Difficulty Indicator from the ElvUI options. Add it to my install.

parent 6f63c69e
......@@ -221,6 +221,8 @@ function MER:SetupLayout()
E.db["general"]["minimap"]["icons"]["ticket"]["xOffset"] = 0
E.db["general"]["minimap"]["icons"]["ticket"]["yOffset"] = 0
E.db["general"]["minimap"]["icons"]["ticket"]["scale"] = 0.75
E.db["general"]["minimap"]["icons"]["difficulty"]["xOffset"] = 5
E.db["general"]["minimap"]["icons"]["difficulty"]["yOffset"] = -5
E.db["general"]["minimap"]["resetZoom"]["enable"] = true
E.db["general"]["minimap"]["resetZoom"]["time"] = 5
E.db["general"]["minimap"]["size"] = 144
......
......@@ -107,7 +107,12 @@ function module:RaidDifficulty()
local RaidDifficulty = CreateFrame('Frame', nil, Minimap)
RaidDifficulty:SetSize(24, 8)
RaidDifficulty:SetPoint('TOPLEFT', Minimap, 'TOPLEFT', 5, -5)
local pos = E.db.general.minimap.icons.difficulty.position or "TOPLEFT"
local x = E.db.general.minimap.icons.difficulty.xOffset or 0
local y = E.db.general.minimap.icons.difficulty.yOffset or 0
RaidDifficulty:SetPoint(pos, Minimap, pos, x, y)
RaidDifficulty:RegisterEvent('PLAYER_ENTERING_WORLD')
RaidDifficulty:RegisterEvent('CHALLENGE_MODE_START')
RaidDifficulty:RegisterEvent('CHALLENGE_MODE_COMPLETED')
......
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