mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-06 05:30:00 +00:00
loot: make detailed random roll announce an option
* api: SendChatMessageWide will use raid warning if player is raid leader or assist * loot: rearrange advanced masterloot menus so random rolling and special recipients precede class menu * loot: fix a special recipients unitpopup menu check so they won't show in the context menu when the player is solo * loot: change the auto confirm bind when solo implementation, so player doesn't have to double-click the loot * loot: make sure it works if the loot bind confirmation staticpopup is not at index 1
This commit is contained in:
@@ -212,7 +212,11 @@ end
|
||||
function pfUI.api.SendChatMessageWide(msg)
|
||||
local channel = "SAY"
|
||||
if UnitInRaid("player") then
|
||||
if ( IsRaidLeader() or IsRaidOfficer() ) then
|
||||
channel = "RAID_WARNING"
|
||||
else
|
||||
channel = "RAID"
|
||||
end
|
||||
elseif UnitExists("party1") then
|
||||
channel = "PARTY"
|
||||
end
|
||||
|
||||
@@ -94,6 +94,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, "rollannounce", "0")
|
||||
pfUI:UpdateConfig("loot", nil, "raritytimer", "1")
|
||||
|
||||
pfUI:UpdateConfig("unitframes", nil, "disable", "0")
|
||||
|
||||
Reference in New Issue
Block a user