comparison Veneer.lua @ 112:7c77fde36287

- WorldPlan pins are checked for completion state when available AP is tallied.
author Nick@Zahhak
date Thu, 23 Mar 2017 05:29:03 -0400
parents 26938ae258b7
children 2105b6e5095f
comparison
equal deleted inserted replaced
111:1196c2bad31c 112:7c77fde36287
347 if frame:IsShown() then 347 if frame:IsShown() then
348 348
349 if frame.anchorFrame then 349 if frame.anchorFrame then
350 print(frame.anchorPoint) 350 print(frame.anchorPoint)
351 frame:SetPoint(frame.anchorPoint, frame.anchorFrame, frame.anchorFrom, frame.anchorX, frame.anchorY) 351 frame:SetPoint(frame.anchorPoint, frame.anchorFrame, frame.anchorFrom, frame.anchorX, frame.anchorY)
352 print(frame:GetTop(), frame:GetRight()) 352 print('anchored to', frame.anchorFrame,frame:GetTop(), frame:GetRight())
353 else 353 else
354 anchorPoint = frame.anchorPoint or anchorPoint 354 anchorPoint = frame.anchorPoint or anchorPoint
355 frame:ClearAllPoints() 355 frame:ClearAllPoints()
356 if lastFrame then 356 if lastFrame then
357 frame:SetPoint(anchorPoint, lastFrame, ANCHOR_OFFSET_POINT[anchorPoint], 0, 0) 357 frame:SetPoint(anchorPoint, lastFrame, ANCHOR_OFFSET_POINT[anchorPoint], 0, 0)
358
359 print('moved after', lastFrame,frame:GetTop(), frame:GetRight())
358 else 360 else
359 frame:SetPoint(anchorPoint, UIParent, anchorPoint, frame.anchorX, frame.anchorY) 361 frame:SetPoint(anchorPoint, UIParent, anchorPoint, frame.anchorX, frame.anchorY)
362 print('stub', anchorPoint, frame.anchorX, frame.anchorY)
360 end 363 end
361 print(frame:GetTop(), frame:GetRight())
362 lastFrame = frame 364 lastFrame = frame
363 end 365 end
364 366
365 end 367 end
366 368