this:SetMinMaxValues(1,100) this:SetValue(100) getglobal(this:GetName().."_BG"):SetAlpha(0.5) if arg1 == "LeftButton" then DPSMate.Options:UpdateDetails(this) else DPSMate.Options:InializePlayerDewDrop(this) DPSMate.Options:OpenMenu(4, this) end DPSMate.Options:ShowTooltip() GameTooltip:Hide() GameTooltip:SetOwner(this, "TOPLEFT") GameTooltip:AddLine(DPSMate.L["leftclickopend"]) GameTooltip:Show() GameTooltip:Hide() DPSMate.Options:UpdateTotalDetails(this) this:SetClampedToScreen(true) if getglobal(this:GetName().."_ScrollFrame") then getglobal(this:GetName().."_ScrollFrame_Child"):SetWidth(this:GetWidth()) getglobal(this:GetName().."_ScrollFrame"):SetHeight(this:GetHeight()-16) end GameTooltip:SetOwner(this, "TOPLEFT") GameTooltip:AddLine(DPSMate.L["rcchangemode"]) GameTooltip:Show() GameTooltip:Hide() if arg1 == "LeftButton" and not DPSMateSettings.lock then this:GetParent():StartMoving() end if arg1 == "RightButton" then DPSMate.Options:OpenMenu(1, this:GetParent()) else this:GetParent():StopMovingOrSizing() local point, _, _, xOfs, yOfs = this:GetParent():GetPoint() DPSMateSettings["windows"][this:GetParent().Key]["position"] = {} DPSMateSettings["windows"][this:GetParent().Key]["position"][1] = point DPSMateSettings["windows"][this:GetParent().Key]["position"][2] = xOfs DPSMateSettings["windows"][this:GetParent().Key]["position"][3] = yOfs end GameTooltip:SetOwner(this, "TOPLEFT") GameTooltip:AddLine(DPSMate.L["enabledisable"]) GameTooltip:Show() GameTooltip:Hide() DPSMate.Options:ToggleState() this:SetVerticalScroll(0) DPSMate.Options:OnVerticalScroll(this, arg1)