mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-30 19:19:59 +00:00
skin: add sound options
This commit is contained in:
@@ -78,6 +78,7 @@ skins\blizzard\game_menu.lua
|
||||
skins\blizzard\guild_registrar.lua
|
||||
skins\blizzard\help.lua
|
||||
skins\blizzard\options-interface.lua
|
||||
skins\blizzard\options-sound.lua
|
||||
|
||||
# modules
|
||||
modules\gui.lua
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
pfUI:RegisterSkin("Options-Sound", function ()
|
||||
local border = tonumber(pfUI_config.appearance.border.default)
|
||||
local bpad = border > 1 and border - 1 or 1
|
||||
|
||||
StripTextures(SoundOptionsFrame)
|
||||
CreateBackdrop(SoundOptionsFrame, nil, true, .75)
|
||||
EnableMovable(SoundOptionsFrame)
|
||||
|
||||
local SoundOptionsFrameHeaderText = GetNoNameObject(SoundOptionsFrame, "FontString", "ARTWORK", SOUNDOPTIONS_MENU)
|
||||
SoundOptionsFrameHeaderText:ClearAllPoints()
|
||||
SoundOptionsFrameHeaderText:SetPoint("TOP", 0, -10)
|
||||
|
||||
SkinButton(SoundOptionsFrameDefaults)
|
||||
SkinButton(SoundOptionsFrameCancel)
|
||||
SkinButton(SoundOptionsFrameOkay)
|
||||
SoundOptionsFrameOkay:ClearAllPoints()
|
||||
SoundOptionsFrameOkay:SetPoint("RIGHT", SoundOptionsFrameCancel, "LEFT", -2*bpad, 0)
|
||||
|
||||
for i=1, 8 do
|
||||
if i == 3 then i = 4 end -- Blizzard missed this number...
|
||||
SkinCheckbox(_G["SoundOptionsFrameCheckButton"..i], 28)
|
||||
end
|
||||
|
||||
SkinSlider(SoundOptionsFrameSlider1)
|
||||
SoundOptionsFrameSlider1:ClearAllPoints()
|
||||
SoundOptionsFrameSlider1:SetPoint("TOPRIGHT", SoundOptionsFrame, "TOPRIGHT", -18, -43)
|
||||
for i=2, 4 do
|
||||
SkinSlider(_G["SoundOptionsFrameSlider"..i])
|
||||
_G["SoundOptionsFrameSlider"..i]:ClearAllPoints()
|
||||
_G["SoundOptionsFrameSlider"..i]:SetPoint("TOP", _G["SoundOptionsFrameSlider"..i-1], "BOTTOM", 0, -30)
|
||||
end
|
||||
end)
|
||||
Reference in New Issue
Block a user