Thread Tools Display Modes
Prev Previous Post   Next Post Next
01-06-24, 01:28 PM   #1
Sharpedge
A Theradrim Guardian
 
Sharpedge's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2022
Posts: 64
Color Picker issues 10.2.5

I'm trying to see if anyone else has had an issue with color picker when using it to change font colors etc. It works perfectly fine in 10.2, but when I went to the PTR its a no go. There are no errors, and when you click on the Font color button in my addon it does nothing. It doesn't even pull up the color picker.

Does anyone know if this is an issue that Blizz knows about? Or do I need to figure out how to get around it? Below is part of my code for the color picker:

Code:
fontColor = {
            type = "color",
            name = "Button Font Color",
            desc = "Set the color of the button text.",
            hasAlpha = true,
            get = function()
                local color = IncDB.fontColor or {r = 1, g = 1, b = 1, a = 1} -- Default to white
                return color.r, color.g, color.b, color.a
            end,
            set = function(_, r, g, b, a)
                IncDB.fontColor.r = r
                IncDB.fontColor.g = g
                IncDB.fontColor.b = b
                IncDB.fontColor.a = a
                for _, text in ipairs(buttonTexts) do
                    text:SetTextColor(r, g, b, a)
                end
            end,
            order = 5,
        },
        buttonColor = {
            type = "color",
            name = "Button Color",
            desc = "Set the color of the buttons.",
            hasAlpha = true,
            get = function()
                local color = IncDB.buttonColor or {r = 1, g = 0, b = 0, a = 1} -- Default to red
                return color.r, color.g, color.b, color.a
            end,
            set = function(_, r, g, b, a)
                IncDB.buttonColor.r = r  
                IncDB.buttonColor.g = g 
                IncDB.buttonColor.b = b 
                IncDB.buttonColor.a = a 
                applyButtonColor() 
            end,
            order = 6,
The full code can be seen at: https://github.com/The-Sickness/Incoming-BG

Any help on this will be greatly appreciated.
  Reply With Quote
 

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Color Picker issues 10.2.5


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off