mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-22 15:46:56 +00:00
710be52f35
Drop the now-vestigial expansion plumbing.
- Delete modules/thirdparty-tbc.lua + its xml Include
- Strip 10 tbc-tagged CreateConfig calls in modules/gui.lua
- Drop the expansion arg from CreateConfig() signature + the disabled-
entry rendering path that depended on it
- Drop the showdisabled GUI toggle + its default
- Simplify pfUI:RegisterModule / pfUI:RegisterSkin to (name, func) only
- Strip the leading version arg ("vanilla:tbc", etc.) from all 114
Register call sites
- Delete the pfUI.expansion variable
43 lines
1.5 KiB
Lua
43 lines
1.5 KiB
Lua
pfUI:RegisterSkin("KeyBindings", function ()
|
|
local rawborder, border = GetBorderSize()
|
|
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
|
|
|
|
HookAddonOrVariable("Blizzard_BindingUI", function()
|
|
StripTextures(KeyBindingFrame)
|
|
CreateBackdrop(KeyBindingFrame, nil, nil, .75)
|
|
CreateBackdropShadow(KeyBindingFrame)
|
|
|
|
KeyBindingFrame.backdrop:SetPoint("TOPLEFT", 2, 10)
|
|
KeyBindingFrame.backdrop:SetPoint("BOTTOMRIGHT", -42, 10)
|
|
KeyBindingFrame:SetHitRectInsets(2,42,10,10)
|
|
EnableMovable(KeyBindingFrame)
|
|
|
|
SkinScrollbar(KeyBindingFrameScrollFrameScrollBar)
|
|
|
|
SkinCheckbox(KeyBindingFrameCharacterButton)
|
|
|
|
SkinButton(KeyBindingFrameDefaultButton)
|
|
SkinButton(KeyBindingFrameCancelButton)
|
|
|
|
SkinButton(KeyBindingFrameOkayButton)
|
|
SkinButton(KeyBindingFrameOkayButton)
|
|
KeyBindingFrameOkayButton:ClearAllPoints()
|
|
KeyBindingFrameOkayButton:SetPoint("RIGHT", KeyBindingFrameCancelButton, "LEFT", -2*bpad, 0)
|
|
|
|
SkinButton(KeyBindingFrameUnbindButton)
|
|
SkinButton(KeyBindingFrameUnbindButton)
|
|
KeyBindingFrameUnbindButton:ClearAllPoints()
|
|
KeyBindingFrameUnbindButton:SetPoint("RIGHT", KeyBindingFrameOkayButton, "LEFT", -2*bpad, 0)
|
|
|
|
for key = 1, KEY_BINDINGS_DISPLAYED do
|
|
for btn = 1, 2 do
|
|
local button = _G["KeyBindingFrameBinding"..key.."Key"..btn.."Button"]
|
|
StripTextures(button)
|
|
SkinButton(button)
|
|
button:SetScript("OnMouseDown", function() end)
|
|
button:SetScript("OnMouseUp", function() end)
|
|
end
|
|
end
|
|
end)
|
|
end)
|