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
ElvUI_MerathilisUI
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
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
Merathilis
ElvUI_MerathilisUI
Commits
3cb82ba2
Commit
3cb82ba2
authored
Sep 09, 2019
by
Merathilis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the LocPanel hide.
parent
7593f3ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
ElvUI_MerathilisUI/modules/locpanel/locpanel.lua
ElvUI_MerathilisUI/modules/locpanel/locpanel.lua
+6
-4
No files found.
ElvUI_MerathilisUI/modules/locpanel/locpanel.lua
View file @
3cb82ba2
...
...
@@ -37,6 +37,7 @@ local C_ToyBox = C_ToyBox
local
UnitFactionGroup
=
UnitFactionGroup
local
RAID_CLASS_COLORS
=
RAID_CLASS_COLORS
local
RegisterStateDriver
=
RegisterStateDriver
local
UnregisterStateDriver
=
UnregisterStateDriver
-- GLOBALS: HSplace, LE_GARRISON_TYPE_7_0, TUTORIAL_TITLE31
local
loc_panel
...
...
@@ -415,9 +416,14 @@ function module:Toggle()
if
module
.
db
.
enable
then
loc_panel
:
Show
()
E
:
EnableMover
(
loc_panel
.
mover
:
GetName
())
if
module
.
db
.
combathide
then
RegisterStateDriver
(
loc_panel
,
'visibility'
,
'[combat] hide;show'
)
end
else
loc_panel
:
Hide
()
E
:
DisableMover
(
loc_panel
.
mover
:
GetName
())
UnregisterStateDriver
(
loc_panel
,
'visibility'
)
end
module
:
UNIT_AURA
(
nil
,
"player"
)
end
...
...
@@ -693,10 +699,6 @@ function module:Initialize()
self
:
ForUpdateAll
()
if
module
.
db
.
combathide
then
RegisterStateDriver
(
loc_panel
,
'visibility'
,
'[combat] hide;show'
)
end
self
:
RegisterEvent
(
"UNIT_AURA"
)
self
:
RegisterEvent
(
"CHAT_MSG_SKILL"
)
end
...
...
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