mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-28 08:54:43 +00:00
Revert "load RaidBuffReminders module (NOT FINISHED)"
This reverts commit 944895cad6.
This commit is contained in:
@@ -371,48 +371,6 @@ function LO:CreateMinimapPanels()
|
||||
RightMiniPanel:Hide()
|
||||
end
|
||||
|
||||
local configtoggle = CreateFrame("Button", "ElvConfigToggle", Minimap.backdrop)
|
||||
if E.db.general.reminder.position == "LEFT" then
|
||||
configtoggle:SetPoint("TOPRIGHT", lminipanel, "TOPLEFT", (E.PixelMode and 1 or -1), 0);
|
||||
configtoggle:SetPoint("BOTTOMRIGHT", lminipanel, "BOTTOMLEFT", (E.PixelMode and 1 or -1), 0);
|
||||
else
|
||||
configtoggle:SetPoint("TOPLEFT", rminipanel, "TOPRIGHT", (E.PixelMode and -1 or 1), 0);
|
||||
configtoggle:SetPoint("BOTTOMLEFT", rminipanel, "BOTTOMRIGHT", (E.PixelMode and -1 or 1), 0);
|
||||
end
|
||||
|
||||
configtoggle:RegisterForClicks("AnyUp")
|
||||
configtoggle:SetWidth(E.RBRWidth)
|
||||
E:SetTemplate(configtoggle, E.db.datatexts.panelTransparency and "Transparent" or "Default", true)
|
||||
|
||||
configtoggle.text = configtoggle:CreateFontString(nil, "OVERLAY")
|
||||
E:FontTemplate(configtoggle.text, E.LSM:Fetch("font", E.db.datatexts.font), E.db.datatexts.fontSize, E.db.datatexts.fontOutline)
|
||||
configtoggle.text:SetText("C")
|
||||
configtoggle.text:SetPoint("CENTER", 0, 0)
|
||||
configtoggle.text:SetJustifyH("CENTER")
|
||||
|
||||
configtoggle:SetScript("OnClick", function(_, btn)
|
||||
if btn == "LeftButton" then
|
||||
E:ToggleConfig()
|
||||
else
|
||||
E:BGStats()
|
||||
end
|
||||
end)
|
||||
|
||||
configtoggle:SetScript("OnEnter", function()
|
||||
GameTooltip:SetOwner(this, "ANCHOR_BOTTOMRIGHT", 0, -4)
|
||||
GameTooltip:ClearLines()
|
||||
GameTooltip:AddDoubleLine(L["Left Click:"], L["Toggle Configuration"], 1, 1, 1)
|
||||
|
||||
if E.db.datatexts.battleground then
|
||||
GameTooltip:AddDoubleLine(L["Right Click:"], L["Show BG Texts"], 1, 1, 1)
|
||||
end
|
||||
GameTooltip:Show()
|
||||
end)
|
||||
|
||||
configtoggle:SetScript("OnLeave", function()
|
||||
GameTooltip:Hide()
|
||||
end)
|
||||
|
||||
local f = CreateFrame("Frame", "BottomMiniPanel", Minimap.backdrop)
|
||||
f:SetPoint("BOTTOM", Minimap, "BOTTOM")
|
||||
f:SetWidth(75)
|
||||
|
||||
Reference in New Issue
Block a user