From 119530736d2984c94df05607b1de1d3e17e1be96 Mon Sep 17 00:00:00 2001 From: govtgeek <26489473+GovtGeek@users.noreply.github.com> Date: Wed, 18 Dec 2024 23:33:34 -0800 Subject: [PATCH 1/2] Added check for classic era to disable flyout slots (they don't exist in classic) --- Outfitter.xml | 1 + OutfitterQuickSlots.lua | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Outfitter.xml b/Outfitter.xml index 96ed66a..4aea1a6 100644 --- a/Outfitter.xml +++ b/Outfitter.xml @@ -1009,6 +1009,7 @@ + if Outfitter:IsClassicEra() then OutfitterQuickslotFlyouts:Hide() end getglobal(self:GetName().."Text"):SetText(Outfitter.cEnableQuickslotFlyouts) diff --git a/OutfitterQuickSlots.lua b/OutfitterQuickSlots.lua index 4e1d3b8..e3b985d 100644 --- a/OutfitterQuickSlots.lua +++ b/OutfitterQuickSlots.lua @@ -33,12 +33,12 @@ function Outfitter._FlyoutQuickSlots:Construct() end function Outfitter._FlyoutQuickSlots:PreClick(pButton, ...) - if not Outfitter.Settings.Options.QuickslotFlyouts then return end + if not Outfitter.Settings.Options.QuickslotFlyouts or Outfitter:IsClassicEra() then return end self.CurrentInventorySlot = Outfitter.cSlotIDToInventorySlot[pButton:GetID()] end function Outfitter._FlyoutQuickSlots:PostClick(pButton, ...) - if not Outfitter.Settings.Options.QuickslotFlyouts then return end + if not Outfitter.Settings.Options.QuickslotFlyouts or Outfitter:IsClassicEra() then return end local vSlotItemLink = Outfitter:GetInventorySlotIDLink(pButton.id or pButton:GetID()) if EquipmentFlyoutFrame:IsVisible() and EquipmentFlyoutFrame.button == pButton then From 448f07ed864bbc2367f8fe9d4867b9df5c77c9e0 Mon Sep 17 00:00:00 2001 From: govtgeek <26489473+GovtGeek@users.noreply.github.com> Date: Wed, 18 Dec 2024 23:38:03 -0800 Subject: [PATCH 2/2] Bumped version --- Outfitter.toc | 2 +- Outfitter_Mainline.toc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Outfitter.toc b/Outfitter.toc index c88d290..bf8f955 100644 --- a/Outfitter.toc +++ b/Outfitter.toc @@ -3,7 +3,7 @@ ## X-Original-Author: John Stephen ## X-Credits: Mundocani, Miv, Gogo, LemonDrake ## Title: Outfitter -## Version: 4.4.1.3 +## Version: 4.4.1.4 ## Notes: Clothing and weapon management and automated equipment changes ## OptionalDeps: ## RequiredDeps: diff --git a/Outfitter_Mainline.toc b/Outfitter_Mainline.toc index 71756fd..568955c 100644 --- a/Outfitter_Mainline.toc +++ b/Outfitter_Mainline.toc @@ -3,7 +3,7 @@ ## X-Original-Author: John Stephen ## X-Credits: Mundocani, Miv, Gogo, LemonDrake ## Title: Outfitter -## Version: 4.4.1.3 +## Version: 4.4.1.4 ## Notes: Clothing and weapon management and automated equipment changes ## AddonCompartmentFunc: Outfitter_OnAddonCompartmentClick #### AddonCompartmentFuncOnEnter: