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
735c85f4
Verified
Commit
735c85f4
authored
Mar 14, 2019
by
Simpy
🐹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
boop, looking at the c-stack error
parent
df8dbc12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
ElvUI/Core/Toolkit.lua
ElvUI/Core/Toolkit.lua
+8
-9
No files found.
ElvUI/Core/Toolkit.lua
View file @
735c85f4
...
...
@@ -47,14 +47,13 @@ local function customSetBackdrop(frame, giveBorder, bgFile, edgeSize, insetLeft,
frame
.
pixelBorders
.
RIGHT
:
SetWidth
(
edgeSize
)
end
local
function
custom
Set
BackdropColor
(
frame
,
r
,
g
,
b
,
a
,
skip
)
if
skip
==
'ElvUI'
then
return
end
if
frame
.
pixelBorders
then
local
function
customBackdropColor
(
frame
,
r
,
g
,
b
,
a
,
skip
)
if
skip
==
'ElvUI'
then
return
else
if
frame
.
pixelBorders
then
frame
.
pixelBorders
.
CENTER
:
SetVertexColor
(
r
,
g
,
b
,
a
)
frame
:
SetBackdropColor
(
r
,
g
,
b
,
0
,
'ElvUI'
)
end
frame
:
SetBackdropColor
(
r
,
g
,
b
,
0
,
'ElvUI'
)
end
local
function
customBackdropBorderColor
(
frame
,
r
,
g
,
b
,
a
)
...
...
@@ -101,7 +100,7 @@ local function buildPixelBorders(frame, noSecureHook)
end
if
not
noSecureHook
then
hooksecurefunc
(
frame
,
"SetBackdropColor"
,
custom
Set
BackdropColor
)
hooksecurefunc
(
frame
,
"SetBackdropColor"
,
customBackdropColor
)
hooksecurefunc
(
frame
,
"SetBackdropBorderColor"
,
customBackdropBorderColor
)
end
end
...
...
@@ -196,9 +195,9 @@ local function SetTemplate(f, t, glossTex, ignoreUpdates, forcePixelMode, isUnit
if
not
f
.
ignoreBackdropColors
then
if
t
==
'Transparent'
then
custom
Set
BackdropColor
(
f
,
backdropr
,
backdropg
,
backdropb
,
backdropa
)
customBackdropColor
(
f
,
backdropr
,
backdropg
,
backdropb
,
backdropa
)
else
custom
Set
BackdropColor
(
f
,
backdropr
,
backdropg
,
backdropb
)
customBackdropColor
(
f
,
backdropr
,
backdropg
,
backdropb
)
end
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