--self.TitleText:SetText ("Chart Viewer") --self.portrait:SetTexture ([[Interface\SPELLBOOK\Spellbook-Icon]]) --self.portrait:SetVertexColor (1, 1, 1, 1) tinsert (UISpecialFrames, "ChartViewerWindowFrame") if (self.isMoving) then return; end if (button == "LeftButton") then self.isMoving = true; self:StartMoving(); elseif (button == "RightButton") then self:Hide() end if (self.isMoving and button == "LeftButton") then self.isMoving = false; self:StopMovingOrSizing(); end DETAILS_PLUGIN_CHART_VIEWER:OnDetailsEvent ("SHOW"); DETAILS_PLUGIN_CHART_VIEWER:OnDetailsEvent ("HIDE"); if (button == "RightButton") then ChartViewerWindowFrame:Hide(); end if (self.lastclick and self.lastclick + 0.2 > GetTime()) then DETAILS_PLUGIN_CHART_VIEWER:TabDoubleClick (self) self.lastclick = nil return end self.lastclick = GetTime() if (button == "LeftButton") then DETAILS_PLUGIN_CHART_VIEWER:TabClick (self) end self:SetFrameLevel (self:GetParent():GetFrameLevel()+2) self.middleTexture:SetSize (76, 32) self.middleSelectedTexture:SetSize (76, 32) self.middleHighlightTexture:SetSize (76, 32) _G [self:GetName() .. "Text"]:SetSize (74, 8) self:SetSize (96, 32) DETAILS_PLUGIN_CHART_VIEWER:TabOnEnter (self) GameTooltip:Hide() self.CloseButton:SetNormalTexture ("Interface\\Buttons\\UI-Panel-MinimizeButton-Disabled")