roll: add option to use rarity color for timer

This commit is contained in:
shagu
2018-03-18 00:37:54 +01:00
parent 0f7fd4a7b0
commit 10981d24ec
3 changed files with 6 additions and 0 deletions
+1
View File
@@ -74,6 +74,7 @@ function pfUI:LoadConfig()
pfUI:UpdateConfig("loot", nil, "autopickup", "1")
pfUI:UpdateConfig("loot", nil, "mousecursor", "1")
pfUI:UpdateConfig("loot", nil, "advancedloot", "1")
pfUI:UpdateConfig("loot", nil, "raritytimer", "1")
pfUI:UpdateConfig("unitframes", nil, "disable", "0")
pfUI:UpdateConfig("unitframes", nil, "pastel", "1")
+1
View File
@@ -931,6 +931,7 @@ pfUI:RegisterModule("gui", function ()
CreateConfig(nil, this, T["Disable Loot Confirmation Dialog (Without Group)"], C.loot, "autopickup", "checkbox")
CreateConfig(nil, this, T["Enable Loot Window On MouseCursor"], C.loot, "mousecursor", "checkbox")
CreateConfig(nil, this, T["Enable Advanced Master Loot Menu"], C.loot, "advancedloot", "checkbox")
CreateConfig(nil, this, T["Use Item Rarity Color For Loot-Roll Timer"], C.loot, "raritytimer", "checkbox")
this.setup = true
end
end)
+4
View File
@@ -286,6 +286,10 @@ pfUI:RegisterModule("roll", function ()
pfUI.roll.frames[id].backdrop:SetBackdropBorderColor(color.r, color.g, color.b)
pfUI.roll.frames[id].time.bar:SetMinMaxValues(0, pfUI.roll.frames[id].rollTime)
if C.loot.raritytimer == "1" then
pfUI.roll.frames[id].time.bar:SetStatusBarColor(color.r, color.g, color.b, .5)
end
if bop then
pfUI.roll.frames[id].boe.text:SetText("BoP")
pfUI.roll.frames[id].boe.text:SetTextColor(1,.3,.3,1)