mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-03 04:00:02 +00:00
Strip dead pfUI.client > 11200 and pfUI.expansion == "tbc" branches now
that vanilla is the only supported client.
- pfUI.lua: hardcode expansion = "vanilla"; collapse force_region matrix
- compat/vanilla.lua, libs/{libcast,libdebuff,libtotem,libunitscan,
focus}: drop always-false early-returns
- api/unitframes.lua: delete TargetBuffOnUpdate poller + tbc visibility
and secure-template branches; click-cast keeps only vanilla path
- api/ui-widgets.lua: unconditional EffectiveScale divide
- env/tables.lua: drop unused focus/focustarget pfValidUnits entries
- modules/actionbar.lua: simplify EnablePaging, drop ButtonSwitch/
petvisibility, unwrap prowl block, single keybind-remap path
- modules/{castbar,chat,cooldown,loot,questitem,totems}: unwrap
always-true conditionals
- modules/nameplates.lua: cfg-only fake-cooldown gate, unwrap overlap/
clickthrough + mouselook blocks
- modules/friends.lua + skins/blizzard/friends.lua: maxtab = 4
- skins/blizzard/{help,game_menu,questlog}: drop tbc-only branches
43 lines
1.4 KiB
Lua
43 lines
1.4 KiB
Lua
pfUI:RegisterSkin("Game Menu", "vanilla:tbc", function ()
|
|
StripTextures(GameMenuFrame)
|
|
CreateBackdrop(GameMenuFrame, nil, true, .75)
|
|
CreateBackdropShadow(GameMenuFrame)
|
|
|
|
GameMenuFrame:SetWidth(GameMenuFrame:GetWidth() - 30)
|
|
GameMenuFrame:SetHeight(GameMenuFrame:GetHeight() + 6)
|
|
|
|
local title = GetNoNameObject(GameMenuFrame, "FontString", "ARTWORK", MAIN_MENU)
|
|
title:SetTextColor(1,1,1,1)
|
|
title:ClearAllPoints()
|
|
title:SetPoint("TOP", GameMenuFrame, "TOP", 0, 16)
|
|
title:SetFont(pfUI.font_default, C.global.font_size + 2, "OUTLINE")
|
|
|
|
local pfUIButton = CreateFrame("Button", "GameMenuButtonPFUI", GameMenuFrame, "GameMenuButtonTemplate")
|
|
pfUIButton:SetPoint("TOP", 0, -10)
|
|
pfUIButton:SetText(T["|cff33ffccpf|cffffffffUI|cffcccccc Config"])
|
|
pfUIButton:SetScript("OnClick", function()
|
|
pfUI.gui:Show()
|
|
HideUIPanel(GameMenuFrame)
|
|
end)
|
|
SkinButton(pfUIButton)
|
|
|
|
local point, relativeTo, relativePoint, xOffset, yOffset = GameMenuButtonOptions:GetPoint()
|
|
GameMenuButtonOptions:SetPoint(point, relativeTo, relativePoint, xOffset, yOffset - 22)
|
|
|
|
local buttons = {
|
|
GameMenuButtonOptions,
|
|
GameMenuButtonSoundOptions,
|
|
GameMenuButtonUIOptions,
|
|
GameMenuButtonKeybindings,
|
|
GameMenuButtonMacros,
|
|
GameMenuButtonRatings,
|
|
GameMenuButtonLogout,
|
|
GameMenuButtonQuit,
|
|
GameMenuButtonContinue,
|
|
}
|
|
|
|
for _, button in pairs(buttons) do
|
|
if button then SkinButton(button) end
|
|
end
|
|
end)
|