Auto Hide Options Overhaul

This commit is contained in:
Tercio Jose
2020-06-27 18:13:07 -03:00
parent 2d40243d25
commit e6dec35beb
12 changed files with 220 additions and 33 deletions
+6 -5
View File
@@ -1,5 +1,5 @@
local dversion = 187
local dversion = 190
local major, minor = "DetailsFramework-1.0", dversion
local DF, oldminor = LibStub:NewLibrary (major, minor)
@@ -27,6 +27,8 @@ local UnitIsTapDenied = UnitIsTapDenied
SMALL_NUMBER = 0.000001
ALPHA_BLEND_AMOUNT = 0.8400251
DF.dversion = dversion
DF.AuthorInfo = {
Name = "Terciob",
Discord = "https://discord.gg/AGSzAZX",
@@ -3901,16 +3903,15 @@ end
do
local get = function(self)
local object = tremove(self.notUse, #self.notUse)
if (object) then
if (object) then
tinsert(self.inUse, object)
return object, false
else
--need to create the new object
local newObject = self.newObjectFunc(self, unpack(self.payload))
local newObject = self.newObjectFunc(self, unpack(self.payload))
if (newObject) then
tinsert(self.inUse, newObject)
return object, true
return newObject, true
end
end
end