Skip to content

Commit

Permalink
Make ColorPickerFrame appear on top and be movable (Fixes #45)
Browse files Browse the repository at this point in the history
  • Loading branch information
raethkcj committed Aug 4, 2021
1 parent 3f404c4 commit 68bd13c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions RatingBuster.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit 68bd13c

Please sign in to comment.