mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
update Minimap module dropdown
This commit is contained in:
@@ -22,41 +22,24 @@ local GetMinimapZoneText = GetMinimapZoneText
|
|||||||
|
|
||||||
local menuFrame = CreateFrame("Frame", "MinimapRightClickMenu", E.UIParent, "L_UIDropDownMenuTemplate")
|
local menuFrame = CreateFrame("Frame", "MinimapRightClickMenu", E.UIParent, "L_UIDropDownMenuTemplate")
|
||||||
local menuList = {
|
local menuList = {
|
||||||
{text = "CHARACTER_BUTTON",
|
{text = CHARACTER_BUTTON,
|
||||||
func = function() ToggleCharacter("PaperDollFrame") end},
|
func = function() ToggleCharacter("PaperDollFrame") end},
|
||||||
{text = "SPELLBOOK_ABILITIES_BUTTON",
|
{text = SPELLBOOK_ABILITIES_BUTTON,
|
||||||
func = function() ToggleFrame(SpellBookFrame) end},
|
func = function() ToggleFrame(SpellBookFrame) end},
|
||||||
{text = "TALENTS_BUTTON",
|
{text = TALENTS_BUTTON,
|
||||||
func = ToggleTalentFrame},
|
func = ToggleTalentFrame},
|
||||||
{text = "ACHIEVEMENT_BUTTON",
|
{text = QUESTLOG_BUTTON,
|
||||||
func = ToggleAchievementFrame},
|
|
||||||
{text = "QUESTLOG_BUTTON",
|
|
||||||
func = function() ToggleFrame(QuestLogFrame) end},
|
func = function() ToggleFrame(QuestLogFrame) end},
|
||||||
{text = "SOCIAL_BUTTON",
|
{text = SOCIAL_BUTTON,
|
||||||
func = function() ToggleFriendsFrame(1) end},
|
func = function() ToggleFriendsFrame(1) end},
|
||||||
{text = L["Calendar"],
|
|
||||||
func = function() GameTimeFrame:Click() end},
|
|
||||||
{text = L["Farm Mode"],
|
{text = L["Farm Mode"],
|
||||||
func = FarmMode},
|
func = FarmMode},
|
||||||
{text = "BATTLEFIELD_MINIMAP",
|
{text = BATTLEFIELD_MINIMAP,
|
||||||
func = ToggleBattlefieldMinimap},
|
func = ToggleBattlefieldMinimap},
|
||||||
{text = "TIMEMANAGER_TITLE",
|
{text = HELPFRAME_HOME_ISSUE3_HEADER,
|
||||||
func = ToggleTimeManager},
|
func = function() ToggleCharacter("HonorFrame") end},
|
||||||
{text = "PLAYER_V_PLAYER",
|
{text = HELP_BUTTON,
|
||||||
func = function() ToggleFrame(PVPParentFrame) end},
|
func = ToggleHelpFrame}
|
||||||
{text = "LFG_TITLE",
|
|
||||||
func = function() ToggleFrame(LFDParentFrame) end},
|
|
||||||
{text = "L_LFRAID",
|
|
||||||
func = function() ToggleFrame(LFRParentFrame) end},
|
|
||||||
{text = "HELP_BUTTON",
|
|
||||||
func = ToggleHelpFrame},
|
|
||||||
{text = "L_CALENDAR",
|
|
||||||
func = function()
|
|
||||||
if(not CalendarFrame) then
|
|
||||||
LoadAddOn("Blizzard_Calendar")
|
|
||||||
end
|
|
||||||
Calendar_Toggle()
|
|
||||||
end}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function GetMinimapShape()
|
function GetMinimapShape()
|
||||||
@@ -241,15 +224,6 @@ function M:UpdateSettings()
|
|||||||
MiniMapMailFrame:SetScale(scale)
|
MiniMapMailFrame:SetScale(scale)
|
||||||
end
|
end
|
||||||
|
|
||||||
if MiniMapLFGFrame then
|
|
||||||
local pos = E.db.general.minimap.icons.lfgEye.position or "BOTTOMRIGHT"
|
|
||||||
local scale = E.db.general.minimap.icons.lfgEye.scale or 1
|
|
||||||
MiniMapLFGFrame:ClearAllPoints()
|
|
||||||
MiniMapLFGFrame:Point(pos, Minimap, pos, E.db.general.minimap.icons.lfgEye.xOffset or 3, E.db.general.minimap.icons.lfgEye.yOffset or 0)
|
|
||||||
MiniMapLFGFrame:SetScale(scale)
|
|
||||||
LFDSearchStatus:SetScale(scale)
|
|
||||||
end
|
|
||||||
|
|
||||||
if MiniMapBattlefieldFrame then
|
if MiniMapBattlefieldFrame then
|
||||||
local pos = E.db.general.minimap.icons.battlefield.position or "BOTTOMRIGHT"
|
local pos = E.db.general.minimap.icons.battlefield.position or "BOTTOMRIGHT"
|
||||||
local scale = E.db.general.minimap.icons.battlefield.scale or 1
|
local scale = E.db.general.minimap.icons.battlefield.scale or 1
|
||||||
@@ -364,12 +338,12 @@ function M:Initialize()
|
|||||||
FarmModeMap:SetScript("OnShow", function()
|
FarmModeMap:SetScript("OnShow", function()
|
||||||
if(BuffsMover and not E:HasMoverBeenMoved("BuffsMover")) then
|
if(BuffsMover and not E:HasMoverBeenMoved("BuffsMover")) then
|
||||||
BuffsMover:ClearAllPoints()
|
BuffsMover:ClearAllPoints()
|
||||||
BuffsMover:Point("TOPRIGHT", E.UIParent, "TOPRIGHT", -3, -3)
|
BuffsMover:SetPoint("TOPRIGHT", E.UIParent, "TOPRIGHT", -3, -3)
|
||||||
end
|
end
|
||||||
|
|
||||||
if(DebuffsMover and not E:HasMoverBeenMoved("DebuffsMover")) then
|
if(DebuffsMover and not E:HasMoverBeenMoved("DebuffsMover")) then
|
||||||
DebuffsMover:ClearAllPoints()
|
DebuffsMover:ClearAllPoints()
|
||||||
DebuffsMover:Point("TOPRIGHT", ElvUIPlayerBuffs, "BOTTOMRIGHT", 0, -3)
|
DebuffsMover:SetPoint("TOPRIGHT", ElvUIPlayerBuffs, "BOTTOMRIGHT", 0, -3)
|
||||||
end
|
end
|
||||||
|
|
||||||
MinimapCluster:ClearAllPoints()
|
MinimapCluster:ClearAllPoints()
|
||||||
|
|||||||
Reference in New Issue
Block a user