Files
pfUI/skins/blizzard/survey.lua
T
Brues 710be52f35 phase 3 removing tbc
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
2026-05-25 18:50:53 -05:00

40 lines
1.5 KiB
Lua

pfUI:RegisterSkin("GM Survey", function ()
HookAddonOrVariable("Blizzard_GMSurveyUI", function()
StripTextures(GMSurveyFrame)
CreateBackdrop(GMSurveyFrame, nil, nil, .75)
CreateBackdropShadow(GMSurveyFrame)
GMSurveyFrame.backdrop:SetPoint("TOPLEFT", 10, 0)
GMSurveyFrame.backdrop:SetPoint("BOTTOMRIGHT", -72, 40)
GMSurveyFrame:SetHitRectInsets(10,72,0,40)
EnableMovable(GMSurveyFrame)
SkinCloseButton(GMSurveyCloseButton, GMSurveyFrame.backdrop, -6, -6)
StripTextures(GMSurveyHeader)
GMSurveyHeaderText:ClearAllPoints()
GMSurveyHeaderText:SetPoint("TOP", GMSurveyFrame.backdrop, "TOP", 0, -10)
local answer_header = GetNoNameObject(GMSurveyFrame, "FontString", "BACKGROUND", GMSURVEY_REQUEST_TEXT)
answer_header:ClearAllPoints()
answer_header:SetPoint("TOP", GMSurveyFrame.backdrop, "TOP", 0, -35)
for i = 1, 5 do
StripTextures(_G["GMSurveyQuestion"..i])
end
SkinButton(GMSurveySubmitButton)
GMSurveySubmitButton:ClearAllPoints()
GMSurveySubmitButton:SetPoint("BOTTOMRIGHT", GMSurveyFrame.backdrop, "BOTTOMRIGHT", -10, 10)
SkinButton(GMSurveyCancelButton)
GMSurveyCancelButton:ClearAllPoints()
GMSurveyCancelButton:SetPoint("BOTTOMLEFT", GMSurveyFrame.backdrop, "BOTTOMLEFT", 10, 10)
CreateBackdrop(GMSurveyCommentFrame, nil, true, .75)
SkinScrollbar(GMSurveyCommentScrollFrameScrollBar)
GMSurveyFrameComment:SetMaxLetters(2000)
hooksecurefunc("GMSurveyFrame_Update", function()
GMSurveyFrameComment:SetWidth(505)
end)
end)
end)