mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-26 05:50:50 +00:00
group: add missing update event
This commit is contained in:
+3
-3
@@ -38,7 +38,7 @@ pfUI:RegisterModule("group", function ()
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if event == "RAID_TARGET_UPDATE" or event == "PLAYER_ENTERING_WORLD" then
|
if event == "RAID_TARGET_UPDATE" or event == "PLAYER_ENTERING_WORLD" or event == "PARTY_MEMBERS_CHANGED" then
|
||||||
local raidIcon = GetRaidTargetIndex("party" .. i)
|
local raidIcon = GetRaidTargetIndex("party" .. i)
|
||||||
if raidIcon then
|
if raidIcon then
|
||||||
SetRaidTargetIconTexture(pfUI.uf.group[i].hp.raidIcon.texture, raidIcon)
|
SetRaidTargetIconTexture(pfUI.uf.group[i].hp.raidIcon.texture, raidIcon)
|
||||||
@@ -48,7 +48,7 @@ pfUI:RegisterModule("group", function ()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if event == "PARTY_LEADER_CHANGED" or event == "PLAYER_ENTERING_WORLD" then
|
if event == "PARTY_LEADER_CHANGED" or event == "PLAYER_ENTERING_WORLD" or event == "PARTY_MEMBERS_CHANGED" then
|
||||||
if UnitIsPartyLeader("party"..i) then
|
if UnitIsPartyLeader("party"..i) then
|
||||||
pfUI.uf.group[i].hp.leaderIcon:Show()
|
pfUI.uf.group[i].hp.leaderIcon:Show()
|
||||||
else
|
else
|
||||||
@@ -56,7 +56,7 @@ pfUI:RegisterModule("group", function ()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if event == "PARTY_LOOT_METHOD_CHANGED" or event == "PLAYER_ENTERING_WORLD" then
|
if event == "PARTY_LOOT_METHOD_CHANGED" or event == "PLAYER_ENTERING_WORLD" or event == "PARTY_MEMBERS_CHANGED" then
|
||||||
local _, lootmaster = GetLootMethod()
|
local _, lootmaster = GetLootMethod()
|
||||||
if lootmaster and pfUI.uf.group[i].id == lootmaster then
|
if lootmaster and pfUI.uf.group[i].id == lootmaster then
|
||||||
pfUI.uf.group[i].hp.lootIcon:Show()
|
pfUI.uf.group[i].hp.lootIcon:Show()
|
||||||
|
|||||||
Reference in New Issue
Block a user