Files
pfUI/skins/blizzard/survey.lua
T
Brues b64ae7dd53 Replace HookAddonOrVariable with an EventUtil-based HookAddon
The polling lurker frame is gone. HookAddon gates on
C_AddOns.DoesAddOnExist, waits for PLAYER_LOGIN with
EventUtil.ContinueOnPlayerLogin, then runs on
EventUtil.ContinueOnAddOnLoaded. Addons loaded at startup still hook
only after every pfUI module and skin exists and after the addon's
own VARIABLES_LOADED setup. Load-on-demand addons still hook on their
ADDON_LOADED.

The "or variable" form is gone. Callers that passed a global now pass
the addon that defines it: TheoryCraft, SuperMacro, DPSMate and
Turtle_GroupUI. DPSMate names its windows from its settings, so its
hook now checks for DPSMate_DPSMate itself, as the variable lookup
used to. eqcompare's Guda check uses HookAddon too.
2026-10-31 00:28:30 -05:00

40 lines
1.5 KiB
Lua

pfUI:RegisterSkin("GM Survey", function ()
HookAddon("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)