Hey all,
Was curious if anyone knew a command to change the coloring of a KG Panel with the onclick command.
For example, I use this button to show/hide my map.
I'd like to potentially change the color to, say, grey if hidden, orange if shown. Is it possible via a command, or would it be easier just to have two overlapping panels which alternately show/hide when the map is shown/hidden with the appropriate color?Code:local m1 = Minimap if pressed then if m1:IsShown() then m1:Hide() PlaySoundFile("interface\\AddOns\\SharedMedia_MyMedia\\sound\\menu2.mp3") else m1:Show() PlaySoundFile("interface\\AddOns\\SharedMedia_MyMedia\\sound\\menu1.mp3") end end
Thanks for any help!!