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
A
AddOnSkins
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
Packages & Registries
Packages & Registries
Package Registry
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
fuba82
AddOnSkins
Commits
d8a0cdfb
Commit
d8a0cdfb
authored
Aug 02, 2020
by
Azilroka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Beta
parent
4fbc9fb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
Core/API.lua
Core/API.lua
+2
-0
No files found.
Core/API.lua
View file @
d8a0cdfb
...
...
@@ -241,6 +241,7 @@ function AS:CreateBackdrop(Frame, Template, Texture)
local
Parent
=
Frame
.
IsObjectType
and
Frame
:
IsObjectType
(
'Texture'
)
and
Frame
:
GetParent
()
or
Frame
local
Backdrop
=
CreateFrame
(
'Frame'
,
nil
,
Parent
)
if
not
Backdrop
.
SetBackdrop
then
Mixin
(
Backdrop
,
BackdropTemplateMixin
)
end
AS
:
SetOutside
(
Backdrop
,
Frame
)
AS
:
SetTemplate
(
Backdrop
,
Template
,
Texture
)
...
...
@@ -257,6 +258,7 @@ function AS:CreateShadow(Frame, NoRegister, Inverted)
if
(
not
AS
:
CheckOption
(
'Shadows'
))
or
Frame
.
Shadow
then
return
end
local
Shadow
=
CreateFrame
(
'Frame'
,
nil
,
Frame
)
if
not
Shadow
.
SetBackdrop
then
Mixin
(
Shadow
,
BackdropTemplateMixin
)
end
Shadow
:
SetFrameStrata
(
Frame
:
GetFrameStrata
())
local
FrameLevel
=
Frame
:
GetFrameLevel
()
>
1
and
Frame
:
GetFrameLevel
()
or
1
...
...
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