From 68bd13c076b02a0cd3006a9922780eaa1612f64a Mon Sep 17 00:00:00 2001 From: Casey Raethke Date: Wed, 4 Aug 2021 15:40:08 -0500 Subject: [PATCH] Make ColorPickerFrame appear on top and be movable (Fixes #45) --- RatingBuster.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/RatingBuster.lua b/RatingBuster.lua index 210d6ee..691ae4f 100644 --- a/RatingBuster.lua +++ b/RatingBuster.lua @@ -380,6 +380,12 @@ local options = { end ColorPickerFrame:SetColorRGB(profileDB.textColor.r, profileDB.textColor.g, profileDB.textColor.b); ColorPickerFrame.previousValues = {r = profileDB.textColor.r, g = profileDB.textColor.g, b = profileDB.textColor.b}; + ColorPickerFrame:SetFrameStrata("FULLSCREEN_DIALOG") + ColorPickerFrame:SetMovable(true) + ColorPickerFrame:EnableMouse(true) + ColorPickerFrame:RegisterForDrag("LeftButton") + ColorPickerFrame:SetScript("OnDragStart", ColorPickerFrame.StartMoving) + ColorPickerFrame:SetScript("OnDragStop", ColorPickerFrame.StopMovingOrSizing) ColorPickerFrame:Show() end, },