This commit is contained in:
Pinya
2018-07-18 15:06:20 +03:00
parent de74893739
commit c60324af12
52 changed files with 48 additions and 190 deletions
-1
View File
@@ -7,7 +7,6 @@ local format, join = string.format, string.join
local abs = math.abs
--WoW API / Variables
local GetInventorySlotInfo = GetInventorySlotInfo
local GetInventoryItemID = GetInventoryItemID
local GetItemInfo = GetItemInfo
local UnitLevel = UnitLevel
local GetDodgeChance = GetDodgeChance
-1
View File
@@ -8,7 +8,6 @@ local pairs, type, error = pairs, type, error
local len = string.len
local CreateFrame = CreateFrame
local InCombatLockdown = InCombatLockdown
local IsInInstance = IsInInstance
function DT:Initialize()
+3 -11
View File
@@ -4,10 +4,10 @@ local DT = E:GetModule("DataTexts");
--Cache global variables
--Lua functions
local next, unpack = next, unpack
local time = time
local format, gsub, join = string.format, string.gsub, string.join
local abs = math.abs
local getn, insert = table.getn, table.insert
local time, utf8sub = time, string.utf8sub
local getn, tinsert = table.getn, table.insert
--WoW API / Variables
local GetGameTime = GetGameTime
local GetNumSavedInstances = GetNumSavedInstances
@@ -46,7 +46,7 @@ local function OnEnter(self)
for i = 1, GetNumSavedInstances() do
name, _, reset = GetSavedInstanceInfo(i)
if name then
insert(lockedInstances["raids"], {name, reset})
tinsert(lockedInstances["raids"], {name, reset})
end
end
@@ -75,14 +75,6 @@ local function OnUpdate(self, t)
if int > 0 then return end
if IsAddOnLoaded("TimeManager") then -- https://github.com/gashole/TimeManager
if TimeManagerClockButton.alarmFiring then
-- E:Flash(self)
else
-- E:StopFlash(self)
end
end
self.text:SetText(gsub(gsub(BetterDate(E.db.datatexts.timeFormat.." "..E.db.datatexts.dateFormat, time()), ":", timeDisplayFormat), "%s", dateDisplayFormat))
lastPanel = self