Skip to content

Commit

Permalink
Merge pull request #49 from GovtGeek/development
Browse files Browse the repository at this point in the history
Quickslot fix for classic era
  • Loading branch information
GovtGeek authored Dec 19, 2024
2 parents ea3e8b8 + 448f07e commit 160d96f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Outfitter.toc
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions Outfitter.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,7 @@
</Anchors>
<Scripts>
<OnLoad>
if Outfitter:IsClassicEra() then OutfitterQuickslotFlyouts:Hide() end
getglobal(self:GetName().."Text"):SetText(Outfitter.cEnableQuickslotFlyouts)
</OnLoad>
<OnClick>
Expand Down
4 changes: 2 additions & 2 deletions OutfitterQuickSlots.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Outfitter_Mainline.toc
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 160d96f

Please sign in to comment.