建表
local colorTable = { ["DK"] = {r = .77, g = .12, b = .23}, ["DLY"] = {r = 1, g = .49, b = .04}, ["LR"] = {r = .67, g = .83, b = .45}, ["FS"] = {r = .41, g = .80, b = .94}, ["WS"] = {r = .33, g = .54, b = .52}, ["QS"] = {r = .96, g = .55, b = .73}, ["MS"] = {r = 1, g = 1, b = 1}, ["DZ"] = {r = 1, g = .96, b = .41}, ["SM"] = {r = 0, g = .44, b = .87}, ["SS"] = {r = .58, g = .51, b = .79}, ["ZS"] = {r = .78, g = .61, b = .43}, ["Black"] = {r = 0, g = 0, b = 0}, ["Gray"] = {r = .37, g = .3, b = .3}, ["OWN"] = RAID_CLASS_COLORS[class], }
调用设置变量
F:SetBackdropColor(colorTable[Misc.modeborder].r, colorTable[Misc.modeborder].g, colorTable[Misc.modeborder].b, 1)