mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-26 14:00:48 +00:00
removed tbc logic
This commit is contained in:
@@ -5,37 +5,18 @@ pfUI:RegisterSkin("Options - Sound", function ()
|
|||||||
|
|
||||||
-- Compatibility
|
-- Compatibility
|
||||||
local SoundOptionsFrameHeaderText, NUM_CHECKBOXES, NUM_SLIDERS
|
local SoundOptionsFrameHeaderText, NUM_CHECKBOXES, NUM_SLIDERS
|
||||||
if SOUND_OPTIONS then -- tbc
|
|
||||||
SoundOptionsFrameHeaderText = GetNoNameObject(SoundOptionsFrame, "FontString", "BACKGROUND", SOUND_OPTIONS)
|
|
||||||
NUM_CHECKBOXES = 11
|
|
||||||
NUM_SLIDERS = 6
|
|
||||||
|
|
||||||
StripTextures(AudioOptionsFrame)
|
SoundOptionsFrameHeaderText = GetNoNameObject(SoundOptionsFrame, "FontString", "ARTWORK", SOUNDOPTIONS_MENU)
|
||||||
CreateBackdrop(SoundOptionsFramePlayback, nil, true, .75)
|
NUM_CHECKBOXES = 8
|
||||||
CreateBackdrop(SoundOptionsFrameHardware, nil, true, .75)
|
NUM_SLIDERS = 4
|
||||||
CreateBackdrop(SoundOptionsFrameVolume, nil, true, .75)
|
|
||||||
|
|
||||||
SkinDropDown(SoundOptionsOutputDropDown)
|
SoundOptionsFrameOkay:ClearAllPoints()
|
||||||
|
SoundOptionsFrameOkay:SetPoint("RIGHT", SoundOptionsFrameCancel, "LEFT", -2*bpad, 0)
|
||||||
SoundOptionsFrameDefaults:ClearAllPoints()
|
SoundOptionsFrameSlider1:ClearAllPoints()
|
||||||
SoundOptionsFrameDefaults:SetPoint("TOPLEFT", SoundOptionsFramePlayback, "BOTTOMLEFT", 0, -10)
|
SoundOptionsFrameSlider1:SetPoint("TOPRIGHT", SoundOptionsFrame, "TOPRIGHT", -18, -43)
|
||||||
SoundOptionsFrameCancel:ClearAllPoints()
|
for i=2, NUM_SLIDERS do
|
||||||
SoundOptionsFrameCancel:SetPoint("TOPRIGHT", SoundOptionsFrameVolume, "BOTTOMRIGHT", 0, -10)
|
_G["SoundOptionsFrameSlider"..i]:ClearAllPoints()
|
||||||
SoundOptionsFrameOkay:ClearAllPoints()
|
_G["SoundOptionsFrameSlider"..i]:SetPoint("TOP", _G["SoundOptionsFrameSlider"..i-1], "BOTTOM", 0, -30)
|
||||||
SoundOptionsFrameOkay:SetPoint("RIGHT", SoundOptionsFrameCancel, "LEFT", -2*bpad, 0)
|
|
||||||
else -- vanilla
|
|
||||||
SoundOptionsFrameHeaderText = GetNoNameObject(SoundOptionsFrame, "FontString", "ARTWORK", SOUNDOPTIONS_MENU)
|
|
||||||
NUM_CHECKBOXES = 8
|
|
||||||
NUM_SLIDERS = 4
|
|
||||||
|
|
||||||
SoundOptionsFrameOkay:ClearAllPoints()
|
|
||||||
SoundOptionsFrameOkay:SetPoint("RIGHT", SoundOptionsFrameCancel, "LEFT", -2*bpad, 0)
|
|
||||||
SoundOptionsFrameSlider1:ClearAllPoints()
|
|
||||||
SoundOptionsFrameSlider1:SetPoint("TOPRIGHT", SoundOptionsFrame, "TOPRIGHT", -18, -43)
|
|
||||||
for i=2, NUM_SLIDERS do
|
|
||||||
_G["SoundOptionsFrameSlider"..i]:ClearAllPoints()
|
|
||||||
_G["SoundOptionsFrameSlider"..i]:SetPoint("TOP", _G["SoundOptionsFrameSlider"..i-1], "BOTTOM", 0, -30)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
StripTextures(SoundOptionsFrame)
|
StripTextures(SoundOptionsFrame)
|
||||||
|
|||||||
Reference in New Issue
Block a user