Commit 7d4b4db6 authored by TOM_RUS's avatar TOM_RUS

WOW-30123patch8.2.0_PTR

parent 4dd5608b
......@@ -121,29 +121,29 @@ IslandsQueueFrameMixin = { };
local function SetWidgetFrameAnchors(frame, anchorFrame)
frame:ClearAllPoints();
frame:SetPoint("CENTER", anchorFrame.Background, "CENTER", 0,0);
frame.TextureAndText.Text:SetPoint("CENTER", anchorFrame.TitleScroll, "CENTER", 0, 0);
frame.Text:SetPoint("CENTER", anchorFrame.TitleScroll, "CENTER", 0, 0);
frame:SetFrameLevel(anchorFrame:GetFrameLevel() +10);
end
local function WidgetInit(widgetFrame)
widgetFrame.TextureAndText.Background:SetSize(451, 301);
widgetFrame.TextureAndText.Text:SetSize(165, 50);
widgetFrame.TextureAndText.Text:SetFontObjectsToTry(GameFontNormalLarge, GameFontNormalMed1, GameFontNormal);
widgetFrame.Background:SetSize(451, 301);
widgetFrame.Text:SetSize(165, 50);
widgetFrame.Text:SetFontObjectsToTry(GameFontNormalLarge, GameFontNormalMed1, GameFontNormal);
end
local function WidgetsLayout(widgetContainer, sortedWidgets)
for index, widgetFrame in ipairs(sortedWidgets) do
if ( index == 1 ) then
widgetFrame.TextureAndText.Background:SetRotation(ISLANDS_QUEUE_LEFT_CARD_ROTATION);
widgetFrame.TextureAndText.Foreground:SetRotation(ISLANDS_QUEUE_LEFT_CARD_ROTATION);
widgetFrame.Background:SetRotation(ISLANDS_QUEUE_LEFT_CARD_ROTATION);
widgetFrame.Foreground:SetRotation(ISLANDS_QUEUE_LEFT_CARD_ROTATION);
SetWidgetFrameAnchors(widgetFrame, widgetContainer.LeftCard)
elseif ( index == 2 ) then
widgetFrame.TextureAndText.Background:SetRotation(ISLANDS_QUEUE_CENTER_CARD_ROTATION);
widgetFrame.TextureAndText.Foreground:SetRotation(ISLANDS_QUEUE_CENTER_CARD_ROTATION);
widgetFrame.Background:SetRotation(ISLANDS_QUEUE_CENTER_CARD_ROTATION);
widgetFrame.Foreground:SetRotation(ISLANDS_QUEUE_CENTER_CARD_ROTATION);
SetWidgetFrameAnchors(widgetFrame, widgetContainer.CenterCard)
elseif ( index == 3 ) then
widgetFrame.TextureAndText.Background:SetRotation(ISLANDS_QUEUE_RIGHT_CARD_ROTATION);
widgetFrame.TextureAndText.Foreground:SetRotation(ISLANDS_QUEUE_RIGHT_CARD_ROTATION);
widgetFrame.Background:SetRotation(ISLANDS_QUEUE_RIGHT_CARD_ROTATION);
widgetFrame.Foreground:SetRotation(ISLANDS_QUEUE_RIGHT_CARD_ROTATION);
SetWidgetFrameAnchors(widgetFrame, widgetContainer.RightCard)
end
end
......
......@@ -346,6 +346,9 @@ function UIWidgetContainerMixin:ProcessAllWidgets()
-- Animate out any widgets that are still marked for removal
self:AnimateOutAllMarkedWidgets();
-- Force call UpdateWidgetLayout because some containers rely on it being called right away
self:UpdateWidgetLayout();
end
local function SortWidgets(a, b)
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment