I hope you understand what I mean and I hope someone here can help me.
so here are the important lines of the code:
Code:
function onUpdate()
hcoord.mmcoords:SetTextColor(hCoords2DB.Color.r, hCoords2DB.Color.g, hCoords2DB.Color.b)
hcoord:SetBackdropBorderColor(hCoords2DB.Color.r, hCoords2DB.Color.g, hCoords2DB.Color.b)
end
hcoord:SetScript("OnUpdate", onUpdate)
function hcoord2_Commands(cmd)
local c,x = string.split(" ",cmd)
if c == "classcolor" then
if hCoords2DB.ClassColors == true then
hCoords2DB.ClassColors = false
ColorPickerFrame:Show()
ColorPickerFrame.func = function ()
hCoords2DB.Color.r, hCoords2DB.Color.g,
hCoords2DB.Color.b = ColorPickerFrame:GetColorRGB()
end
DEFAULT_CHAT_FRAME:AddMessage("Classcolor: |cFFFF0000off|r")
else
hCoords2DB.ClassColors = true
hCoords2DB.Color=RAID_CLASS_COLORS[select(2, UnitClass("player"))]
DEFAULT_CHAT_FRAME:AddMessage("Classcolor: |cFF00FF21on|r")
end
end
No comments:
Post a Comment