mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-30 19:19:59 +00:00
roll: add option to use rarity color for timer
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user