Skip to content

Commit

Permalink
chore: update libs
Browse files Browse the repository at this point in the history
  • Loading branch information
DengSir committed Sep 5, 2024
1 parent bd7e5cb commit b12d719
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Libs/Libs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
<Include remote="curse@Ace3" file="AceDB-3.0\AceDB-3.0.xml"/>
<Include remote="curse@Ace3" file="AceLocale-3.0\AceLocale-3.0.xml"/>
<Include remote="curse@Ace3" file="AceSerializer-3.0\AceSerializer-3.0.xml"/>
<Include remote="curse@Ace3" file="AceGUI-3.0\AceGUI-3.0.xml"/>
<Include remote="curse@Ace3" file="AceConfig-3.0\AceConfig-3.0.xml"/>

<Include file="LibClass-2.0\LibClass-2.0.xml"/>
<Include file="LibTooltipExtra-1.0\LibTooltipExtra-1.0.xml" />
Expand Down
7 changes: 7 additions & 0 deletions UI/CharacterGearFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,10 @@ function CharacterGearFrame:GetTalentInfo(group)
end
return maxName, maxIcon, maxBg, table.concat(counts, '/')
end

function CharacterGearFrame:TapTo(frame, ...)
self:SetParent(frame)
self:ClearAllPoints()
self:SetPoint(...)
self:Show()
end
4 changes: 4 additions & 0 deletions UI/InspectGearFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,17 @@ function InspectGearFrame:OnShow()
self:RegisterEvent('UNIT_INVENTORY_CHANGED')
self:RegisterEvent('GET_ITEM_INFO_RECEIVED', 'UpdateItemLevel')
self:Update()

ns.Addon.GearFrame:TapTo(self, 'TOPLEFT', self, 'TOPRIGHT', 0, 0)
end

function InspectGearFrame:OnHide()
self.unit = nil
self.class = nil
self:UnregisterAllEvents()
self:UnregisterAllMessages()

ns.Addon.GearFrame:TapTo(PaperDollFrame, 'TOPLEFT', CharacterFrame, 'TOPRIGHT', -33, -12)
end

function InspectGearFrame:UNIT_INVENTORY_CHANGED(_, unit)
Expand Down

0 comments on commit b12d719

Please sign in to comment.