mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-11 08:00:01 +00:00
panel: refresh ammo slots on bag update
This commit is contained in:
@@ -520,6 +520,7 @@ pfUI:RegisterModule("panel", "vanilla:tbc", function()
|
|||||||
local widget = CreateFrame("Frame", "pfPanelWidgetAmmo", UIParent)
|
local widget = CreateFrame("Frame", "pfPanelWidgetAmmo", UIParent)
|
||||||
widget:RegisterEvent("PLAYER_ENTERING_WORLD")
|
widget:RegisterEvent("PLAYER_ENTERING_WORLD")
|
||||||
widget:RegisterEvent("UNIT_INVENTORY_CHANGED")
|
widget:RegisterEvent("UNIT_INVENTORY_CHANGED")
|
||||||
|
widget:RegisterEvent("BAG_UPDATE")
|
||||||
widget.Tooltip = function()
|
widget.Tooltip = function()
|
||||||
if GetInventoryItemQuality("player", 0) then
|
if GetInventoryItemQuality("player", 0) then
|
||||||
local ammo = GetInventoryItemCount("player", 0)
|
local ammo = GetInventoryItemCount("player", 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user