From bed60064290f21015d1458358444d295846e0f17 Mon Sep 17 00:00:00 2001 From: Aldric Ducreux Date: Mon, 3 Jun 2024 19:42:26 +0200 Subject: [PATCH] Fix Bindings for quest btn --- APR-Core/Bindings.xml | 3 --- APR-Core/Core.lua | 2 +- APR-Core/CurrentStep.lua | 2 +- Bindings.xml | 3 +++ 4 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 APR-Core/Bindings.xml create mode 100644 Bindings.xml diff --git a/APR-Core/Bindings.xml b/APR-Core/Bindings.xml deleted file mode 100644 index 262cc0fa..00000000 --- a/APR-Core/Bindings.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/APR-Core/Core.lua b/APR-Core/Core.lua index 98654905..91d4c0af 100644 --- a/APR-Core/Core.lua +++ b/APR-Core/Core.lua @@ -122,7 +122,7 @@ function APR:OnInitialize() -- APR Global Variables, UI oriented BINDING_HEADER_APR = APR.title -- Header text for APR's main frame - _G["BINDING_NAME_" .. "CLICK APRItemButton:LeftButton"] = L["USE_QUEST_ITEM"] + _G["BINDING_NAME_" .. "CLICK APR_ItemButton:LeftButton"] = L["USE_QUEST_ITEM"] -- Register tot party frame C_ChatInfo.RegisterAddonMessagePrefix("APRPartyData") diff --git a/APR-Core/CurrentStep.lua b/APR-Core/CurrentStep.lua index ac8bf8ec..b1ad954f 100644 --- a/APR-Core/CurrentStep.lua +++ b/APR-Core/CurrentStep.lua @@ -634,7 +634,7 @@ function APR.currentStep:AddStepButton(questsListKey, itemID, attribute) return end - local IconButton = CreateFrame("Button", "$parentIconButton", container, + local IconButton = CreateFrame("Button", "APR_ItemButton", container, "SecureActionButtonTemplate, BackdropTemplate") IconButton:SetSize(25, 25) PositionStepButtons(container, IconButton) diff --git a/Bindings.xml b/Bindings.xml new file mode 100644 index 00000000..c6f8aa7b --- /dev/null +++ b/Bindings.xml @@ -0,0 +1,3 @@ + + +