mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
28 lines
897 B
Lua
28 lines
897 B
Lua
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
|
local S = E:GetModule("Skins");
|
|
|
|
--Cache global variables
|
|
--Lua functions
|
|
local _G = _G
|
|
|
|
local function LoadSkin()
|
|
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.worldmap ~= true then return end
|
|
|
|
local WorldMapFrame = _G["WorldMapFrame"]
|
|
E:StripTextures(WorldMapFrame)
|
|
E:CreateBackdrop(WorldMapPositioningGuide, "Transparent")
|
|
|
|
S:HandleDropDownBox(WorldMapContinentDropDown, 170)
|
|
S:HandleDropDownBox(WorldMapZoneDropDown, 170)
|
|
|
|
E:Point(WorldMapZoneDropDown, "LEFT", WorldMapContinentDropDown, "RIGHT", -24, 0)
|
|
E:Point(WorldMapZoomOutButton, "LEFT", WorldMapZoneDropDown, "RIGHT", -4, 3)
|
|
|
|
S:HandleButton(WorldMapZoomOutButton)
|
|
|
|
S:HandleCloseButton(WorldMapFrameCloseButton)
|
|
|
|
E:CreateBackdrop(WorldMapDetailFrame, "Default")
|
|
end
|
|
|
|
S:AddCallback("SkinWorldMap", LoadSkin) |