diff --git a/ElvUI_SLE/modules/dashboard/datapanels/ms.lua b/ElvUI_SLE/modules/dashboard/datapanels/ms.lua index 11653d5..2d8b32a 100644 --- a/ElvUI_SLE/modules/dashboard/datapanels/ms.lua +++ b/ElvUI_SLE/modules/dashboard/datapanels/ms.lua @@ -1,5 +1,4 @@ -local E, L, V, P, G = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB - +local E, L, V, P, G = unpack(ElvUI); local LastUpdate = 1 board[4].Status:SetScript("OnUpdate", function(self, elapsed) diff --git a/ElvUI_SLE/modules/marks/marks.lua b/ElvUI_SLE/modules/marks/marks.lua index f2316ee..aef62d2 100644 --- a/ElvUI_SLE/modules/marks/marks.lua +++ b/ElvUI_SLE/modules/marks/marks.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 RM = E:NewModule('SLE_RaidMarks', 'AceHook-3.0', 'AceEvent-3.0'); +local E, L, V, P, G, _ = unpack(ElvUI); local RM = E:GetModule('SLE_RaidMarks') local Mtemplate = "SecureActionButtonTemplate" local IsInInstance = IsInInstance @@ -189,6 +187,4 @@ function RM:Initialize() self:RegisterEvent("PLAYER_ENTERING_WORLD", "UpdateVisibility"); E:CreateMover(mark_menu, "MarkMover", "RM", nil, nil, nil, "ALL,S&L,S&L MISC") -end - --- E:RegisterModule(RM:GetName()) \ No newline at end of file +end \ No newline at end of file diff --git a/ElvUI_SLE/modules/minimap/minimapcoords.lua b/ElvUI_SLE/modules/minimap/minimapcoords.lua index fa94a4a..4d1d9ca 100644 --- a/ElvUI_SLE/modules/minimap/minimapcoords.lua +++ b/ElvUI_SLE/modules/minimap/minimapcoords.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('Minimap') local GetPlayerMapPosition = GetPlayerMapPosition diff --git a/ElvUI_SLE/modules/minimap/minimapicons.lua b/ElvUI_SLE/modules/minimap/minimapicons.lua index e6105c5..10893f1 100644 --- a/ElvUI_SLE/modules/minimap/minimapicons.lua +++ b/ElvUI_SLE/modules/minimap/minimapicons.lua @@ -1,5 +1,4 @@ -local E, L, V, P, G, _ = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB, Localize Underscore --- local SMB = E:NewModule('SLE_SquareMinimapButtons', 'AceHook-3.0', 'AceEvent-3.0'); +local E, L, V, P, G, _ = unpack(ElvUI); local SMB = E:GetModule('SLE_SquareMinimapButtons'); @@ -350,6 +349,4 @@ function SMB:Initialize() SkinMinimapButtons() SMB:Update() end) -end - --- E:RegisterModule(SMB:GetName()) \ No newline at end of file +end \ No newline at end of file diff --git a/ElvUI_SLE/modules/sledatatexts/played.lua b/ElvUI_SLE/modules/sledatatexts/played.lua index 62992bd..aa9e444 100644 --- a/ElvUI_SLE/modules/sledatatexts/played.lua +++ b/ElvUI_SLE/modules/sledatatexts/played.lua @@ -17,8 +17,6 @@ local OnEnter = function(self) local TotalDay, TotalHour, TotalMinute, TotalSecond = ChatFrame_TimeBreakDown(TotalPlayTime + (GetTime() - SessionPlayTime)) local LevelDay, LevelHour, LevelMinute, LevelSecond = ChatFrame_TimeBreakDown(LevelPlayTime + (GetTime() - LevelPlayTimeOffset)) local LastLevelDay, LastLevelHour, LastLevelMinute, LastLevelSecond = ChatFrame_TimeBreakDown(LastLevelTime) - --local Panel, Anchor, xOff, yOff = self:GetTooltipAnchor() - --DT.tooltip:SetOwner(Panel, Anchor, xOff, yOff) DT.tooltip:ClearLines() DT.tooltip:AddLine(TIME_PLAYED_MSG, 1, 1, 1) DT.tooltip:AddLine(' ') @@ -27,7 +25,6 @@ local OnEnter = function(self) DT.tooltip:AddDoubleLine(L["Previous Level:"], LastLevelDay > 0 and format(PlayedTimeFormatFull, LastLevelDay. LastLevelHour, LastLevelMinute, LastLevelSecond) or format(PlayedTimeFormatNoDay, LastLevelHour, LastLevelMinute, LastLevelSecond), 1, 1, 1, 1, 1, 1) end DT.tooltip:AddDoubleLine(LEVEL..':', LevelDay > 0 and format(PlayedTimeFormatFull, LevelDay, LevelHour, LevelMinute, LevelSecond) or format(PlayedTimeFormatNoDay, LevelHour, LevelMinute, LevelSecond), 1, 1, 1, 1, 1, 1) - --DT.tooltip:AddDoubleLine(LEVEL..':', LevelDay > 0 and format(PlayedTimeFormatFull, LevelDay. LevelHour, LevelMinute, LevelSecond) or format(PlayedTimeFormatNoDay, LevelHour, LevelMinute, LevelSecond), 1, 1, 1, 1, 1, 1) DT.tooltip:AddDoubleLine(TOTAL..':', TotalDay > 0 and format(PlayedTimeFormatFull, TotalDay, TotalHour, TotalMinute, TotalSecond) or format(PlayedTimeFormatNoDay, TotalHour, TotalMinute, TotalSecond), 1, 1, 1, 1, 1, 1) DT.tooltip:AddLine(' ') DT.tooltip:AddLine(L["Account Time Played"], 1, 1, 1) @@ -136,32 +133,4 @@ local OnMouseDown = function(self, button) end end end - ---[[ -local Enable = function(self) - if (not self.Text) then - local Text = self:CreateFontString(nil, 'OVERLAY') - Text:SetFont(DataText.Font, DataText.Size, DataText.Flags) - Text:SetText('Time Played') - self.Text = Text - end - - self:RegisterEvent('TIME_PLAYED_MSG') - self:RegisterEvent('PLAYER_LEVEL_UP') - self:RegisterEvent('PLAYER_ENTERING_WORLD') - self:RegisterEvent('PLAYER_LOGOUT') - self:SetScript('OnMouseDown', OnMouseDown) - self:SetScript('OnUpdate', OnUpdate) - self:SetScript('OnEnter', OnEnter) - self:SetScript('OnEvent', OnEvent) - self:SetScript('OnLeave', GameTooltip_Hide) -end - -local Disable = function(self) - self.Text:SetText('') - self:UnregisterAllEvents() - self:SetScript('OnEvent', nil) - self:SetScript('OnEnter', nil) - self:SetScript('OnLeave', nil) -end]] DT:RegisterDatatext('S&L Time Played', {'TIME_PLAYED_MSG', 'PLAYER_LEVEL_UP', 'PLAYER_ENTERING_WORLD' , 'PLAYER_LOGOUT'}, OnEvent, OnUpdate, OnMouseDown, OnEnter, OnLeave) \ No newline at end of file diff --git a/ElvUI_SLE/modules/sledatatexts/regen.lua b/ElvUI_SLE/modules/sledatatexts/regen.lua index ee0e358..628a929 100644 --- a/ElvUI_SLE/modules/sledatatexts/regen.lua +++ b/ElvUI_SLE/modules/sledatatexts/regen.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 DT = E:GetModule('DataTexts') local displayNumberString = '' diff --git a/ElvUI_SLE/modules/sledatatexts/time.lua b/ElvUI_SLE/modules/sledatatexts/time.lua index 558380f..4ecbcd7 100644 --- a/ElvUI_SLE/modules/sledatatexts/time.lua +++ b/ElvUI_SLE/modules/sledatatexts/time.lua @@ -1,5 +1,5 @@ --Replacement of Elv's time datatext with some additions -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 DT = E:GetModule('DataTexts') local format = string.format diff --git a/ElvUI_SLE/modules/sledatatexts/version.lua b/ElvUI_SLE/modules/sledatatexts/version.lua index c9ed4ff..77add52 100644 --- a/ElvUI_SLE/modules/sledatatexts/version.lua +++ b/ElvUI_SLE/modules/sledatatexts/version.lua @@ -1,5 +1,5 @@ --Version datatext. Only in Russian for now. -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 DT = E:GetModule('DataTexts') local SLE = E:GetModule('SLE') local ACD = LibStub("AceConfigDialog-3.0")