mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-06 13:40:00 +00:00
raidframe fixes
This commit is contained in:
+12
-17
@@ -1,39 +1,34 @@
|
||||
pfUI:RegisterSkin("RaidUI", "vanilla", function ()
|
||||
HookAddonOrVariable("Blizzard_RaidUI", function()
|
||||
|
||||
-- skin each RaidGroup frame (8 groups, each with a label + 5 slots)
|
||||
for i = 1, NUM_RAID_GROUPS do
|
||||
local group = _G["RaidGroup"..i]
|
||||
if group then
|
||||
StripTextures(group)
|
||||
CreateBackdrop(group, nil, nil, .75)
|
||||
|
||||
local label = _G["RaidGroup"..i.."Label"]
|
||||
if label then
|
||||
label:SetFont(pfUI.font_default, C.global.font_size, "OUTLINE")
|
||||
for j = 1, MEMBERS_PER_RAID_GROUP do
|
||||
local slot = _G["RaidGroup"..i.."Slot"..j]
|
||||
if slot then
|
||||
StripTextures(slot)
|
||||
CreateBackdrop(slot, nil, true)
|
||||
SetHighlight(slot, 1, 1, 0)
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- skin each RaidGroupButton (40 members)
|
||||
for i = 1, MAX_RAID_MEMBERS do
|
||||
local button = _G["RaidGroupButton"..i]
|
||||
if button then
|
||||
StripTextures(button)
|
||||
CreateBackdrop(button, nil, nil, .75)
|
||||
|
||||
local name = _G["RaidGroupButton"..i.."Name"]
|
||||
local level = _G["RaidGroupButton"..i.."Level"]
|
||||
local class = _G["RaidGroupButton"..i.."Class"]
|
||||
if name then name:SetFont(pfUI.font_default, C.global.font_size, "OUTLINE") end
|
||||
if level then level:SetFont(pfUI.font_default, C.global.font_size, "OUTLINE") end
|
||||
if class then class:SetFont(pfUI.font_default, C.global.font_size, "OUTLINE") end
|
||||
CreateBackdrop(button, nil, true)
|
||||
SetHighlight(button, 1, 1, 0)
|
||||
end
|
||||
end
|
||||
|
||||
-- skin the Add Member and Ready Check buttons on the RaidFrame panel
|
||||
SkinButton(RaidFrameAddMemberButton)
|
||||
SkinButton(RaidFrameReadyCheckButton)
|
||||
if RaidFrameAddMemberButton then SkinButton(RaidFrameAddMemberButton) end
|
||||
if RaidFrameReadyCheckButton then SkinButton(RaidFrameReadyCheckButton) end
|
||||
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user