Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ElvUI
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Hekili
ElvUI
Commits
a9577cfd
Commit
a9577cfd
authored
May 30, 2019
by
Merathilis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use GameTooltip_Hide instead making an own function for it.
parent
a3b2e4cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
ElvUI/Modules/Bags/Bags.lua
ElvUI/Modules/Bags/Bags.lua
+8
-12
No files found.
ElvUI/Modules/Bags/Bags.lua
View file @
a9577cfd
...
...
@@ -148,10 +148,6 @@ function B:Tooltip_Show()
GameTooltip:Show()
end
function B:Tooltip_Hide()
_G.GameTooltip:Hide()
end
function B:DisableBlizzard()
_G.BankFrame:UnregisterAllEvents();
...
...
@@ -661,7 +657,7 @@ function B:UpdateSlot(bagID, slotID)
SetItemButtonDesaturated
(
slot
,
slot
.
locked
or
slot
.
junkDesaturate
);
if
_G
.
GameTooltip
:
GetOwner
()
==
slot
and
not
slot
.
hasItem
then
B
:
Tooltip_Hide
()
Game
Tooltip_Hide
()
end
end
...
...
@@ -1715,7 +1711,7 @@ function B:ContructContainerFrame(name, isBank)
f
.
reagentToggle
:
StyleButton
(
nil
,
true
)
f
.
reagentToggle
.
ttText
=
L
[
"Show/Hide Reagents"
];
f
.
reagentToggle
:
SetScript
(
"OnEnter"
,
self
.
Tooltip_Show
)
f
.
reagentToggle
:
SetScript
(
"OnLeave"
,
self
.
Tooltip_Hide
)
f
.
reagentToggle
:
SetScript
(
"OnLeave"
,
Game
Tooltip_Hide
)
f
.
reagentToggle
:
SetScript
(
"OnClick"
,
function
()
PlaySound
(
841
)
--IG_CHARACTER_INFO_TAB
B
:
ShowBankTab
(
f
,
f
.
holderFrame
:
IsShown
())
...
...
@@ -1774,7 +1770,7 @@ function B:ContructContainerFrame(name, isBank)
f
.
depositButton
:
StyleButton
(
nil
,
true
)
f
.
depositButton
.
ttText
=
L
[
"Deposit Reagents"
]
f
.
depositButton
:
SetScript
(
"OnEnter"
,
self
.
Tooltip_Show
)
f
.
depositButton
:
SetScript
(
"OnLeave"
,
self
.
Tooltip_Hide
)
f
.
depositButton
:
SetScript
(
"OnLeave"
,
Game
Tooltip_Hide
)
f
.
depositButton
:
SetScript
(
'OnClick'
,
function
()
PlaySound
(
852
)
--IG_MAINMENU_OPTION
DepositReagentBank
()
...
...
@@ -1793,7 +1789,7 @@ function B:ContructContainerFrame(name, isBank)
f
.
depositButtonBank
:
StyleButton
(
nil
,
true
)
f
.
depositButtonBank
.
ttText
=
L
[
"Deposit Reagents"
]
f
.
depositButtonBank
:
SetScript
(
"OnEnter"
,
self
.
Tooltip_Show
)
f
.
depositButtonBank
:
SetScript
(
"OnLeave"
,
self
.
Tooltip_Hide
)
f
.
depositButtonBank
:
SetScript
(
"OnLeave"
,
Game
Tooltip_Hide
)
f
.
depositButtonBank
:
SetScript
(
'OnClick'
,
function
()
PlaySound
(
852
)
--IG_MAINMENU_OPTION
DepositReagentBank
()
...
...
@@ -1814,7 +1810,7 @@ function B:ContructContainerFrame(name, isBank)
f
.
bagsButton
.
ttText
=
L
[
"Toggle Bags"
]
f
.
bagsButton
.
ttText2
=
format
(
"|cffFFFFFF%s|r"
,
L
[
"Right Click the bag icon to assign a type of item to this bag."
])
f
.
bagsButton
:
SetScript
(
"OnEnter"
,
self
.
Tooltip_Show
)
f
.
bagsButton
:
SetScript
(
"OnLeave"
,
self
.
Tooltip_Hide
)
f
.
bagsButton
:
SetScript
(
"OnLeave"
,
Game
Tooltip_Hide
)
f
.
bagsButton
:
SetScript
(
'OnClick'
,
function
()
local
numSlots
=
GetNumBankSlots
()
PlaySound
(
852
)
--IG_MAINMENU_OPTION
...
...
@@ -1838,7 +1834,7 @@ function B:ContructContainerFrame(name, isBank)
f
.
purchaseBagButton
:
StyleButton
(
nil
,
true
)
f
.
purchaseBagButton
.
ttText
=
L
[
"Purchase Bags"
]
f
.
purchaseBagButton
:
SetScript
(
"OnEnter"
,
self
.
Tooltip_Show
)
f
.
purchaseBagButton
:
SetScript
(
"OnLeave"
,
self
.
Tooltip_Hide
)
f
.
purchaseBagButton
:
SetScript
(
"OnLeave"
,
Game
Tooltip_Hide
)
f
.
purchaseBagButton
:
SetScript
(
"OnClick"
,
function
()
local
_
,
full
=
GetNumBankSlots
()
if
full
then
...
...
@@ -1937,7 +1933,7 @@ function B:ContructContainerFrame(name, isBank)
f
.
bagsButton
.
ttText
=
L
[
"Toggle Bags"
]
f
.
bagsButton
.
ttText2
=
format
(
"|cffFFFFFF%s|r"
,
L
[
"Right Click the bag icon to assign a type of item to this bag."
])
f
.
bagsButton
:
SetScript
(
"OnEnter"
,
self
.
Tooltip_Show
)
f
.
bagsButton
:
SetScript
(
"OnLeave"
,
self
.
Tooltip_Hide
)
f
.
bagsButton
:
SetScript
(
"OnLeave"
,
Game
Tooltip_Hide
)
f
.
bagsButton
:
SetScript
(
'OnClick'
,
function
()
ToggleFrame
(
f
.
ContainerHolder
)
end
)
--Vendor Grays
...
...
@@ -1954,7 +1950,7 @@ function B:ContructContainerFrame(name, isBank)
f
.
vendorGraysButton
:
StyleButton
(
nil
,
true
)
f
.
vendorGraysButton
.
ttText
=
L
[
"Vendor / Delete Grays"
]
f
.
vendorGraysButton
:
SetScript
(
"OnEnter"
,
self
.
Tooltip_Show
)
f
.
vendorGraysButton
:
SetScript
(
"OnLeave"
,
self
.
Tooltip_Hide
)
f
.
vendorGraysButton
:
SetScript
(
"OnLeave"
,
Game
Tooltip_Hide
)
f
.
vendorGraysButton
:
SetScript
(
"OnClick"
,
B
.
VendorGrayCheck
)
--Search
...
...
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