Files
pfUI/skins/blizzard/help.lua
T
Brues ba566cdd53 phase 2 removing tbc
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
2026-05-25 18:40:17 -05:00

104 lines
3.5 KiB
Lua

pfUI:RegisterSkin("Help", "vanilla:tbc", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
StripTextures(HelpFrame)
CreateBackdrop(HelpFrame, nil, nil, .75)
CreateBackdropShadow(HelpFrame)
HelpFrame.backdrop:SetPoint("TOPLEFT", 4, -4)
HelpFrame.backdrop:SetPoint("BOTTOMRIGHT", -44, 12)
HelpFrame:SetHitRectInsets(4,44,4,12)
EnableMovable(HelpFrame)
SkinCloseButton(HelpFrameCloseButton, HelpFrame.backdrop, -6, -6)
local title = GetNoNameObject(HelpFrame, "FontString", "ARTWORK", HELP_FRAME_TITLE)
title:ClearAllPoints()
title:SetPoint("TOP", HelpFrame.backdrop, "TOP", 0, -10)
-- HelpFrameHome
StripTextures(HelpFrameHomeIssues)
SkinButton(HelpFrameHomeIssues)
HelpFrameHomeIssues:SetScript("OnMouseUp", function() end)
HelpFrameHomeIssues:SetScript("OnMouseDown", function() end)
SkinButton(HelpFrameHomeCancel)
-- HelpFrameGM
SkinButton(HelpFrameGMCancel)
SkinButton(HelpFrameGMBack)
HelpFrameGMBack:ClearAllPoints()
HelpFrameGMBack:SetPoint("RIGHT", HelpFrameGMCancel, "LEFT", -2*bpad, 0)
-- HelpFrameOpenTicket
StripTextures(HelpFrameOpenTicketDivider)
CreateBackdrop(HelpFrameOpenTicketScrollFrame, nil, nil, .75)
StripTextures(HelpFrameOpenTicketScrollFrame)
SkinScrollbar(HelpFrameOpenTicketScrollFrameScrollBar)
HelpFrameOpenTicketText:SetMaxLetters(5000)
SkinButton(HelpFrameOpenTicketCancel)
SkinButton(HelpFrameOpenTicketSubmit)
HelpFrameOpenTicketSubmit:ClearAllPoints()
HelpFrameOpenTicketSubmit:SetPoint("RIGHT", HelpFrameOpenTicketCancel, "LEFT", -2*bpad, 0)
-- HelpFrameGeneral
StripTextures(HelpFrameGeneralButton)
SkinButton(HelpFrameGeneralButton)
HelpFrameGeneralButton:SetScript("OnMouseUp", function() end)
HelpFrameGeneralButton:SetScript("OnMouseDown", function() end)
StripTextures(HelpFrameGeneralButton2)
SkinButton(HelpFrameGeneralButton2)
HelpFrameGeneralButton2:SetScript("OnMouseUp", function() end)
HelpFrameGeneralButton2:SetScript("OnMouseDown", function() end)
SkinButton(HelpFrameGeneralCancel)
SkinButton(HelpFrameGeneralBack)
HelpFrameGeneralBack:ClearAllPoints()
HelpFrameGeneralBack:SetPoint("RIGHT", HelpFrameGeneralCancel, "LEFT", -2*bpad, 0)
-- HelpFrameHarassment
StripTextures(HelpFrameHarassmentDivider)
StripTextures(HelpFrameHarassmentDivider2)
StripTextures(HelpFrameVerbalHarassmentButton)
SkinButton(HelpFrameVerbalHarassmentButton)
HelpFrameVerbalHarassmentButton:SetScript("OnMouseUp", function() end)
HelpFrameVerbalHarassmentButton:SetScript("OnMouseDown", function() end)
StripTextures(HelpFramePhysicalHarassmentButton)
SkinButton(HelpFramePhysicalHarassmentButton)
HelpFramePhysicalHarassmentButton:SetScript("OnMouseUp", function() end)
HelpFramePhysicalHarassmentButton:SetScript("OnMouseDown", function() end)
SkinButton(HelpFrameHarassmentCancel)
SkinButton(HelpFrameHarassmentBack)
HelpFrameHarassmentBack:ClearAllPoints()
HelpFrameHarassmentBack:SetPoint("RIGHT", HelpFrameHarassmentCancel, "LEFT", -2*bpad, 0)
-- TicketStatusFrame
CreateBackdrop(TicketStatusFrame, nil, true, .75)
TicketStatusFrame:ClearAllPoints()
TicketStatusFrame:SetPoint("TOP", 0, -5)
UpdateMovable(TicketStatusFrame)
function TicketStatusFrame_OnEvent()
if ( event == "PLAYER_ENTERING_WORLD" ) then
GetGMTicket()
else
if ( arg1 ~= 0 ) then
this:Show()
refreshTime = GMTICKET_CHECK_INTERVAL
else
this:Hide()
end
end
end
end)