From 0dfe88bb2b1f680677825aca14d953931a2c9a1a Mon Sep 17 00:00:00 2001 From: Boneshock Date: Fri, 5 Jan 2024 21:03:47 +0100 Subject: [PATCH] Currency Trigger: use currency icon in options window --- WeakAuras/Prototypes.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/WeakAuras/Prototypes.lua b/WeakAuras/Prototypes.lua index 95f6e11e05..17774b7b85 100644 --- a/WeakAuras/Prototypes.lua +++ b/WeakAuras/Prototypes.lua @@ -10390,6 +10390,10 @@ Private.event_prototypes = { conditionType = "bool", }, }, + GetNameAndIcon = function(trigger) + local currencyInfo = Private.GetCurrencyInfoForTrigger(trigger) + return currencyInfo and currencyInfo.name, currencyInfo and currencyInfo.iconFileID + end, automaticrequired = true }, };