/trunk
------------------------------------------------------- Frame script handlers -- |
local function OnFrameShow(self) |
if self.carrier then |
-- TODO or I could just make the positioning a function and call it here |
self.carrier.DoShow = true |
end |
x = (x / uiscale) * scale |
y = (y / uiscale) * scale |
self.carrier:ClearAllPoints() |
self.carrier:SetPoint('BOTTOMLEFT', UIParent, 'BOTTOMLEFT', floor(x-(self.carrier:GetWidth()/2)), floor(y)) |
-- show the frame after it's been moved so it doesn't flash |
frame.carrier:SetFrameStrata('BACKGROUND') |
frame.carrier:SetSize(frame:GetWidth()/uiscale, frame:GetHeight()/uiscale) |
frame.carrier:SetScale(uiscale) |
frame.carrier:SetPoint('CENTER', UIParent) |
frame.carrier:Hide() |
-- [debug] |
if _G['KuiNameplatesDebug'] then |
frame.carrier:SetBackdrop({ bgFile = kui.m.t.solid }) |