Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Shadow & Light
Shadow and Light
Commits
63d26f14
Verified
Commit
63d26f14
authored
Dec 15, 2020
by
Repooc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
try the way it was since i was to tired and missed something basic lol
parent
1f27078e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
6 deletions
+33
-6
ElvUI_SLE/modules/bags/baginfo.lua
ElvUI_SLE/modules/bags/baginfo.lua
+33
-6
No files found.
ElvUI_SLE/modules/bags/baginfo.lua
View file @
63d26f14
...
...
@@ -78,19 +78,46 @@ function BI:CheckVisibility(bagFrame, bagID, slotID)
if
not
text
or
text
==
''
then
return
end
EQUIPMENT_SETS
=
E
:
StripString
(
EQUIPMENT_SETS
)
EQUIPMENT_SETS
=
EQUIPMENT_SETS
:
gsub
(
'%%s'
,
''
)
EQUIPMENT_SETS
=
E
:
EscapeString
(
EQUIPMENT_SETS
)
if
text
:
find
(
EQUIPMENT_SETS
)
then
if
text
:
find
(
EQUIPMENT_SETS
:
gsub
(
'%%s'
,
'.-'
))
then
show
=
true
end
end
E
.
ScanTooltip
:
Hide
()
return
E
.
db
.
sle
.
bags
.
equipmentmanager
.
enable
and
show
end
-- function BI:CheckVisibility(bagFrame, bagID, slotID)
-- if not bagFrame or not bagID or not slotID then return end
-- local button = bagFrame.Bags[bagID][slotID]
-- local show = false
-- E.ScanTooltip:SetOwner(_G.UIParent, 'ANCHOR_NONE')
-- if button.GetInventorySlot then -- this fixes bank bagid -1
-- E.ScanTooltip:SetInventoryItem('player', button:GetInventorySlot())
-- else
-- E.ScanTooltip:SetBagItem(bagID, slotID)
-- end
-- E.ScanTooltip:Show()
-- for i = 3, E.ScanTooltip:NumLines() do
-- local str = _G['ElvUI_ScanTooltipTextLeft' .. i]
-- local text = str and str:GetText()
-- if not text or text == '' then return end
-- EQUIPMENT_SETS = E:StripString(EQUIPMENT_SETS)
-- EQUIPMENT_SETS = EQUIPMENT_SETS:gsub('%%s', '')
-- EQUIPMENT_SETS = E:EscapeString(EQUIPMENT_SETS)
-- if text:find(EQUIPMENT_SETS) then
-- show = true
-- end
-- end
-- E.ScanTooltip:Hide()
-- return E.db.sle.bags.equipmentmanager.enable and show
-- end
function
BI
:
ToggleSettings
()
if
E
.
db
.
sle
.
bags
.
equipmentmanager
.
enable
then
BI
:
RegisterEvent
(
'EQUIPMENT_SETS_CHANGED'
,
BI
.
UpdateEquipment
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment