mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-14 17:20:50 +00:00
skins: add a bunch of tbc compatible skins
* add skin for: auction, character, game_menu guild_registrar, inspect, macro, mail, merchant, options-interface, options-sound, options-video, popup_dialogs, professions, questlog, talents, tracking, guildbank, socket, readycheck, arena_registrar, arena, time_manager, LFG * add mail highlighting the quality of items * add quality borders of guildbank items
This commit is contained in:
@@ -1,7 +1,47 @@
|
||||
pfUI:RegisterSkin("Options - Video", "vanilla", function ()
|
||||
pfUI:RegisterSkin("Options - Video", "vanilla:tbc", function ()
|
||||
local border = tonumber(pfUI_config.appearance.border.default)
|
||||
local bpad = border > 1 and border - 1 or 1
|
||||
|
||||
-- Compatibility
|
||||
local MAX_SLIDERS, MAX_CHECKBOXES
|
||||
if OptionsFrameSlider10 then -- tbc
|
||||
MAX_SLIDERS = 11
|
||||
MAX_CHECKBOXES = 19
|
||||
|
||||
for i=1, MAX_SLIDERS do
|
||||
local slider = _G["OptionsFrameSlider"..i]
|
||||
local shift = 0
|
||||
if i == 4 or i == 5 or i == 7 or i == 8 or i == 10 or i == 11 then shift = 10 end
|
||||
local point, anchor, anchorPoint, x, y = slider:GetPoint()
|
||||
slider:ClearAllPoints()
|
||||
slider:SetPoint(point, anchor, anchorPoint, x, y - shift)
|
||||
end
|
||||
|
||||
hooksecurefunc("OptionsFrame_Load", function()
|
||||
OptionsFramePixelShaders:SetWidth(230)
|
||||
OptionsFrameMiscellaneous:ClearAllPoints()
|
||||
OptionsFrameMiscellaneous:SetPoint("LEFT", OptionsFramePixelShaders, "RIGHT", 6, 0)
|
||||
end)
|
||||
OptionsFrameDefaults:ClearAllPoints()
|
||||
OptionsFrameDefaults:SetPoint("TOPLEFT", OptionsFramePixelShaders, "BOTTOMLEFT", 0, -10)
|
||||
OptionsFrameCancel:ClearAllPoints()
|
||||
OptionsFrameCancel:SetPoint("TOPRIGHT", OptionsFrameMiscellaneous, "BOTTOMRIGHT", 0, -10)
|
||||
else -- vanilla
|
||||
MAX_SLIDERS = 9
|
||||
MAX_CHECKBOXES = 18
|
||||
|
||||
for i=1, MAX_SLIDERS do
|
||||
local slider = _G["OptionsFrameSlider"..i]
|
||||
local shift = 0
|
||||
if i == 1 or i == 6 then shift = 4
|
||||
elseif i == 4 or i == 8 then shift = 10
|
||||
end
|
||||
local point, anchor, anchorPoint, x, y = slider:GetPoint()
|
||||
slider:ClearAllPoints()
|
||||
slider:SetPoint(point, anchor, anchorPoint, x, y - shift)
|
||||
end
|
||||
end
|
||||
|
||||
CreateBackdrop(OptionsFrame, nil, nil, .75)
|
||||
CreateBackdropShadow(OptionsFrame)
|
||||
|
||||
@@ -17,6 +57,12 @@ pfUI:RegisterSkin("Options - Video", "vanilla", function ()
|
||||
OptionsFrameHeaderText:ClearAllPoints()
|
||||
OptionsFrameHeaderText:SetPoint("TOP", OptionsFrame.backdrop, "TOP", 0, -10)
|
||||
|
||||
CreateBackdrop(OptionsFrameDisplay, nil, true, .75)
|
||||
CreateBackdrop(OptionsFrameWorldAppearance, nil, true, .75)
|
||||
CreateBackdrop(OptionsFrameBrightness, nil, true, .75)
|
||||
CreateBackdrop(OptionsFramePixelShaders, nil, true, .75)
|
||||
CreateBackdrop(OptionsFrameMiscellaneous, nil, true, .75)
|
||||
|
||||
SkinButton(OptionsFrameDefaults)
|
||||
SkinButton(OptionsFrameCancel)
|
||||
SkinButton(OptionsFrameOkay)
|
||||
@@ -27,24 +73,14 @@ pfUI:RegisterSkin("Options - Video", "vanilla", function ()
|
||||
SkinDropDown(OptionsFrameRefreshDropDown)
|
||||
SkinDropDown(OptionsFrameMultiSampleDropDown)
|
||||
|
||||
CreateBackdrop(OptionsFrameDisplay, nil, true, .75)
|
||||
CreateBackdrop(OptionsFrameWorldAppearance, nil, true, .75)
|
||||
CreateBackdrop(OptionsFrameBrightness, nil, true, .75)
|
||||
CreateBackdrop(OptionsFramePixelShaders, nil, true, .75)
|
||||
CreateBackdrop(OptionsFrameMiscellaneous, nil, true, .75)
|
||||
|
||||
for i=1, 9 do
|
||||
local shift = 0
|
||||
if i == 1 or i == 6 then shift = 4
|
||||
elseif i == 4 or i == 8 then shift = 10
|
||||
end
|
||||
for i=1, MAX_SLIDERS do
|
||||
SkinSlider(_G["OptionsFrameSlider"..i])
|
||||
local point, anchor, anchorPoint, x, y = _G["OptionsFrameSlider"..i]:GetPoint()
|
||||
_G["OptionsFrameSlider"..i]:ClearAllPoints()
|
||||
_G["OptionsFrameSlider"..i]:SetPoint(point, anchor, anchorPoint, x, y - shift)
|
||||
end
|
||||
|
||||
for i=1, 18 do
|
||||
SkinCheckbox(_G["OptionsFrameCheckButton"..i], 28)
|
||||
for i=1, MAX_CHECKBOXES do
|
||||
local btn = _G["OptionsFrameCheckButton"..i]
|
||||
if btn then
|
||||
SkinCheckbox(btn, 28)
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user