mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
update
This commit is contained in:
@@ -469,8 +469,8 @@ local function generateName(unit, ...)
|
|||||||
local name = "oUF_" .. gsub(style, gsub("^oUF_?", ""), gsub("[^%a%d_]+", ""))
|
local name = "oUF_" .. gsub(style, gsub("^oUF_?", ""), gsub("[^%a%d_]+", ""))
|
||||||
|
|
||||||
local raid, party, groupFilter
|
local raid, party, groupFilter
|
||||||
for i = 1, getn(arg), 2 do
|
for i = 1, arg.n, 2 do
|
||||||
local att, val = select(i, unpack(arg))
|
local att, val = arg[i], arg[i+1]
|
||||||
if(att == "showRaid") then
|
if(att == "showRaid") then
|
||||||
raid = true
|
raid = true
|
||||||
elseif(att == "showParty") then
|
elseif(att == "showParty") then
|
||||||
@@ -596,8 +596,8 @@ do
|
|||||||
header.GetAttribute = getAttribute
|
header.GetAttribute = getAttribute
|
||||||
|
|
||||||
--header:SetAttribute("template", "SecureUnitButtonTemplate")
|
--header:SetAttribute("template", "SecureUnitButtonTemplate")
|
||||||
for i = 1, getn(arg), 2 do
|
for i = 1, arg.n, 2 do
|
||||||
local att, val = select(i, unpack(arg))
|
local att, val = arg[i], arg[i+1]
|
||||||
if(not att) then break end
|
if(not att) then break end
|
||||||
|
|
||||||
header:SetAttribute(att, val)
|
header:SetAttribute(att, val)
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ function Private.argcheck(value, num, ...)
|
|||||||
assert(type(num) == 'number', "Bad argument #2 to 'argcheck' (number expected, got " .. type(num) .. ')')
|
assert(type(num) == 'number', "Bad argument #2 to 'argcheck' (number expected, got " .. type(num) .. ')')
|
||||||
|
|
||||||
for i = 1, arg.n do
|
for i = 1, arg.n do
|
||||||
|
-- if(type(value) == arg[i]) then return end
|
||||||
if(type(value) == select(i, unpack(arg))) then return end
|
if(type(value) == select(i, unpack(arg))) then return end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user