mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-16 01:50:48 +00:00
possible nil value crashfix for non-english clients
This commit is contained in:
@@ -1,26 +1,25 @@
|
|||||||
pfUI:RegisterSkin("RaidUI", "vanilla", function ()
|
pfUI:RegisterSkin("RaidUI", "vanilla", function ()
|
||||||
HookAddonOrVariable("Blizzard_RaidUI", function()
|
HookAddonOrVariable("Blizzard_RaidUI", function()
|
||||||
|
|
||||||
for i = 1, NUM_RAID_GROUPS do
|
for i = 1, (NUM_RAID_GROUPS or 8) do
|
||||||
local group = _G["RaidGroup"..i]
|
local group = _G["RaidGroup"..i]
|
||||||
if group then
|
if group and group.GetRegions then
|
||||||
StripTextures(group)
|
StripTextures(group)
|
||||||
|
|
||||||
for j = 1, MEMBERS_PER_RAID_GROUP do
|
for j = 1, (MEMBERS_PER_RAID_GROUP or 5) do
|
||||||
local slot = _G["RaidGroup"..i.."Slot"..j]
|
local slot = _G["RaidGroup"..i.."Slot"..j]
|
||||||
if slot then
|
if slot and slot.GetRegions then
|
||||||
StripTextures(slot)
|
StripTextures(slot)
|
||||||
CreateBackdrop(slot, nil, true)
|
CreateBackdrop(slot, nil, true)
|
||||||
SetHighlight(slot, 1, 1, 0)
|
SetHighlight(slot, 1, 1, 0)
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
for i = 1, MAX_RAID_MEMBERS do
|
for i = 1, (MAX_RAID_MEMBERS or 40) do
|
||||||
local button = _G["RaidGroupButton"..i]
|
local button = _G["RaidGroupButton"..i]
|
||||||
if button then
|
if button and button.GetRegions then
|
||||||
StripTextures(button)
|
StripTextures(button)
|
||||||
CreateBackdrop(button, nil, true)
|
CreateBackdrop(button, nil, true)
|
||||||
SetHighlight(button, 1, 1, 0)
|
SetHighlight(button, 1, 1, 0)
|
||||||
@@ -31,4 +30,4 @@ pfUI:RegisterSkin("RaidUI", "vanilla", function ()
|
|||||||
if RaidFrameReadyCheckButton then SkinButton(RaidFrameReadyCheckButton) end
|
if RaidFrameReadyCheckButton then SkinButton(RaidFrameReadyCheckButton) end
|
||||||
|
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
Reference in New Issue
Block a user