mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-06 21:50:00 +00:00
core: replace remaining getglobals in favor of _G
This commit is contained in:
+3
-3
@@ -46,12 +46,12 @@ pfUI:RegisterModule("skin", function ()
|
||||
|
||||
if C.appearance.cd.blizzard == "1" then
|
||||
hooksecurefunc("PaperDollItemSlotButton_Update", function()
|
||||
local cooldown = getglobal(this:GetName().."Cooldown")
|
||||
local cooldown = _G[this:GetName().."Cooldown"]
|
||||
if cooldown then cooldown.pfCooldownType = "ALL" end
|
||||
end)
|
||||
|
||||
hooksecurefunc("SpellButton_UpdateButton", function()
|
||||
local cooldown = getglobal(this:GetName().."Cooldown")
|
||||
local cooldown = _G[this:GetName().."Cooldown"]
|
||||
if cooldown then cooldown.pfCooldownType = "ALL" end
|
||||
end)
|
||||
end
|
||||
@@ -76,7 +76,7 @@ pfUI:RegisterModule("skin", function ()
|
||||
GameMenuButtonOptions:SetPoint(point, relativeTo, relativePoint, xOffset, yOffset - 22)
|
||||
|
||||
for _, box in pairs(boxes) do
|
||||
local b = getglobal(box)
|
||||
local b = _G[box]
|
||||
CreateBackdrop(b, nil, true, .8)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user