diff --git a/ElvUI_SLE/modules/autorelease.lua b/ElvUI_SLE/modules/autorelease.lua index 0c045ce..f1c8909 100644 --- a/ElvUI_SLE/modules/autorelease.lua +++ b/ElvUI_SLE/modules/autorelease.lua @@ -1,5 +1,4 @@ -local E, L, V, P, G, _ = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB, Localize Underscore --- local AR = E:NewModule('SLE_AutoRelease', 'AceHook-3.0', 'AceEvent-3.0'); +local E, L, V, P, G, _ = unpack(ElvUI); local AR = E:GetModule('SLE_AutoRelease') local myclass = E.myclass local IsInInstance = IsInInstance @@ -45,6 +44,4 @@ function AR:Initialize() E:CreateMover(GhostFrame, "GhostFrameMover", L["Ghost Frame"], nil, nil, nil, "ALL,S&L,S&L MISC") HideUIPanel(GhostFrame) self:RegisterEvent("PLAYER_DEAD", "Releasing"); -end - --- E:RegisterModule(AR:GetName()) \ No newline at end of file +end \ No newline at end of file diff --git a/ElvUI_SLE/modules/backgrounds.lua b/ElvUI_SLE/modules/backgrounds.lua index 6c1036d..7e069d5 100644 --- a/ElvUI_SLE/modules/backgrounds.lua +++ b/ElvUI_SLE/modules/backgrounds.lua @@ -1,5 +1,4 @@ -local E, L, V, P, G, _ = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB, Localize Underscore --- local BG = E:NewModule('SLE_BackGrounds', 'AceHook-3.0', 'AceEvent-3.0'); +local E, L, V, P, G, _ = unpack(ElvUI); local BG = E:GetModule('SLE_BackGrounds'); local BGb, BGl, BGr, BGa, Fr @@ -113,6 +112,4 @@ function BG:Initialize() E:CreateMover(LeftBG, "LeftBG_Mover", L["Left BG"], nil, nil, nil, "S&L,S&L BG") E:CreateMover(RightBG, "RightBG_Mover", L["Right BG"], nil, nil, nil, "S&L,S&L BG") E:CreateMover(ActionBG, "ActionBG_Mover", L["Actionbar BG"], nil, nil, nil, "S&L,S&L BG") -end - --- E:RegisterModule(BG:GetName()) \ No newline at end of file +end \ No newline at end of file diff --git a/ElvUI_SLE/modules/baginfo.lua b/ElvUI_SLE/modules/baginfo.lua index 75c4be7..0ae6589 100644 --- a/ElvUI_SLE/modules/baginfo.lua +++ b/ElvUI_SLE/modules/baginfo.lua @@ -1,5 +1,4 @@ -local E, L, V, P, G = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB, Localize Underscore --- local BI = E:NewModule('SLE_BagInfo', 'AceHook-3.0', 'AceEvent-3.0', 'AceTimer-3.0') +local E, L, V, P, G = unpack(ElvUI); local BI = E:GetModule('SLE_BagInfo') local B = E:GetModule('Bags') @@ -132,6 +131,4 @@ function BI:Initialize() end) BI:ToggleSettings() -end - --- E:RegisterModule(BI:GetName()) \ No newline at end of file +end \ No newline at end of file diff --git a/ElvUI_SLE/modules/chat.lua b/ElvUI_SLE/modules/chat.lua index 8b35a1f..511656e 100644 --- a/ElvUI_SLE/modules/chat.lua +++ b/ElvUI_SLE/modules/chat.lua @@ -1,4 +1,4 @@ -local E, L, V, P, G, _ = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB, Localize Underscore +local E, L, V, P, G, _ = unpack(ElvUI); local CH = E:GetModule('Chat') local SLE = E:GetModule('SLE'); local LSM = LibStub("LibSharedMedia-3.0") @@ -133,7 +133,7 @@ local specialChatIcons = { ["Ревущийфьорд"] = { ["Рыжая"] = friend, ["Рыжа"] = friend, - --Some people + --Some people ["Брэгар"] = test }, ["Азурегос"] = { diff --git a/ElvUI_SLE/modules/datatexts.lua b/ElvUI_SLE/modules/datatexts.lua index a3f2c16..863f010 100644 --- a/ElvUI_SLE/modules/datatexts.lua +++ b/ElvUI_SLE/modules/datatexts.lua @@ -1,5 +1,4 @@ -local E, L, V, P, G, _ = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB, Localize Underscore --- local DTP = E:NewModule('SLE_DTPanels', 'AceHook-3.0', 'AceEvent-3.0'); +local E, L, V, P, G, _ = unpack(ElvUI); local DTP = E:GetModule('SLE_DTPanels'); local DT = E:GetModule('DataTexts'); local LO = E:GetModule('Layout'); @@ -105,6 +104,4 @@ end function DTP:Initialize() DTP:RegisterEvent('PLAYER_ENTERING_WORLD') -end - --- E:RegisterModule(DTP:GetName()) \ No newline at end of file +end \ No newline at end of file diff --git a/ElvUI_SLE/modules/equipmanager.lua b/ElvUI_SLE/modules/equipmanager.lua index c5419c8..e93af17 100644 --- a/ElvUI_SLE/modules/equipmanager.lua +++ b/ElvUI_SLE/modules/equipmanager.lua @@ -1,6 +1,4 @@ ---Raid mark bar. Similar to quickmark which just semms to be impossible to skin -local E, L, V, P, G, _ = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB, Localize Underscore --- local EM = E:NewModule('SLE_EquipManager', 'AceHook-3.0', 'AceEvent-3.0'); +local E, L, V, P, G, _ = unpack(ElvUI); local EM = E:GetModule('SLE_EquipManager') local GetEquipmentSetInfo = GetEquipmentSetInfo @@ -78,6 +76,4 @@ function EM:Initialize() self:RegisterEvent("ACTIVE_TALENT_GROUP_CHANGED", "Equip") self:RegisterEvent("PLAYER_TALENT_UPDATE", "Equip") self:RegisterEvent("ZONE_CHANGED", "Equip") -end - --- E:RegisterModule(EM:GetName()) \ No newline at end of file +end \ No newline at end of file diff --git a/ElvUI_SLE/modules/exprepbar.lua b/ElvUI_SLE/modules/exprepbar.lua index 58c2d5e..bd09887 100644 --- a/ElvUI_SLE/modules/exprepbar.lua +++ b/ElvUI_SLE/modules/exprepbar.lua @@ -1,4 +1,4 @@ -local E, L, V, P, G, _ = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB, Localize Underscore +local E, L, V, P, G, _ = unpack(ElvUI); local M = E:GetModule('Misc'); local strMatchCombat = {} diff --git a/ElvUI_SLE/modules/farm.lua b/ElvUI_SLE/modules/farm.lua index f69b379..f7a2ec9 100644 --- a/ElvUI_SLE/modules/farm.lua +++ b/ElvUI_SLE/modules/farm.lua @@ -1,7 +1,6 @@ -local E, L, V, P, G, _ = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB +local E, L, V, P, G, _ = unpack(ElvUI); local B = LibStub("LibBabble-SubZone-3.0") local BL = B:GetLookupTable() --- local F = E:NewModule('SLE_Farm', 'AceHook-3.0', 'AceEvent-3.0'); local F = E:GetModule('SLE_Farm') local SLE = E:GetModule('SLE'); @@ -602,6 +601,4 @@ function F:Initialize() if not E.private.sle.farm.enable then return end self:RegisterEvent("PLAYER_ENTERING_WORLD", "StartFarmBarLoader") -end - --- E:RegisterModule(F:GetName()) \ No newline at end of file +end \ No newline at end of file diff --git a/ElvUI_SLE/modules/loot.lua b/ElvUI_SLE/modules/loot.lua index a22c4b5..ee0ef62 100644 --- a/ElvUI_SLE/modules/loot.lua +++ b/ElvUI_SLE/modules/loot.lua @@ -1,5 +1,4 @@ -local E, L, V, P, G, _ = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB, Localize Underscore --- local LT = E:NewModule('SLE_Loot', 'AceHook-3.0', 'AceEvent-3.0') +local E, L, V, P, G, _ = unpack(ElvUI); local LT = E:GetModule('SLE_Loot') local check = false local t = 0 @@ -136,6 +135,4 @@ function LT:Initialize() self:RegisterEvent('PLAYER_ENTERING_WORLD', 'LootShow'); if not E.private.sle.loot.enable then return end self:RegisterEvent("LOOT_OPENED", "Announce") -end - --- E:RegisterModule(LT:GetName()) \ No newline at end of file +end \ No newline at end of file diff --git a/ElvUI_SLE/modules/pvpmover.lua b/ElvUI_SLE/modules/pvpmover.lua index fa680a1..730e8b6 100644 --- a/ElvUI_SLE/modules/pvpmover.lua +++ b/ElvUI_SLE/modules/pvpmover.lua @@ -1,5 +1,4 @@ -local E, L, V, P, G, _ = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB --- local P = E:NewModule('SLE_PvPMover', 'AceHook-3.0', 'AceEvent-3.0'); +local E, L, V, P, G, _ = unpack(ElvUI); local P = E:GetModule('SLE_PvPMover'); local holder = CreateFrame("Frame", "SLE_PvP", E.UIParent) @@ -21,6 +20,4 @@ function P:Initialize() WorldStateAlwaysUpFrame:SetPoint("CENTER", holder) self:RegisterEvent("UPDATE_WORLD_STATES", update) E:CreateMover(holder, "PvPMover", "PvP", nil, nil, nil, "ALL,S&L,S&L MISC") -end - --- E:RegisterModule(P:GetName()) \ No newline at end of file +end \ No newline at end of file diff --git a/ElvUI_SLE/modules/raidutility.lua b/ElvUI_SLE/modules/raidutility.lua index 60cd544..8546a1a 100644 --- a/ElvUI_SLE/modules/raidutility.lua +++ b/ElvUI_SLE/modules/raidutility.lua @@ -1,9 +1,6 @@ -local E, L, V, P, G, _ = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB, Localize Underscore ---local RU = E:GetModule('RaidUtility'); +local E, L, V, P, G, _ = unpack(ElvUI); local M = E:GetModule('Misc'); ---E.RaidUtility = RU - --For moving raid utility button M.InitializeSLE = M.Initialize function M:Initialize() diff --git a/ElvUI_SLE/modules/tooltip.lua b/ElvUI_SLE/modules/tooltip.lua index 81a0edf..04908eb 100644 --- a/ElvUI_SLE/modules/tooltip.lua +++ b/ElvUI_SLE/modules/tooltip.lua @@ -1,4 +1,4 @@ -local E, L, V, P, G, _ = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB +local E, L, V, P, G, _ = unpack(ElvUI); local TT = E:GetModule('Tooltip'); --Defaults (Need to be moved.) @@ -27,7 +27,6 @@ end function TT:AnchorFrameToMouse(frame) if frame:GetAnchorType() ~= "ANCHOR_CURSOR" then return end - --if (E.db.tooltip.onlyMod and not (IsShiftKeyDown() or IsControlKeyDown() or IsAltKeyDown())) then return end local x, y = GetCursorPosition(); local scale = frame:GetEffectiveScale(); local tipWidth = frame:GetWidth(); @@ -54,12 +53,6 @@ function TT:AddonName_OnUpdate(self, elapsed) TT:AnchorFrameToMouse(self); end ---function TT:MODIFIER_STATE_CHANGED(event, key) - --if InCombatLockdown() and E.db.tooltip.combathide and not (E.db.tooltip.overrideCombat and IsShiftKeyDown()) then - -- GameTooltip:Hide() - --end ---end - TT.InitializeSLE = TT.Initialize function TT:Initialize() TT:InitializeSLE() diff --git a/ElvUI_SLE/modules/uibuttons.lua b/ElvUI_SLE/modules/uibuttons.lua index ecae51a..7367d49 100644 --- a/ElvUI_SLE/modules/uibuttons.lua +++ b/ElvUI_SLE/modules/uibuttons.lua @@ -1,5 +1,4 @@ -local E, L, V, P, G, _ = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB, Localize Underscore --- local UB = E:NewModule('SLE_UIButtons', 'AceHook-3.0', 'AceEvent-3.0'); +local E, L, V, P, G, _ = unpack(ElvUI); local UB = E:GetModule('SLE_UIButtons'); local Btemplate = "SecureActionButtonTemplate" local NumBut = 5 @@ -153,10 +152,8 @@ function UB:Mouseover() if E.db.sle.uibuttons.mouse then if (MouseIsOver(self)) then UIFrameFadeIn(self, 0.2, self:GetAlpha(), 1) - --UIBFrame:SetAlpha(1) else UIFrameFadeOut(self, 0.2, self:GetAlpha(), 0) - --UIBFrame:SetAlpha(0) end else UIBFrame:SetAlpha(1) @@ -178,6 +175,4 @@ function UB:Initialize() E:CreateMover(UIBFrame, "UIBFrameMover", L["UI Buttons"], nil, nil, nil, "ALL,S&L,S&L MISC") UB:MoverSize() -end - --- E:RegisterModule(UB:GetName()) \ No newline at end of file +end \ No newline at end of file diff --git a/ElvUI_SLE/modules/unitframes.lua b/ElvUI_SLE/modules/unitframes.lua index cecc3a7..2b7aaa3 100644 --- a/ElvUI_SLE/modules/unitframes.lua +++ b/ElvUI_SLE/modules/unitframes.lua @@ -1,4 +1,4 @@ -local E, L, V, P, G, _ = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB, Localize Underscore +local E, L, V, P, G, _ = unpack(ElvUI); if not E.private.unitframe.enable then return end local UF = E:GetModule('UnitFrames'); local SLE = E:GetModule('SLE'); diff --git a/ElvUI_SLE/modules/vehicle.lua b/ElvUI_SLE/modules/vehicle.lua index 805f40d..39eeca0 100644 --- a/ElvUI_SLE/modules/vehicle.lua +++ b/ElvUI_SLE/modules/vehicle.lua @@ -1,5 +1,4 @@ local E, L, V, P, G = unpack(ElvUI); --- local EVB = E:NewModule("SLE_EnhancedVehicleBar"); local EVB = E:GetModule("SLE_EnhancedVehicleBar") local AB = E:GetModule("ActionBars"); local LAB = LibStub("LibActionButton-1.0") @@ -135,6 +134,4 @@ function EVB:Initialize() self:CreateExtraButtonSet(); AB:UpdateButtonConfig(bar, bindButtons); -end - --- E:RegisterModule(EVB:GetName()) \ No newline at end of file +end \ No newline at end of file