175 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
36 lines
1.4 KiB
Lua
36 lines
1.4 KiB
Lua
-- The Source guild Info page exposes only its supported MOTD and information.
|
|
-- This runs inside the original native frame; editor callbacks remain original.
|
|
function CommunitiesGuildInfoFrame_HideChallenges(self)
|
|
self.BG:Hide();
|
|
self.Header1Label:SetText(GUILD_MOTD_LABEL);
|
|
self.Header2Label:Hide();
|
|
self.Bar1Left:Hide();
|
|
self.HorizontalBar:Hide();
|
|
self.Bar2Left:Hide();
|
|
self.Bar2Right:Hide();
|
|
self.Header2:Hide();
|
|
for _, challenge in ipairs(self.Challenges) do
|
|
challenge:Hide();
|
|
end
|
|
|
|
local width = math.max(246, self:GetWidth() - 36);
|
|
local motdHeight = 70;
|
|
self.Header1:SetWidth(width + 28);
|
|
self.Header3:SetWidth(width + 28);
|
|
self.EditMOTDButton:ClearAllPoints();
|
|
self.EditMOTDButton:SetPoint("RIGHT", self.Header1, "RIGHT", -8, 0);
|
|
self.MOTDScrollFrame:ClearAllPoints();
|
|
self.MOTDScrollFrame:SetPoint("TOPLEFT", self.Header1, "BOTTOMLEFT", 14, -6);
|
|
self.MOTDScrollFrame:SetSize(width, motdHeight);
|
|
self.MOTDScrollFrame.MOTD:SetWidth(width);
|
|
|
|
self.Header3:ClearAllPoints();
|
|
self.Header3:SetPoint("TOPLEFT", self.MOTDScrollFrame, "BOTTOMLEFT", -14, -16);
|
|
self.DetailsFrame:ClearAllPoints();
|
|
self.DetailsFrame:SetPoint("TOPLEFT", self.Header3, "BOTTOMLEFT", 14, -6);
|
|
self.DetailsFrame:SetPoint("BOTTOMRIGHT", self, "BOTTOMRIGHT", -22, 10);
|
|
local child = self.DetailsFrame:GetScrollChild();
|
|
child:SetWidth(width);
|
|
child.Details:SetWidth(width);
|
|
end
|