GameTooltip:SetOwner(self, "ANCHOR_RIGHT")
GameTooltip:AddLine(self:GetParent().spikeTooltip, 1, 1, 1, true)
GameTooltip:Show()
GameTooltip:Hide()
GameTooltip:SetOwner(self, "ANCHOR_RIGHT")
GameTooltip:AddLine(self:GetParent().timeTooltip, 1, 1, 1, true)
GameTooltip:Show()
GameTooltip:Hide()
if button == "LeftButton" then
self.is_moving = true
local parent = self:GetParent()
parent:ClearAllPoints()
parent:StartMoving()
end
if button == "LeftButton" and self.is_moving then
self.is_moving = nil
local parent = self:GetParent()
parent:StopMovingOrSizing()
local xOffset = parent:GetLeft()
local yOffset = parent:GetTop() - GetScreenHeight()
WeakAurasSaved.RealTimeProfilingWindow = WeakAurasSaved.RealTimeProfilingWindow or {}
WeakAurasSaved.RealTimeProfilingWindow.xOffset = xOffset
WeakAurasSaved.RealTimeProfilingWindow.yOffset = yOffset
end
local data = WeakAurasSaved.RealTimeProfilingWindow
local parent = self:GetParent()
parent:ClearAllPoints()
if data then
parent:SetPoint("TOPLEFT", UIParent, "TOPLEFT", data.xOffset or 0, data.yOffset or 0)
else
parent:SetPoint("CENTER")
end
self:SetText(self.originalText)