Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ElvUI Project
ElvUI
Commits
62f477af
Commit
62f477af
authored
Feb 22, 2019
by
Elv
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent lua error on ObjectiveTrackerFrame with other addons
parent
f85535d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
12 deletions
+4
-12
ElvUI/Modules/blizzard/objectiveFrame.lua
ElvUI/Modules/blizzard/objectiveFrame.lua
+4
-12
No files found.
ElvUI/Modules/blizzard/objectiveFrame.lua
View file @
62f477af
...
...
@@ -56,23 +56,15 @@ function B:MoveObjectiveFrame()
B
:
SetObjectiveFrameHeight
()
ObjectiveTrackerFrame
:
SetClampedToScreen
(
false
)
--prevent error from occuring if another addon decides it wants to disable these functions
_G
.
ObjectiveTrackerFrame
.
SetMovable
=
nil
_G
.
ObjectiveTrackerFrame
.
SetUserPlaced
=
nil
ObjectiveTrackerFrame
:
SetMovable
(
true
)
ObjectiveTrackerFrame
:
SetUserPlaced
(
true
)
-- UIParent.lua line 3090 stops it from being moved <3
ObjectiveTrackerFrame
:
ClearAllPoints
()
ObjectiveTrackerFrame
:
SetPoint
(
'TOP'
,
ObjectiveFrameHolder
,
'TOP'
)
--just a couple checks to make sure other addons can't break it
hooksecurefunc
(
ObjectiveTrackerFrame
,
"SetMovable"
,
function
(
self
,
status
)
if
status
~=
true
then
self
:
SetMovable
(
true
)
end
end
)
--just a couple checks to make sure other addons can't break it
hooksecurefunc
(
ObjectiveTrackerFrame
,
"SetUserPlaced"
,
function
(
self
,
status
)
if
status
~=
true
then
self
:
SetUserPlaced
(
true
)
end
end
)
local
function
RewardsFrame_SetPosition
(
block
)
local
rewardsFrame
=
_G
.
ObjectiveTrackerBonusRewardsFrame
;
...
...
Oppzippy
@Oppzippy
mentioned in issue
#1350 (closed)
·
May 31, 2019
mentioned in issue
#1350 (closed)
mentioned in issue #1350
Toggle commit list
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