hello,
thank you very much for your help, the part with the dependencies works
but when i switch stances for example, the color switches back
i editet ActionButton.lua with following code:
_, class = UnitClass("player")
local cc = {}
if class == "WARRIOR" then
cc = { r = 0.78, g = 0.61, b = 0.43 }
elseif class == "PRIEST" then
cc = { r = 1.0, g = 1.0, b = 1.0 }
...(other classes)
end
|
and changed every
.hotkey:SetVertexColor(1.0, 1.0, 1.0)
|
to
.hotkey:SetVertexColor(cc.r, cc.g, cc.b)
|
Bartender4.Button:Create now has this line of code, too
this solution works, but a script in kgpanels would be a better solution, i think
Thalyra
Thalyra