diff --git a/modules/loot.lua b/modules/loot.lua index 4587a91c..98cd1305 100644 --- a/modules/loot.lua +++ b/modules/loot.lua @@ -77,9 +77,7 @@ pfUI:RegisterModule("loot", function () if pfUI.loot.my_index or pfUI.loot.disenchanter_index or pfUI.loot.banker_index then info = wipe(info) info.text = T["Special Recipient"] - info.textR = NORMAL_FONT_COLOR.r - info.textG = NORMAL_FONT_COLOR.g - info.textB = NORMAL_FONT_COLOR.b + info.textR, info.textG, info.textB = NORMAL_FONT_COLOR:GetRGB() info.textHeight = 12 info.hasArrow = 1 info.notCheckable = 1 @@ -158,9 +156,7 @@ pfUI:RegisterModule("loot", function () if level == 1 then info = wipe(info) info.text = T["Random"] - info.textR = NORMAL_FONT_COLOR.r - info.textG = NORMAL_FONT_COLOR.g - info.textB = NORMAL_FONT_COLOR.b + info.textR, info.textG, info.textB = NORMAL_FONT_COLOR:GetRGB() info.value = "PFRANDOM" info.textHeight = 12 info.notCheckable = 1 @@ -170,9 +166,7 @@ pfUI:RegisterModule("loot", function () info = wipe(info) info.text = T["Request Rolls"] - info.textR = NORMAL_FONT_COLOR.r - info.textG = NORMAL_FONT_COLOR.g - info.textB = NORMAL_FONT_COLOR.b + info.textR, info.textG, info.textB = NORMAL_FONT_COLOR:GetRGB() info.value = "PFROLLS" info.textHeight = 12 info.hasArrow = 1 @@ -183,9 +177,7 @@ pfUI:RegisterModule("loot", function () if UIDROPDOWNMENU_MENU_VALUE == "PFROLLS" then info = wipe(info) info.text = T["Clear Rolls"] - info.textR = NORMAL_FONT_COLOR.r - info.textG = NORMAL_FONT_COLOR.g - info.textB = NORMAL_FONT_COLOR.b + info.textR, info.textG, info.textB = NORMAL_FONT_COLOR:GetRGB() info.value = "PFCLEARROLLS" info.notCheckable = 1 info.func = pfUI.loot.ClearRolls @@ -193,9 +185,7 @@ pfUI:RegisterModule("loot", function () info = wipe(info) info.text = T["Reroll Ties"] - info.textR = NORMAL_FONT_COLOR.r - info.textG = NORMAL_FONT_COLOR.g - info.textB = NORMAL_FONT_COLOR.b + info.textR, info.textG, info.textB = NORMAL_FONT_COLOR:GetRGB() info.value = "PFTIEROLL" info.notCheckable = 1 info.arg1 = pfUI.loot.rollers_sorted diff --git a/modules/socialmod.lua b/modules/socialmod.lua index 59b00a7f..1d1fb1aa 100644 --- a/modules/socialmod.lua +++ b/modules/socialmod.lua @@ -142,7 +142,7 @@ pfUI:RegisterModule("socialmod", function () -- filename is the class token, so no L["class"] reversal is needed local class = info.filename - _G["WhoFrameButton"..i.."Name"]:SetTextColor(NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b) + _G["WhoFrameButton"..i.."Name"]:SetTextColor(NORMAL_FONT_COLOR:GetRGB()) if (UIDropDownMenu_GetSelectedID(WhoFrameDropDown) == 1) then if (info.area == playerzone) then