Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
oUF_Classic
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Azilroka
oUF_Classic
Commits
4a3be780
Commit
4a3be780
authored
May 31, 2017
by
Adrian L Lange
Committed by
GitHub
May 31, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #384 from oUF-wow/patch-nameplates
core: Set nameplate CVars immediately if already logged in
parents
6f72340f
3255715f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
ouf.lua
ouf.lua
+11
-1
No files found.
ouf.lua
View file @
4a3be780
...
@@ -696,7 +696,17 @@ function oUF:SpawnNamePlates(namePrefix, nameplateCallback, nameplateCVars)
...
@@ -696,7 +696,17 @@ function oUF:SpawnNamePlates(namePrefix, nameplateCallback, nameplateCVars)
eventHandler
:
RegisterEvent
(
'NAME_PLATE_UNIT_ADDED'
)
eventHandler
:
RegisterEvent
(
'NAME_PLATE_UNIT_ADDED'
)
eventHandler
:
RegisterEvent
(
'NAME_PLATE_UNIT_REMOVED'
)
eventHandler
:
RegisterEvent
(
'NAME_PLATE_UNIT_REMOVED'
)
eventHandler
:
RegisterEvent
(
'PLAYER_TARGET_CHANGED'
)
eventHandler
:
RegisterEvent
(
'PLAYER_TARGET_CHANGED'
)
eventHandler
:
RegisterEvent
(
'PLAYER_LOGIN'
)
if
(
IsLoggedIn
())
then
if
(
nameplateCVars
)
then
for
cvar
,
value
in
next
,
nameplateCVars
do
SetCVar
(
cvar
,
value
)
end
end
else
eventHandler
:
RegisterEvent
(
'PLAYER_LOGIN'
)
end
eventHandler
:
SetScript
(
'OnEvent'
,
function
(
_
,
event
,
unit
)
eventHandler
:
SetScript
(
'OnEvent'
,
function
(
_
,
event
,
unit
)
if
(
event
==
'PLAYER_LOGIN'
)
then
if
(
event
==
'PLAYER_LOGIN'
)
then
if
(
nameplateCVars
)
then
if
(
nameplateCVars
)
then
...
...
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